/* Self-hosted font: IBM Plex Sans (variable, 300-400, Latin subset). No third-party requests. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens -------------------------------------------------------------
   Single dark theme, on purpose: charcoal ground, warm off-white ink, and the
   stone grey from the company letterhead (#706f60) lifted for secondary text
   and rules. The dune band is tinted toward the ground so it reads as one
   surface. The page ignores the visitor's light/dark preference.           */
:root {
  --ground: #1b1a17;
  --ink: #e9e5dc;
  --stone: #a8a594;
  --rule: rgba(168, 165, 148, 0.35);
  --dune-tint: rgba(27, 26, 23, 0.45);
  --focus: #a8a594;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
p { margin: 0; }

/* ---- Layout ---------------------------------------------------------------
   One centered column. The dune band bleeds full width and fades into the
   ground; everything below it is text.                                     */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.dune {
  width: 100%;
  height: clamp(150px, 26vh, 290px);
  background-color: var(--ground);
  background-image:
    linear-gradient(to bottom, var(--dune-tint), var(--dune-tint)),
    linear-gradient(to bottom, rgba(0,0,0,0) 55%, var(--ground) 100%),
    url('../img/dune-1000.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
@media (min-width: 1000px), (min-resolution: 1.5dppx) {
  .dune {
    background-image:
      linear-gradient(to bottom, var(--dune-tint), var(--dune-tint)),
      linear-gradient(to bottom, rgba(0,0,0,0) 55%, var(--ground) 100%),
      url('../img/dune.jpg');
  }
}

.brand { margin-top: clamp(1.5rem, 4vh, 3rem); }
.wordmark {
  margin: 0;
  font-size: clamp(0.8rem, 0.65rem + 0.6vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.38em;
  text-indent: 0.38em;              /* balances the trailing tracking */
  text-transform: uppercase;
  color: var(--stone);
}

.statement {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3vh, 2rem);
  max-width: 40rem;
  padding: clamp(2rem, 6vh, 4.5rem) 1.5rem;
}
.line { text-wrap: balance; }
.line-en {
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.3;
  font-weight: 300;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.5rem;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
}
.contact::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-bottom: 1.2rem;
  background: var(--rule);
}
.place { color: var(--stone); letter-spacing: 0.04em; }
.mail-link {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 160ms ease;
}
.mail-link:hover { border-color: var(--ink); }
.mail-link:empty { display: none; }
.legal {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
