/* Hako London, private invitation. Production stylesheet for design/mockups/letter.html.
   Tokens are copied from .claude/skills/hako-design/tokens.css; nothing is added to them. */

/* Fonts: three self-hosted latin woff2 files, SIL Open Font License (see assets/fonts/LICENSE.txt). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-400.woff2") format("woff2");
}

/* Tokens */
:root {
  --paper: #f9f7f3;
  --paper-deep: #f1ede4;      /* linen: the toned bands (client request, 16 Sep 2026) */
  --success: #2f6a46;         /* deep green, only for the confirmation mark (client request) */
  --ink: #1c1814;
  --ink-soft: rgba(28, 24, 20, 0.65);
  --hairline: rgba(28, 24, 20, 0.15);
  --field-border: rgba(28, 24, 20, 0.25);
  --accent: #510000;

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif;
  --sans: "Jost", "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --display: 400 clamp(34px, 4.2vw, 44px) / 1.15 var(--serif);
  --heading: 400 clamp(26px, 3vw, 30px) / 1.2 var(--serif);
  --body: 400 clamp(16px, 1.1vw, 17px) / 1.6 var(--sans);
  --label: 400 12px / 1 var(--sans);
  --label-tracking: 0.18em;
  --fine: 400 13px / 1.5 var(--sans);

  --band: clamp(64px, 8vw, 96px);
  --gutter: clamp(20px, 4vw, 40px);
  --measure: 680px;
  --wide: 1120px;

  --radius: 0;
  --rule: 1px solid var(--hairline);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fade: 700ms;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color-scheme: light; overflow-x: clip; }   /* light native controls; never scrolls sideways */
