/* Crestrio — brand pages (overview, generators, e-mail signature): tokens, type, buttons, forms, sections.
   The look of the identity itself (Ink / Paper / Copper, Inter Display, Source Serif 4) — see the PDF manual. */
:root {
  --ink: #141513; --paper: #f3f1ec; --copper: #a96f52; --copper-light: #c99a82;
  --pine: #3d5a4c; --wine: #7a3b4a; --steel: #4a5b6e;
  --bg: var(--paper); --bg-2: #eae7e0; --bg-3: #e1ddd5; --card: #f8f7f3; --white: #fcfbf8;
  --fg: var(--ink); --ink-soft: #6f6e69; --faint: #b3b0a8; --line: rgba(20, 21, 19, .14); --line-strong: rgba(20, 21, 19, .28);
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --radius: 12px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: flex; align-items: center; gap: .75rem; font-family: var(--display); font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.muted { color: var(--ink-soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.35rem; border: 1px solid var(--ink); border-radius: 999px; font: 500 .98rem/1.2 var(--display); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #2a2b29; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-2); }
.btn--sm { padding: .5rem .95rem; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn:active { transform: translateY(1px); }

/* forms */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .35rem; }
.field > span, .field-group legend { font-family: var(--display); font-size: .92rem; font-weight: 500; }
.field-group { margin: 0; padding: 0; border: 0; display: grid; gap: .55rem; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: .55rem; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea, .field select {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px; padding: .62rem .8rem; }
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(169, 111, 82, .25); }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; padding: .42rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-family: var(--display); font-size: .92rem; transition: background .15s, border-color .15s; }
.pill input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(169, 111, 82, .35); }
.pill:hover span { border-color: var(--ink); }

/* overview sections */
.board-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.board-head h1 { font-size: clamp(2.8rem, 1.4rem + 5.6vw, 5.6rem); letter-spacing: -.04em; line-height: .98; margin: 1.4rem 0 1.2rem; }
.board-head p { max-width: 46rem; font-family: var(--display); font-size: 1.2rem; line-height: 1.45; color: var(--ink-soft); }
.board-logo svg { height: 34px; width: auto; }
.jump { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.8rem; }
.jump a { padding: .4rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--display); font-size: .92rem; text-decoration: none; background: var(--white); }
.jump a:hover { border-color: var(--ink); }
.jump a.is-gen { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.sec { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); border-top: 1px solid var(--line); }
.sec:nth-of-type(even) { background: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 2rem; align-items: end; margin-bottom: 2.25rem; }
.sec-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.03em; }
.sec-head p { grid-column: 1; max-width: 48rem; color: var(--ink-soft); }
.files { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-self: end; }
.file { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; font: 500 .9rem/1.2 var(--display); text-decoration: none; white-space: nowrap; }
.file::before { content: "PDF"; font-size: .66rem; font-weight: 600; letter-spacing: .06em; background: var(--copper); color: var(--paper); padding: .12rem .34rem; border-radius: 4px; }
.file[href$=".png"]::before { content: "PNG"; } .file[href$=".html"]::before { content: "HTML"; } .file[href$=".svg"]::before { content: "SVG"; }
.file[href$=".zip"]::before { content: "ZIP"; background: var(--ink); } .file[href$=".css"]::before { content: "CSS"; background: var(--steel); }
.file:hover { border-color: var(--ink); }
figure { margin: 0; }
figcaption { margin-top: .8rem; font-size: .92rem; color: var(--ink-soft); }
figcaption b { color: var(--ink); font-weight: 600; }
.group-title { font-size: 1.25rem; margin: 2.5rem 0 1rem; }
.group-title:first-of-type { margin-top: 0; }
.group-note { margin: -.4rem 0 1.2rem; max-width: 48rem; font-size: .95rem; color: var(--ink-soft); }
.shadow { box-shadow: 0 18px 32px -20px rgba(20, 21, 19, .55); }
.table-scroll { overflow-x: auto; }
table.prod { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.prod th { text-align: left; font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--ink); }
table.prod td { padding: .75rem .8rem .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prod td:first-child { font-family: var(--display); font-weight: 500; white-space: nowrap; }
.prod-notes { display: grid; gap: .6rem; margin-top: 1.5rem; max-width: 60rem; color: var(--ink-soft); font-size: .95rem; }
.prod-notes b { color: var(--ink); }
.foot { padding-block: 2.5rem 3.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 760px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .files { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
