/* STORILEA — coming soon. Tokens from the brand book v2 (06 Colour System, 08 Typography System). */
:root {
  --ivory: #F7F3EC;    /* Warm Ivory — primary canvas */
  --charcoal: #3F3B37; /* Warm Charcoal — primary ink */
  --taupe: #9A948C;    /* Mineral Taupe — rules, Signature Line */
  --stone: #D8D3C9;    /* Soft Stone — structural neutral */
  --serif: "EB Garamond", Garamond, "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --pad: clamp(24px, 5.5vw, 88px);
}

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

html, body { margin: 0; }

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 100vh;
  min-height: 100svh;
}

.frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: var(--pad);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  margin: 0;
  line-height: 0;
}

.lang {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;        /* Label 12/16 +0.22em */
  line-height: 1.34;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.lang a {
  padding: 10px 0;
  color: var(--charcoal);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.lang a[aria-current="page"],
.lang a:hover {
  text-decoration-line: underline;
  text-decoration-color: var(--taupe);
}

.lang a:focus-visible {
  outline: 1px solid var(--charcoal);
  outline-offset: 4px;
}

.wordmark svg {
  display: block;
  width: clamp(200px, 24vw, 340px);
  height: auto;
  fill: var(--charcoal);
}

.message { max-width: 30rem; }

.idea {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.6vw, 4rem); /* Display XL 64/66 */
  line-height: 1.03;
  letter-spacing: -0.005em;
}

.signature {
  display: block;
  width: min(100%, 17rem);
  height: auto;
  margin: 28px 0 24px;
  overflow: visible;
}

.status {
  margin: 0;
  font-size: 0.75rem;        /* Label / eyebrow 12/16 +0.22em */
  line-height: 1.34;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  margin: 0;
  background: var(--stone);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .frame { display: contents; }
  .top { order: 1; padding: 28px var(--pad) 24px; }
  .wordmark svg { width: clamp(170px, 48vw, 240px); }
  .hero { order: 2; aspect-ratio: 4 / 5; max-height: 72svh; margin: 0 var(--pad); }
  .message { order: 3; padding: 36px var(--pad) 48px; }
}
