/* DRAMORY site layout. Colours and faces: tokens.css only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.7 var(--font-sans);
  letter-spacing: -0.003em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--fg); color: var(--bg); padding: 0.5rem 0.75rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

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

/* ─── header ─── */
.site-header { border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo {
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.logo-dramory { --logo: url("dramory-horizontal.svg"); width: 7.6rem; aspect-ratio: 2000 / 290; }
.logo-office { --logo: url("dramory-office-horizontal.svg"); width: 11.4rem; aspect-ratio: 3184 / 290; }
.logo-symbol { --logo: url("dramory-symbol.svg"); aspect-ratio: 634 / 640; }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); font-size: var(--step--1); }
.nav a { text-decoration: none; color: var(--fg-muted); }
.nav a:hover { color: var(--fg); }
.nav .lang { font-family: var(--font-display); letter-spacing: 0.08em; color: var(--fg); border: 1px solid var(--rule-strong); padding: 0.15rem 0.55rem; border-radius: var(--radius); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  border: 0; background: none; color: var(--fg-muted); cursor: pointer; border-radius: 50%;
}
.theme-toggle:hover { color: var(--fg); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.no-js .theme-toggle { display: none; }
@media (max-width: 36rem) { .nav .hide-sm { display: none; } }

/* ─── common text ─── */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
.lede { font-size: var(--step-1); color: var(--fg-muted); max-width: var(--measure); line-height: 1.75; }
.muted { color: var(--fg-muted); }
.small { font-size: var(--step--1); }

/* ─── hero ─── */
.hero { padding-block: clamp(4rem, 3rem + 7vw, 9rem) clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.hero .eyebrow { margin-bottom: 1.75rem; }
.hero h1 { font-size: var(--step-4); line-height: 1.12; max-width: 16ch; margin-bottom: 2rem; }
.hero .lede { margin-bottom: 0; }
.hero .actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }

.button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.35rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-fg);
  text-decoration: none; font-weight: 600; font-size: var(--step-0); line-height: 1.2;
}
.button:hover { filter: brightness(1.08); }
.button.ghost { background: none; color: var(--fg); border: 1px solid var(--rule-strong); font-weight: 500; }
.button.ghost:hover { border-color: var(--fg); filter: none; }
.button[aria-disabled="true"] { background: none; color: var(--fg-faint); border: 1px dashed var(--rule-strong); cursor: default; font-weight: 500; }

/* ─── sections ─── */
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); }
@media (min-width: 52rem) {
  .section-head { grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; align-items: baseline; }
}

/* ─── brand index (numbered rows) ─── */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.index > li { border-bottom: 1px solid var(--rule); }
.index a.row {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 0.25rem 1.25rem;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem) 0; text-decoration: none; align-items: start;
}
.index .num { font-family: var(--font-display); font-style: italic; color: var(--fg-faint); font-size: var(--step-1); line-height: 1.5; }
.index .name { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: 0.04em; line-height: 1.3; font-weight: 500; }
.index .kind { display: block; margin-top: 0.2rem; font-size: var(--step--1); color: var(--accent); letter-spacing: 0.02em; font-weight: 600; }
.index .desc { grid-column: 2 / 4; color: var(--fg-muted); max-width: 40rem; margin-top: 0.5rem; }
.index .go { grid-column: 2 / 4; font-size: var(--step--1); color: var(--fg-muted); white-space: nowrap; padding-top: 0.45rem; }
.index .go .arrow { display: inline-block; transition: transform 0.2s ease; }
.index a.row:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.index a.row:hover .arrow { transform: translate(2px, -2px); }
@media (min-width: 52rem) {
  .index a.row { grid-template-columns: 14rem minmax(0, 18rem) minmax(0, 1fr) auto; gap: 2rem; }
  .index .num { grid-column: 1; }
  .index .desc { grid-column: 3; margin-top: 0.3rem; }
  .index .go { grid-column: 4; }
}

/* ─── quiet statement ─── */
.statement { display: grid; gap: 2rem; align-items: center; }
.statement .logo-symbol { width: clamp(4.5rem, 3rem + 6vw, 7.5rem); color: var(--accent); }
.statement blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.55; max-width: 34rem; }
.statement blockquote p + p { margin-top: 1rem; font-family: var(--font-sans); font-size: var(--step-0); color: var(--fg-muted); }
@media (min-width: 52rem) { .statement { grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; } }

/* ─── facts table (company info) ─── */
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule-strong); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--fg-muted); font-size: var(--step--1); padding-top: 0.15rem; }
.facts dd { margin: 0; }
.facts .todo { color: var(--fg-faint); }
@media (min-width: 52rem) { .facts { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* ─── footer ─── */
.site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); font-size: var(--step--1); color: var(--fg-muted); }
.site-footer .wrap { display: grid; gap: 1.25rem; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.site-footer .legal { max-width: 46rem; }
@media (min-width: 52rem) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }

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