/* InkVault, in the No Regrets house style, Edition 2.
   Six colours, three type roles, one scale (ratio 1.2 on 17px), stone hairlines, terracotta as a mark and never as type.
   The licensed faces come from the Adobe Fonts web project linked in the page head. Until this site's domain is listed
   in that project, the stand-ins bundled here show instead: Source Serif 4 for Beaufort Pro, Fraunces italic for the dek. */
@font-face { font-family: "Special Gothic"; font-style: normal; font-weight: 400 700; font-stretch: 75% 125%; font-display: swap; src: url(/fonts/special-gothic.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-serif-4.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/fonts/source-serif-4-italic.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-italic.woff2) format("woff2"); }

:root {
  --ground: #E7E1D9;
  --ink: #222222;
  --charcoal: #424242;
  --stone: #CCBDA8;
  --terracotta: #C96C50;
  --dim: #6f6a63;
  --serif: "beaufort-pro", "Source Serif 4", Georgia, "Times New Roman", serif;
  /* The kit holds Swear Display in roman only, so the dek runs on Beaufort Pro italic for now.
     When the italic joins the kit, put "swear-display" first in this list. */
  --italic: "beaufort-pro", "Fraunces", "Source Serif 4", Georgia, serif;
  --label: "Special Gothic", Archivo, "Arial Narrow", Arial, sans-serif;
  --s0: 17px; --s1: 20.4px; --s2: 24.5px; --s3: 29.4px; --s4: 35.3px; --s5: 42.3px;
  --lab: 10.5px;
  color-scheme: only light;
}
* { box-sizing: border-box; border-radius: 0; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--serif); font-size: var(--s0); line-height: 1.62; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, canvas { max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--terracotta); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- type roles ---------- */
.label { font-family: var(--label); font-stretch: 125%; font-weight: 600; font-size: var(--lab); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; color: var(--charcoal); }
.label.ink { color: var(--ink); }
.mark::before, .notice::before, .error::before { content: ""; display: inline-block; width: 16px; height: 3px; background: var(--terracotta); margin-right: 9px; vertical-align: middle; position: relative; top: -1px; }
.dek { font-family: var(--italic); font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; font-size: var(--s1); line-height: 1.4; color: var(--charcoal); max-width: 34em; }
.muted { color: var(--charcoal); }
.small { line-height: 1.5; }

/* ---------- marks ---------- */
.wordmark { display: block; line-height: 0; }
.wordmark img { display: block; height: 17px; width: auto; }
.foot { border-top: 1px solid var(--stone); margin-top: 8px; padding-top: 28px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.foot img { display: block; height: 30px; width: auto; }

/* ---------- frame: phone first, a left rail from 1024px ---------- */
.masthead { position: sticky; top: 0; z-index: 5; background: var(--ground); border-bottom: 1px solid var(--stone); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px 14px; }
.who { text-align: right; }
.strip { display: flex; gap: 22px; padding: 0 22px 12px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, var(--ink) calc(100% - 34px), transparent); mask-image: linear-gradient(to right, var(--ink) calc(100% - 34px), transparent); }
.strip button, .railnav button { all: unset; cursor: pointer; font-family: var(--label); font-stretch: 125%; font-weight: 600; font-size: var(--lab); letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal); padding: 4px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.strip button:last-child { margin-right: 34px; }
.strip button[aria-current="page"], .railnav button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--terracotta); }
.strip button:focus-visible, .railnav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rail { display: none; }
.column { max-width: 640px; margin-inline: auto; padding-inline: 22px; padding-block: 30px 56px; display: grid; gap: 34px; }

@media (min-width: 1024px) {
  .masthead { display: none; }
  .rail { display: grid; align-content: start; gap: 30px; position: fixed; inset: 0 auto 0 0; width: 300px; padding: 44px 32px; border-right: 1px solid var(--stone); overflow: auto; }
  .rail .wordmark img { height: 21px; }
  .railnav { display: grid; gap: 14px; justify-items: start; }
  .shell { margin-left: 300px; }
  .column { max-width: 832px; padding-inline: 56px; padding-block: 44px 72px; margin-inline: 0; }
  .column.wide { max-width: 1232px; }
}
@media (min-width: 1320px) {
  .rail { width: 340px; padding-inline: 40px; }
  .shell { margin-left: 340px; }
  .column { max-width: 912px; }
  .column.wide { max-width: 1312px; }
}