@supports not (overflow-x: clip) { html { overflow-x: hidden; } }
body {
  margin: 0;
  padding: 0 var(--gutter);
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: var(--body);
  -webkit-font-smoothing: antialiased;
  animation: fade var(--fade) var(--ease) both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

h1, h2, h3, p, ol, ul, figure, fieldset, legend { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* The letter: one column. 640 px is the letter's measure, 40 px inside the 680 px token. */
.column { max-width: 640px; margin: 0 auto; }

/* Letterhead: the HAKO wordmark, a transparent PNG/WebP trimmed to the letters and shown at the
   mock-up's size, about 127 x 30 px inside a 132 x 44 px box. */
.masthead { padding: 30px 0 24px; text-align: center; border-bottom: var(--rule); }
.logo {
  display: block;
  width: 132px;
  height: 44px;
  margin: 0 auto;
  object-fit: contain;
  object-position: 50% 50%;
}

/* Bands: one idea each, separated by a hairline and space */
.band { padding: var(--band) 0; }
.band + .band { border-top: var(--rule); }

/* Toned bands: the section spans the viewport (cancelling the body gutters), the column sits inside. */
.band.tone, .band.ink {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  border-top: 0;
}
.band.tone + .band, .band.ink + .band { border-top: 0; }
.band.tone { background: var(--paper-deep); }
.band.ink { background: var(--ink); color: var(--paper); }
.band.ink .eyebrow, .band.ink .fine { color: rgba(249, 247, 243, 0.65); }
.band.ink .textlink { color: var(--paper); }

/* Type */
.eyebrow {
  font: var(--label);
  line-height: 1.4;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.eyebrow.accent { color: var(--accent); }
h1 { font: var(--display); max-width: 14em; text-wrap: balance; }
h2 { font: var(--heading); max-width: 18em; text-wrap: balance; }
.text { max-width: 28em; }            /* about 66 characters: Jost measures 0.43 em per character */
h1 + .text, h2 + .text { margin-top: 24px; }
.text + .text { margin-top: 16px; }
.actions { margin-top: 40px; }
.fine { font: var(--fine); color: var(--ink-soft); }
.actions + .fine { margin-top: 20px; }

/* Serif at body optical size: Cormorant 24/22 px sits level with Jost 17/16 px.
   Used for step titles and the name line. */
.subhead { font: 400 clamp(22px, 1.9vw, 24px) / 1.3 var(--serif); }

/* Buttons: (b) bordered rectangle, (c) filled rectangle in the accent, (a) tracked text link */
.button, .submit {
  display: inline-block;
  padding: 14px 28px;
  padding-right: calc(28px - 0.18em);
  font: 400 13px / 1 var(--sans);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.button:hover { background: var(--ink); color: var(--paper); }
.submit { color: var(--paper); background: var(--accent); border-color: var(--accent); width: 100%; }
.submit:hover { background: var(--paper); color: var(--accent); }
.submit:disabled, .submit:disabled:hover { color: var(--paper); background: var(--accent); cursor: default; }
.textlink {
  display: inline-block;
  font: 400 13px / 1.4 var(--sans);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-underline-offset 160ms var(--ease);
}
.textlink:hover { text-underline-offset: 3px; }
@media (min-width: 600px) { .submit { width: auto; } }

/* The one photograph: a 3:2 frame, already cropped to that aspect by scripts/images.mjs. */
.photo { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 48px; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* What is included: an inventory set in the serif, ruled rows, two columns when there is room */
.inventory { list-style: none; margin-top: 40px; border-top: var(--rule); }
.inventory li {
  font: 400 clamp(21px, 1.8vw, 23px) / 1.3 var(--serif);
  padding: 16px 0;
  border-bottom: var(--rule);
}
@media (min-width: 600px) {
  .inventory { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* How it works: each step marked with a word in italic serif, as a letter would say it */
.steps { list-style: none; margin-top: 40px; border-top: var(--rule); }
.steps li {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
  padding: 26px 0;
  border-bottom: var(--rule);
}
.steps li:last-child { border-bottom: 0; }   /* the band's own rule follows; no doubled line */
.steps .mark { font: italic 400 clamp(21px, 1.8vw, 23px) / 1.35 var(--serif); color: var(--ink-soft); }
.steps h3 { margin-bottom: 8px; }
.steps p { max-width: 28em; }
@media (max-width: 599px) {
  .steps li { grid-template-columns: 1fr; gap: 6px; }   /* phones: the word sits above the title */
}

/* Price */
.figure { font: var(--display); margin-bottom: 20px; }
.figure + .text { margin-top: 0; }

/* Form, as part of the letter */
.form { margin-top: 8px; }
fieldset { border: 0; min-width: 0; margin-top: 48px; }
legend { font: var(--heading); margin-bottom: 28px; }
.fields { display: grid; gap: 24px; }
@media (min-width: 600px) { .fields.pair { grid-template-columns: 1fr 1fr; } }
.field { min-width: 0; }
.fields + .fields { margin-top: 24px; }
.field label {
  display: block;
  font: var(--label);
  line-height: 1.4;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.field .hint { font: var(--fine); color: var(--ink-soft); margin: -4px 0 10px; max-width: 28em; }
.input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: 400 16px / 1.4 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
}
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--accent); }
/* The date-and-time field keeps the browser's own control (iOS needs it to show the value and
   open its picker); only the box, type and colour are ours. */
input[type="datetime-local"].input { appearance: auto; -webkit-appearance: auto; color: var(--ink); }
input[type="datetime-local"].input::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.select { position: relative; }
.select .input { padding-right: 44px; }
.select::after {                       /* the chevron, 1 px, drawn in CSS */
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.error { font: var(--fine); color: var(--accent); margin-top: 8px; }
.form-actions { margin-top: 40px; }
.form-actions .error { margin: 0 0 20px; }
.privacy { font: var(--fine); color: var(--ink-soft); max-width: 28em; margin-top: 20px; }
.success { margin-top: 40px; }
.success p { font: var(--heading); max-width: 20em; }
.success:focus { outline: none; }

/* Confirmation dialog: a card of paper on dimmed ink, the same type as the page. */
.confirm {
  width: calc(100% - 2 * var(--gutter));
  max-width: 520px;
  margin: auto;
  padding: 40px 32px 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.confirm::backdrop { background: rgba(28, 24, 20, 0.6); }
.confirm[open] { animation: fade var(--fade) var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .confirm[open] { animation: none; } }
.confirm-mark {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  fill: none;
  stroke: var(--success);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.confirm .eyebrow { margin-bottom: 16px; }
.confirm-text { font: var(--heading); margin: 0 0 32px; }
.confirm .fine { margin-bottom: 28px; max-width: 28em; }
.confirm form { margin: 0; }
@media (min-width: 600px) { .confirm { padding: 48px 44px 44px; } }
/* The honeypot: off-screen for people, present for scripts that fill every field. */
.extra { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Closing */
.closing { border-top: var(--rule); }
.signoff { font: italic 400 clamp(26px, 3vw, 30px) / 1.2 var(--serif); }
.name { margin-top: 20px; }
.contact { margin-top: 28px; }
.contact p + p { margin-top: 2px; }
.contact a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.private { margin-top: 32px; }
