/* Yakvam site styles
   Brand direction C "Kilim": bordo and anthracite, one sans typeface
   (Archivo) for headings and text. Layout: one left-aligned column system,
   hairlines instead of boxes, bordo used sparingly as the single accent.

   Everything visual hangs off the tokens in :root. */

/* The font is served from this site (assets/fonts), no external requests.
   Archivo, SIL Open Font License. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-latin-wght-normal.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;
}

:root {
  color-scheme: light;

  /* colour */
  --paper: #f1f0ee;      /* page background */
  --surface: #ffffff;    /* header, alternating sections */
  --ink: #2b2d31;        /* text, primary buttons */
  --muted: #5c5f64;      /* secondary text */
  --line: #d8d7d3;       /* hairlines */
  --accent: #7b1e2b;     /* bordo: links, marks, header button */
  --todo: #fff1a8;       /* draft notice and sample highlight */

  /* type */
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font-body);

  /* scale */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3rem, 7vw, 5.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }

p, ul, dl, address { margin: 0; }
address { font-style: normal; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

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

/* ---------- draft notice and sample values ---------- */
/* Elements with class="sample" hold invented example values. They look like
   normal content until the button in the draft notice switches the
   highlight on. Delete this block at go-live. */
.show-samples .sample { background: var(--todo); box-shadow: 0 0 0 0.15em var(--todo); }
.show-samples td.sample { background-clip: content-box; box-shadow: none; }
.draft-note {
  background: var(--todo);
  font-size: var(--step--1);
  text-align: center;
  padding: 0.4rem var(--gutter);
}
.draft-note button {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.1rem 0.6rem;
  margin-left: 0.5rem;
  cursor: pointer;
}
.draft-note button:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { display: block; }
.brand-name { font-weight: 800; font-size: 1.375rem; line-height: 1; letter-spacing: 0.14em; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 550;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { padding: 0.5rem 0.9rem; font-size: var(--step--1); }
.site-header .btn-small { background: var(--accent); border-color: var(--accent); }
.site-header .btn-small:hover { background: var(--ink); border-color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- hero and page heads ---------- */
.hero { padding-block: var(--section); }
.hero-box { display: grid; gap: 1.25rem; max-width: 44rem; }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: var(--step-2); line-height: 1.4; color: var(--muted); max-width: 38rem; }
.hero .lead { color: var(--ink); }

.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head .wrap { display: grid; gap: 1rem; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section > .wrap { display: grid; gap: 2rem; }

.split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) {
  .section > .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
}

.grid-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.item { display: grid; gap: 0.5rem; align-content: start; border-top: 2px solid var(--accent); padding-top: 1rem; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a::after { content: " →"; color: var(--accent); }
.item h3 a:hover { text-decoration: underline; }
.item p { color: var(--muted); }

.prose { display: grid; gap: 1rem; max-width: 40rem; justify-items: start; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.prose.legal h2 { font-size: var(--step-2); margin-top: 1.25rem; }
.note { font-size: var(--step--1); color: var(--muted); }
.more { font-weight: 600; }
.more::after { content: " →"; }

/* team */
.team { list-style: none; padding: 0; display: grid; gap: 1.75rem 2rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.person { display: flex; align-items: center; gap: 1rem; }
.person > div { display: grid; gap: 0.2rem; min-width: 0; }
.portrait { flex: none; width: 6.5rem; height: 6.5rem; object-fit: cover; background: var(--line); }
.person p { color: var(--muted); font-size: var(--step--1); }
.person a { font-size: var(--step--1); overflow-wrap: anywhere; }

/* definition lists: specs and facts */
.specs, .facts { display: grid; width: 100%; max-width: 40rem; }
.specs > div, .facts > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}
.specs > div:last-child, .facts > div:last-child { border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: var(--step--1); padding-top: 0.15em; }
dd { margin: 0; justify-self: start; font-variant-numeric: tabular-nums; }

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 38rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: var(--step--1); color: var(--muted); font-weight: 600; border-bottom-color: var(--ink); }
tr.group th { padding-top: 1.75rem; font-size: var(--step-1); border-bottom-color: var(--ink); }

/* ---------- call to action band ---------- */
.band { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.band-row > div { display: grid; gap: 0.5rem; }
.band p { color: #c5cbd6; }
.band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band .btn:hover { background: var(--line); border-color: var(--line); }
.band :focus-visible { outline-color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: var(--step--1); padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-grid > div { display: grid; gap: 0.6rem; align-content: start; }
.footer-name { font-weight: 600; }
.site-footer .brand { margin-bottom: 0.4rem; }
.site-footer .brand-name { font-size: 1.125rem; }
.site-footer h2 { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plain { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.site-footer a { color: var(--ink); }
.footer-legal { margin-top: 2.5rem; color: var(--muted); display: grid; gap: 0.4rem; }
.footer-legal::before { content: ""; border-top: 1px solid var(--line); margin-bottom: 0.85rem; }
.footer-legal a { color: var(--muted); }

@media (max-width: 40rem) {
  .site-nav { margin-left: 0; order: 3; width: 100%; }
  .header-row .btn-small { margin-left: auto; }
  .specs > div, .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
