/* Max Productions, first live site: opening, company, inquiries.
   Layout idea: a night page. White on black from the opening logo to the footer. */

@font-face { font-family: "Tinos"; src: url("assets/fonts/tinos-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --black: #000000;
  --white: #ffffff;
  --mist: #d4d4d4;          /* running text on black */
  --smoke: #a8a8a8;         /* labels and quiet text on black */
  --rule-night: rgba(255, 255, 255, .32);

  --serif: "Tinos", "Times New Roman", Times, serif;                 /* display: the deck's serif */
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;   /* text: the deck's sans */

  --gutter: clamp(1.25rem, 4.6vw, 4rem);
  --col-gap: clamp(1.5rem, 3.2vw, 3.5rem);
  --bar: 3rem;

  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { width: 100%; max-width: 86rem; margin-inline: auto; padding-inline: var(--gutter); }

.label { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .01em; }

.skip {
  position: fixed; left: var(--gutter); top: .5rem; z-index: 20;
  padding: .6rem .9rem; background: var(--white); color: var(--black);
  font-size: .875rem; text-decoration: none; transform: translateY(-250%);
}
.skip:focus { transform: none; }

section { scroll-margin-top: var(--bar); }

/* ---------- navigation ---------- */

.bar {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--bar); padding-inline: var(--gutter);
  background: var(--black);
}
.bar-mark { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.bar-mark img { width: auto; height: .9rem; }
.past-opening .bar-mark { opacity: 1; visibility: visible; }

.bar nav { display: flex; gap: clamp(.5rem, 2.6vw, 2.25rem); margin-left: auto; }
.bar nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .35rem;
  font-size: .8125rem; letter-spacing: .01em; color: var(--smoke); text-decoration: none;
}
.bar nav a:hover, .bar nav a[aria-current] { color: var(--white); }

@media (max-width: 35rem) {
  .bar-mark { display: none; }
  .bar nav { width: 100%; margin-left: 0; justify-content: space-between; }
  .bar nav a:first-child { padding-left: 0; }
  .bar nav a:last-child { padding-right: 0; }
}

/* ---------- opening ---------- */

.opening {
  display: grid; place-items: center;
  height: 100vh; height: 100svh; min-height: 24rem; max-height: 72rem;
  padding: var(--bar) var(--gutter) calc(var(--bar) * 1.4);
}
.opening h1 { width: min(86vw, 46rem); }
@media (min-width: 44rem) { .opening h1 { width: min(54vw, 46rem); } }

/* ---------- company ---------- */

.company { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(4rem, 9vw, 8rem); }
.company .label, .inquiries .label { color: var(--smoke); }

.statement {
  max-width: 20em; margin-top: 1.1rem;
  font: 400 clamp(2.125rem, 5.6vw, 4.75rem)/1.03 var(--serif); letter-spacing: -.018em;
  text-wrap: balance;
}
.where { margin-top: clamp(1.25rem, 2.4vw, 2rem); font-size: clamp(1.0625rem, 1.45vw, 1.25rem); color: var(--smoke); }

.lines {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap);
  margin-top: clamp(3rem, 7vw, 6.5rem);
}
.line { padding-top: 1.15rem; border-top: 1px solid var(--rule-night); }
.line h3 { font: 400 clamp(1.625rem, 2.3vw, 2.125rem)/1.08 var(--serif); letter-spacing: -.01em; }
.line p { max-width: 31rem; margin-top: .8rem; color: var(--mist); }

@media (max-width: 52rem) {
  .lines { grid-template-columns: minmax(0, 1fr); }
  .line { padding-bottom: 2rem; }
  .line:last-child { padding-bottom: 0; }
}

/* ---------- inquiries ---------- */

.inquiries { padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(3rem, 6vw, 5rem); }

.desks { margin-top: clamp(2.5rem, 6vw, 5rem); border-bottom: 1px solid var(--rule-night); }
.desk { display: grid; gap: .4rem var(--col-gap); padding-block: 1.1rem 1.3rem; border-top: 1px solid var(--rule-night); }
.desk dt { font-size: .9375rem; color: var(--smoke); }
.desk dd { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }

.mail {
  font: 400 clamp(1.5rem, 6.6vw, 3.25rem)/1.1 var(--serif); letter-spacing: -.015em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em;
  overflow-wrap: anywhere;
}
.mail:hover { text-decoration-thickness: 2px; }

@media (min-width: 56rem) {
  .desk { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
}

/* ---------- footer ---------- */

.foot { padding-bottom: 2rem; }
.foot-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem;
  padding-top: 1.4rem;
}
.cities { font-size: .8125rem; color: var(--smoke); white-space: nowrap; }
.foot-mark { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot-mark img { width: auto; height: 1rem; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar-mark { transition: none; }
}