/* ---------- the kit ---------- */
.hero { display: grid; gap: 12px; }
.hero h1 { font-weight: 500; font-size: var(--s4); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
@media (min-width: 1024px) { .hero h1 { font-size: var(--s5); } }
.section { display: grid; gap: 14px; border-top: 1px solid var(--stone); padding-top: 16px; min-width: 0; }
.section h2 { font-weight: 500; font-size: var(--s2); line-height: 1.2; }
.row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.row.end { align-items: end; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; min-width: 0; }

.btn { font-family: var(--label); font-stretch: 125%; font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3; color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 13px 18px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn.fill { background: var(--ink); color: var(--ground); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.full { width: 100%; }
.textbtn { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--terracotta); text-underline-offset: 3px; }
.textbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* fields are a line to write on, as on the website: no box, an ink rule beneath */
.field { display: grid; gap: 4px; min-width: 0; }
.field input, .field select, .field textarea { font-family: var(--serif); font-size: var(--s0); line-height: 1.4; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; width: 100%; min-width: 0; }
.field textarea { min-height: 120px; resize: vertical; border: 1px solid var(--stone); border-bottom-color: var(--ink); padding: 10px 12px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23222222' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 10px 6px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field input[type="file"] { border-bottom-color: var(--stone); }
.field input[type="file"]::file-selector-button { font-family: var(--label); font-stretch: 125%; font-weight: 600; font-size: var(--lab); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 8px 12px; margin-right: 12px; cursor: pointer; }
.fields { display: grid; gap: 18px; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; column-gap: 28px; } .fields .span { grid-column: 1 / -1; } }

/* a status line: the functional face with the terracotta mark */
.notice { font-family: var(--label); font-stretch: 125%; font-weight: 600; font-size: var(--lab); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.6; color: var(--ink); }
.error { color: var(--ink); line-height: 1.5; }
/* the note box holds what is not there yet */
.note { border: 1px dashed var(--terracotta); padding: 14px 16px; color: var(--charcoal); }
/* the instrument box holds the record */
.instrument { border: 1px solid var(--terracotta); padding: 18px 20px; display: grid; gap: 10px; }
.dark { background: var(--ink); color: var(--ground); padding: 26px 22px; display: grid; gap: 14px; }
.dark .label { color: var(--ground); }
.dark .btn { color: var(--ground); border-color: var(--ground); }
.dark .btn.fill { background: var(--ground); color: var(--ink); }
.dark input { font-family: var(--serif); font-size: var(--s0); width: 100%; background: transparent; color: var(--ground); border: 0; border-bottom: 1px solid var(--ground); padding: 8px 0; }
.dark :focus-visible { outline-color: var(--ground); }
@media (max-width: 683px) { .column .dark { margin-inline: -22px; } }
@media (min-width: 1024px) { .dark { padding: 28px; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { display: grid; gap: 2px; min-width: 0; }
.stat b { font-weight: 500; font-size: var(--s4); line-height: 1.05; font-variant-numeric: tabular-nums; }

.tabs, .choice { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tabs button, .choice button { all: unset; cursor: pointer; font-family: var(--label); font-stretch: 125%; font-weight: 600; font-size: var(--lab); letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal); padding: 4px 0; border-bottom: 3px solid transparent; }
.tabs button[aria-pressed="true"], .choice button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--terracotta); }
.tabs button:focus-visible, .choice button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.joblist { display: grid; border-top: 1px solid var(--stone); }
.jobrow { all: unset; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--stone); align-items: start; }
.jobrow:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.jobrow .thumb { grid-row: span 3; width: 64px; height: 80px; background: var(--stone); object-fit: cover; display: block; }
.jobrow h3 { font-weight: 700; font-size: var(--s1); line-height: 1.25; overflow-wrap: anywhere; }
.jobrow .stack { gap: 2px; }
.jobrow .meta { display: flex; flex-wrap: wrap; gap: 2px 14px; }
@media (min-width: 1024px) {
  .jobrow { grid-template-columns: 64px minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  .jobrow .thumb { grid-row: auto; }
  .jobrow .meta { display: grid; gap: 2px; }
}

.facts { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 8px 18px; }
.facts dt { padding-top: 6px; }
.facts dd { overflow-wrap: anywhere; white-space: pre-wrap; }

.version { display: grid; gap: 16px; min-width: 0; }
.version + .version { border-top: 1px solid var(--stone); padding-top: 18px; margin-top: 4px; }
.version .pic { width: 120px; height: 150px; object-fit: cover; background: var(--stone); display: block; }
.version .head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
.version .head .stack { gap: 4px; align-content: start; }
.figure { display: grid; gap: 8px; min-width: 0; }
.frame { border: 1px solid var(--stone); display: grid; justify-items: center; overflow: auto; }
.frame canvas, .frame img, .frame video { display: block; max-height: 78vh; width: auto; max-width: 100%; }
.refs { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* the timeline is the era: a stone spine and a 9px node */
.timeline { display: grid; border-left: 1px solid var(--stone); margin-left: 4px; }
.timeline li { position: relative; padding: 0 0 16px 20px; display: grid; gap: 1px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--ground); border: 1px solid var(--charcoal); }
.timeline li.now::before { background: var(--terracotta); border-color: var(--terracotta); }
/* the pull quote */
.quote { display: block; border-left: 2px solid var(--terracotta); padding-left: 14px; font-style: italic; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline .quote { margin-top: 4px; }

/* the rail: numbers in ink, a terracotta mark beside each, because the order is real */
.steps { display: grid; gap: 6px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 22px 16px minmax(0, 1fr); column-gap: 9px; align-items: baseline; color: var(--dim); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--label); font-stretch: 125%; font-weight: 600; font-size: var(--lab); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.steps li::after { content: ""; grid-column: 2; grid-row: 1; align-self: center; width: 16px; height: 3px; background: var(--terracotta); }
.steps li.done { color: var(--charcoal); }
.steps li.here { color: var(--ink); font-weight: 700; }

.people { display: grid; border-top: 1px solid var(--stone); }
.personrow { display: grid; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.personrow h3 { font-weight: 700; font-size: var(--s0); }
@media (min-width: 720px) { .personrow { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; } }
.code { font-weight: 700; font-size: var(--s2); line-height: 1.3; letter-spacing: 0.04em; font-variant-numeric: lining-nums tabular-nums; user-select: all; overflow-wrap: anywhere; }

/* the door is the cover: wordmark centred, then the way in */
.door { min-height: 100vh; display: grid; align-content: center; max-width: 460px; margin-inline: auto; padding: 48px 22px; gap: 30px; }
.door .cover { display: grid; justify-items: center; padding-bottom: 6px; }
.door .cover img { display: block; width: min(232px, 68%); height: auto; }
.door .foot { margin-top: 10px; }
progress { width: 100%; height: 3px; accent-color: var(--ink); }

/* ---------- the client's page ---------- */
.client { max-width: 1100px; margin-inline: auto; padding-inline: 22px; padding-block: 24px 48px; display: grid; gap: 30px; }
.clienthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--stone); padding-bottom: 16px; }
.clienthead .wordmark img { height: 19px; }
#body { display: grid; gap: 26px; }
.reviewgrid { display: grid; gap: 28px; align-items: start; }
.reviewgrid .frame img, .reviewgrid .frame video { max-height: none; width: 100%; user-select: none; -webkit-user-drag: none; }
.reviewgrid .figures { display: grid; gap: 28px; min-width: 0; }
@media (min-width: 900px) { .client { padding-inline: 56px; } .reviewgrid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; } .reviewgrid .side { position: sticky; top: 24px; } }
.side { display: grid; gap: 20px; }
.side h2 { font-weight: 500; font-size: var(--s3); line-height: 1.15; }
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color 0.12s ease, color 0.12s ease; } }
