/* Touman Studio — layout and components.
   One accent (bronze) carries every primary action; everything else is neutral
   with blue as the corporate second. Nothing here invents a colour: values come
   from tokens.css, which is generated from the measured palette. */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; max-width: var(--measure); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - (var(--gutter) * 2), 1120px); margin-inline: auto; }
.stack > * + * { margin-top: var(--flow, 1rem); }
.eyebrow {
  font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-soft); font-weight: 600; margin: 0;
}
.rule { width: 44px; height: 2px; background: var(--accent-solid); border: 0; margin: 1.1rem 0 0; }
.soft { color: var(--text-soft); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* ---------- skip link, focus ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent-solid);
  color: #fff; padding: 0.75rem 1rem; z-index: 50; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 3px; border-radius: 3px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .bar { display: flex; align-items: center; gap: 1.25rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 6px; background: var(--neutral-12); color: var(--bg);
  display: grid; place-items: center; font-weight: 700; font-size: 17px; line-height: 1;
}
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; font-size: var(--step--1); color: var(--text-soft);
  display: inline-flex; align-items: center; min-height: 24px; padding: 0.35rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .door {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.95rem; color: var(--text);
}
.nav .door:hover { border-color: var(--accent-solid); }
.lang { display: flex; gap: 0.35rem; align-items: center; font-size: var(--step--1); color: var(--text-soft); }
.lang a {
  text-decoration: none; padding: 0.2rem 0.5rem; border-radius: 4px;
  display: inline-flex; align-items: center; min-height: 24px; min-width: 24px;
  justify-content: center;
}
.lang a[aria-current="true"] { color: var(--text); font-weight: 600; }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none;
  padding: 0.9rem 1.4rem; border-radius: var(--radius-sm); font-weight: 600; font-size: var(--step-0);
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--accent-solid); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-quiet { border-color: var(--line-strong); color: var(--text); }
.btn-quiet:hover { border-color: var(--text-soft); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { max-width: 20ch; }
.hero .lead { font-size: var(--step-1); color: var(--text-soft); max-width: 58ch; margin-top: 1.4rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--line); padding: 1.5rem 0; }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.proof b { display: block; font-size: var(--step-1); font-weight: 600; }
.proof span { color: var(--text-soft); font-size: var(--step--1); }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { margin-bottom: 2.5rem; }
.section-head p { margin-top: 1rem; color: var(--text-soft); }

.grid { display: grid; gap: 1.25rem; }
/* Fixed column counts, not auto-fit: six cards must land 3+3 and four 2+2.
   auto-fit left a 4+2 row with a hole in it. */
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.card h2, .card h3 { font-size: var(--step-1); }
.card p { color: var(--text-soft); font-size: var(--step-0); }
.card .code { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-soft); letter-spacing: 0.04em; }
a.card { text-decoration: none; transition: border-color 0.15s ease; }
a.card:hover { border-color: var(--line-strong); }

.state { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--step--1); color: var(--text-soft); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-soft); }
.state.live::before { background: var(--ok); }
.state.build::before { background: var(--warn); }

/* ---------- public sector band ---------- */
.band {
  background: var(--blue-2); border: 1px solid var(--blue-6); border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.band h2 { max-width: 22ch; }
.band p { color: var(--text-soft); margin-top: 1rem; }
.band ul { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.band li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-soft); font-size: var(--step-0); }
.band li::before { content: "—"; color: var(--accent); flex: none; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 3rem 0 4rem; margin-top: 2rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot-grid h2, .foot-grid h4 { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-grid a {
  text-decoration: none; color: var(--text-soft); font-size: var(--step--1);
  display: inline-flex; align-items: center; min-height: 24px;
}
.foot-grid a:hover { color: var(--text); }
.legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--text-soft); line-height: 1.8;
}
.legal .mono { color: var(--text-soft); }

@media (max-width: 760px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
    position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-raised);
    border-bottom: 1px solid var(--line); padding: 1.25rem var(--gutter); }
  .menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line-strong);
    color: var(--text); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; font: inherit; font-size: var(--step--1); }
  .site-head .bar { position: relative; }
}

/* ---------- definition rows (registry identity, conformance, …) ---------- */
.defs { margin: 1.6rem 0 0; display: grid; gap: 0; }
.defs > div {
  display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 1.5rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.defs dt { font-weight: 600; }
.defs dd { margin: 0; color: var(--text-soft); }
@media (max-width: 620px) {
  .defs > div { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ---------- contact form ---------- */
.form { display: grid; gap: 1.25rem; max-width: 760px; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg-raised);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0.75rem 0.9rem; min-height: 3.4rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent-solid); outline-offset: 2px; border-color: transparent;
}
.hint { font-size: var(--step--1); color: var(--text-soft); }
.form-foot { display: grid; gap: 0.9rem; justify-items: start; }
/* Honeypot: off screen for people, present for scripts that fill every field. */
.field.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button.btn { font-family: inherit; cursor: pointer; }
