/* cheich.com: styles shared by the home page and /buy/.
   Mahogany #64090C and parchment #EFEACD carry the identity; espresso is the ink. */

:root {
  --mahogany: #64090c;
  --oxblood: #4a0608;
  --parchment: #efeacd;
  --ivory: #f8f4e4;
  --espresso: #24140f;
  --ink: #1a1210;
  --text-dim: #5e4f43;
  --paper-dim: rgba(239, 234, 205, .74);
  --rule: rgba(100, 9, 12, .24);
  --rule-dark: rgba(239, 234, 205, .3);
  --error-light: #ffc2b8;
  --blued: #233c8f;      /* blued-steel hands */
  --sapphire: #1d3488;   /* the cabochon on the crown */

  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --gap: clamp(16px, 2vw, 28px);
  --header: 60px;
  --section: clamp(72px, 10vw, 136px);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--parchment);
  color: var(--espresso);
  font: 400 1.0625rem/1.6 var(--sans);
  /* Bodoni Moda's automatic optical size gives hairlines too fine for screens; text sizes use 12,
     headings 28 (other fonts ignore the axis) */
  font-variation-settings: "opsz" 12;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
cite { font-style: italic; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--mahogany); color: var(--parchment); }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--mahogany);
  color: var(--parchment);
}
.skip-link:focus { top: 12px; }

/* ---------- Shared pieces ---------- */

.history-head h2, .watch-copy h2, .name h2, .for-sale h2, .faq h2, .buy-intro h1, .lost h1,
.chapter-year, .headword, .success-title {
  font-variation-settings: "opsz" 28;
}

.standfirst {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.3;
}

.availability {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--mahogany);
}
.availability a { text-decoration: none; }
.availability a:hover { text-decoration: underline; }

.button {
  display: inline-block;
  padding: 16px 24px;
  border: 1px solid var(--mahogany);
  background: var(--mahogany);
  color: var(--parchment);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button:hover { background: var(--oxblood); border-color: var(--oxblood); }
.button-light { border-color: var(--parchment); background: var(--parchment); color: var(--mahogany); }
.button-light:hover { border-color: var(--ivory); background: var(--ivory); color: var(--oxblood); }
.button[disabled] { cursor: progress; opacity: .7; }

.text-link { color: var(--mahogany); font-weight: 500; }

.fig { margin-right: .75em; font-weight: 500; }

/* every section closes on the same running line, like the foot of a printed page */
.folio {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--text-dim);
}
.folio a { color: var(--mahogany); font-weight: 500; }
.on-dark .folio { border-top-color: var(--rule-dark); color: var(--paper-dim); }
.on-dark .folio a { color: var(--parchment); }

.plate figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.on-dark .plate figcaption { color: var(--paper-dim); }
.plate img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: var(--parchment);
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header); }

.wordmark {
  color: var(--mahogany);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s, visibility .2s;
}
.wordmark i { font-style: italic; }
.js .site-header:not(.show-mark) .wordmark { visibility: hidden; opacity: 0; }

.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { font-size: .95rem; text-decoration: none; }
.nav a:hover { color: var(--mahogany); text-decoration: underline; }

.header-cta {
  margin-left: auto;
  padding: 9px 14px;
  background: var(--mahogany);
  color: var(--parchment);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: var(--oxblood); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav ~ .header-cta { margin-left: 8px; }
}
@media (max-width: 359px) {
  .header-inner { gap: 10px; }
  .wordmark { font-size: 1.15rem; }
  .header-cta { padding: 8px 10px; font-size: .8rem; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  grid-template-rows: auto 1fr;
  min-height: calc(100svh - var(--header));
  container-type: inline-size;
}
.hero-panel { grid-column: 2; grid-row: 1 / 3; background: var(--mahogany); }

.masthead {
  position: relative;
  z-index: 1;
  grid-column: 1 / 3;
  grid-row: 1;
  padding: clamp(16px, 2.6vw, 40px) var(--gutter) .08em var(--edge);
  color: var(--mahogany);
  font-family: var(--display);
  /* "cheich" is 2.845em wide: size it so the word ends just before the panel (55%)
     and ".com" sits entirely inside the mahogany */
  font-size: clamp(4rem, calc((55cqw - var(--edge) - 6px) / 2.85), 18rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.03em;
  white-space: nowrap;
  /* the two-colour fill renders text through a mask, which drops very fine hairlines: keep them sturdier */
  font-variation-settings: "opsz" 14;
}
.masthead i { font-style: italic; }
/* nudge ".com" just past the panel edge so the dot sits wholly in the mahogany */
@media (min-width: 900px) { .masthead i { margin-left: .03em; } }
/* the name crosses from the parchment into the mahogany panel and changes colour where they meet */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .masthead {
    background: linear-gradient(90deg, var(--mahogany) 55%, var(--parchment) 55%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hero-copy {
  grid-column: 1;
  grid-row: 2;
  /* start under the name, so the offer button stays on the first screen whatever the photo's height */
  align-self: start;
  max-width: calc(38rem + var(--edge));
  padding: clamp(20px, 2.4vw, 36px) clamp(32px, 5vw, 72px) clamp(40px, 5vw, 72px) var(--edge);
}
.hero-copy .standfirst { margin-top: 12px; font-size: clamp(1.15rem, 1.3vw, 1.4rem); }
.hero-copy .button { margin-top: 22px; }

/* auction results, set like a catalogue price list */
.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 20px;
  border-top: 1px solid var(--mahogany);
}
.prices div { padding-top: 12px; }
.prices dt { font-family: var(--mono); font-size: .75rem; color: var(--text-dim); }
.prices dd:not(.prices-note) {
  margin-top: 2px;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.9vw, 1.75rem);
  font-variation-settings: "opsz" 12;
  line-height: 1.1;
}
.prices-note { margin-top: 4px; font-size: .8125rem; color: var(--text-dim); }
@media (max-width: 380px) { .prices { grid-template-columns: 1fr; gap: 12px; } }
.note { margin-top: 12px; font-family: var(--mono); font-size: .8125rem; color: var(--text-dim); }

.hero-figure {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  /* the photo scales with the screen's height, so it never pushes past the first view */
  --photo: clamp(320px, calc((100svh - 290px) * .8), 500px);
  width: min(100%, calc(var(--photo) + 2 * var(--gutter)));
  padding: clamp(20px, 2.4vw, 36px) var(--gutter) clamp(32px, 4vw, 56px);
  color: var(--parchment);
}
.hero-figure figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--paper-dim);
}

/* a frame drawn like the railway minute track on the Cheich dial */
.rail { --tick: rgba(239, 234, 205, .7); position: relative; padding: 11px; }
.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--tick);
  background:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 9px) top / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 9px) bottom / 100% 11px no-repeat,
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 9px) left / 11px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 9px) right / 11px 100% no-repeat;
}
.rail img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  outline: 1px solid var(--tick);
}

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .hero-panel { display: none; }
  .masthead {
    grid-column: 1;
    padding-top: 28px;
    font-size: clamp(3.3rem, 18.5vw, 9rem);
    font-variation-settings: "opsz" 12;
    background: none;
    color: var(--mahogany);
    -webkit-text-fill-color: currentColor;
  }
  .hero-copy { grid-column: 1; grid-row: 2; max-width: none; padding: 18px var(--gutter) 40px; }
  .hero-figure {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    width: auto;
    padding: 32px var(--gutter) 28px;
    background: var(--mahogany);
  }
  .hero-figure .rail, .hero-figure figcaption { max-width: 440px; margin-inline: auto; }
}

/* ---------- History and heritage ---------- */

.history { padding: var(--section) 0; }

.history-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 20px;
  align-items: end;
}
.history-head h2 {
  grid-column: 1 / 8;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
}
.history-head .standfirst { grid-column: 8 / 13; padding-bottom: .4em; }

.dictionary {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--mahogany);
  border-bottom: 1px solid var(--mahogany);
}
.headword {
  grid-column: 1 / 5;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-style: italic;
  line-height: 1;
}
.part { grid-column: 5 / 7; font-family: var(--mono); font-size: .875rem; color: var(--text-dim); }
.definition {
  grid-column: 7 / 13;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.3;
}

.chapter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 16px;
  padding: clamp(32px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
}
.chapter-year {
  grid-column: 1 / 4;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: .9;
  letter-spacing: -.01em;
}
.chapter-body { grid-column: 4 / 9; }
.chapter:not(:has(.chapter-plate)) .chapter-body { grid-column: 4 / 11; }
.chapter-body h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.15;
}
.chapter-body p { max-width: 36em; }
.chapter-body p + p { margin-top: 12px; }
.chapter-plate { grid-column: 9 / 13; }
.chapter-today { border-bottom: 0; }

@media (max-width: 899px) {
  .history-head h2, .history-head .standfirst { grid-column: 1 / -1; }
  .dictionary { row-gap: 10px; }
  .headword { grid-column: 1 / 9; }
  .part { grid-column: 9 / 13; text-align: right; }
  .definition { grid-column: 1 / -1; }
  .chapter-year,
  .chapter-body,
  .chapter:not(:has(.chapter-plate)) .chapter-body,
  .chapter-plate { grid-column: 1 / -1; }
  .chapter-plate { margin-top: 8px; }
}

/* ---------- The watch ---------- */

.watch { padding: var(--section) 0; border-top: 1px solid var(--rule); }

.watch-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
  align-items: start;
}
.drawing-plate { grid-column: 1 / 7; }
.drawing { width: 100%; height: auto; }
.drawing .dim path { fill: none; stroke: var(--mahogany); stroke-width: 1; vector-effect: non-scaling-stroke; }
.drawing .dim-label text { fill: var(--mahogany); font-family: var(--mono); font-size: 17px; }
.drawing-plate figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.watch-copy { grid-column: 8 / 13; padding-top: 20px; }
.watch-copy h2 {
  margin-bottom: 24px;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
}
.watch-copy p + p { margin-top: 14px; }

.specs { margin-top: 32px; border-top: 1px solid var(--rule); }
.specs div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.specs dt { padding-top: 2px; font-family: var(--mono); font-size: .8125rem; color: var(--text-dim); }
.source { margin-top: 14px; font-family: var(--mono); font-size: .75rem; color: var(--text-dim); }

@media (max-width: 899px) {
  .drawing-plate, .watch-copy { grid-column: 1 / -1; }
  .watch-copy { padding-top: 0; }
}

/* ---------- Details ---------- */

.details { padding: var(--section) 0; background: var(--mahogany); color: var(--parchment); }

.annotated-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
  align-items: end;
}
.annotated-plate { grid-column: 1 / 9; }
.annotated { position: relative; }
.annotated img { width: 100%; aspect-ratio: 1024 / 640; object-fit: cover; }
.annotated-plate figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--paper-dim);
}
.marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid var(--mahogany);
  border-radius: 50%;
  background: var(--parchment);
  color: var(--mahogany);
  font: 500 .75rem/1 var(--mono);
}

.marker-1 { --x: 28%; --y: 52%; }
.marker-2 { --x: 60%; --y: 17%; }
.marker-3 { --x: 44%; --y: 58%; }
.marker-4 { --x: 57%; --y: 41.5%; }
.marker-5 { --x: 77.5%; --y: 61%; }

.legend { grid-column: 9 / 13; border-top: 1px solid var(--rule-dark); }
.legend li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.legend-num { font-family: var(--mono); font-size: .875rem; color: var(--paper-dim); }

.plate-band { width: min(100%, 1080px); margin-top: clamp(56px, 8vw, 104px); margin-left: auto; }
.plate-band img { aspect-ratio: 21 / 8; }

.detail-pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  margin-top: clamp(40px, 6vw, 72px);
  align-items: start;
}
.plate-left { grid-column: 1 / 6; }
.plate-right { grid-column: 7 / 13; margin-top: clamp(40px, 8vw, 120px); }

@media (max-width: 899px) {
  .annotated-plate, .legend, .plate-left, .plate-right { grid-column: 1 / -1; }
  .plate-right { margin-top: 0; }
  .plate-band img { aspect-ratio: 16 / 9; }
  .marker { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: .6875rem; }
}

/* ---------- The name ---------- */

.name { padding: var(--section) 0; }
.name-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 32px;
  align-items: start;
}
.name h2 {
  grid-column: 1 / 7;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.015em;
}
.name-body { grid-column: 8 / 13; padding-top: 10px; }
.uses-intro { margin-top: 28px; font-family: var(--mono); font-size: .8125rem; color: var(--text-dim); }
.uses { margin-top: 8px; border-top: 1px solid var(--rule); }
.uses li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.25;
}

@media (max-width: 899px) {
  .name h2, .name-body { grid-column: 1 / -1; }
  .name-body { padding-top: 0; }
}

/* ---------- Closing band ---------- */

.for-sale { padding: clamp(64px, 9vw, 120px) 0; background: var(--mahogany); color: var(--parchment); }
.for-sale-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
  align-items: end;
}
.for-sale h2 {
  grid-column: 1 / 9;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
}
.for-sale-cta { grid-column: 9 / 13; }
.for-sale-cta p { margin-bottom: 20px; color: var(--paper-dim); }

@media (max-width: 899px) {
  .for-sale h2, .for-sale-cta { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
}
.footer-sale { grid-column: 1 / 6; }
.footer-mark { color: var(--mahogany); font-family: var(--display); font-size: 2.2rem; line-height: 1.1; }
.footer-sale a { color: var(--mahogany); font-weight: 500; }
.colophon {
  grid-column: 6 / 13;
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.colophon p + p { margin-top: 10px; }

@media (max-width: 899px) {
  .footer-sale, .colophon { grid-column: 1 / -1; }
}

/* ---------- Buying page ---------- */

.buy {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: calc(100svh - var(--header));
}
.buy-intro { padding: clamp(32px, 5vw, 72px) clamp(32px, 5vw, 72px) clamp(40px, 5vw, 72px) var(--edge); }
.buy-intro h1 {
  margin-top: 6px;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.025em;
}
.buy-intro .standfirst { max-width: 30em; margin-top: 20px; }

.steps { max-width: 36rem; margin-top: 36px; border-top: 1px solid var(--rule); }
.steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.step-num { font-family: var(--mono); font-size: .875rem; color: var(--text-dim); padding-top: 2px; }
.steps strong { font-weight: 600; }

.buy-figure { max-width: 36rem; margin-top: 40px; }
.buy-figure a { color: var(--mahogany); }

.buy-panel {
  padding: clamp(32px, 5vw, 72px) var(--edge) clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px);
  background: var(--mahogany);
  color: var(--parchment);
}
.buy-panel .inquiry-form { max-width: 34rem; }

@media (max-width: 899px) {
  .buy { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .buy-intro { padding: 32px var(--gutter) 40px; }
  .buy-panel { padding: 40px var(--gutter) 48px; }
}

/* ---------- Offer form (on mahogany) ---------- */

.form-fields { display: grid; gap: 22px; }
.form-fields[hidden] { display: none; }
.form-title { font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 400; line-height: 1.1; }

.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: .8125rem; color: var(--paper-dim); }
.field input,
.field textarea,
.money select {
  width: 100%;
  padding: 10px 0 9px;
  border: 0;
  border-bottom: 1px solid var(--rule-dark);
  border-radius: 0;
  background: transparent;
  color: var(--parchment);
  font-size: 1.1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.money select:focus {
  outline: none;
  border-bottom-color: var(--parchment);
  box-shadow: 0 1px 0 0 var(--parchment);
}
.field [aria-invalid="true"] { border-bottom-color: var(--error-light); box-shadow: 0 1px 0 0 var(--error-light); }

.money { display: flex; align-items: end; gap: 16px; }
.money select {
  flex: none;
  width: auto;
  padding-right: 20px;
  appearance: none;
  background: 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='%23efeacd' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center / 10px;
  cursor: pointer;
}
.money select option { background: var(--parchment); color: var(--espresso); }
.money input { flex: 1; min-width: 0; font-family: var(--display); font-size: 1.5rem; padding-bottom: 6px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inquiry-form .button { justify-self: start; margin-top: 6px; }
.form-status { min-height: 1.4em; font-family: var(--mono); font-size: .8125rem; }
.form-status.is-error { color: var(--error-light); }
.terms, .prefer-email { font-family: var(--mono); font-size: .75rem; color: var(--paper-dim); }
.prefer-email a { color: var(--parchment); }

.form-success { display: grid; gap: 12px; }
.form-success[hidden] { display: none; }
.success-title { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.success-text { max-width: 30em; }
.text-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--mono);
  font-size: .8125rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

/* ---------- Buyer questions ---------- */

.faq { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
}
.faq h2 {
  grid-column: 1 / 5;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}
.faq-list { grid-column: 6 / 13; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); color: var(--mahogany); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 40em; padding-bottom: 20px; }

@media (max-width: 899px) {
  .faq h2, .faq-list { grid-column: 1 / -1; }
}

/* ---------- Photo viewer ---------- */

.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--parchment);
}
.viewer[open] {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 64px var(--gutter) 32px;
}
.viewer::backdrop { background: rgba(26, 18, 16, .6); }
html:has(.viewer[open]) { overflow: hidden; }
.viewer-img { max-width: min(1200px, 100%); max-height: calc(100svh - 170px); object-fit: contain; cursor: zoom-out; }
.viewer-caption { max-width: 60em; font-family: var(--mono); font-size: .8125rem; color: var(--paper-dim); text-align: center; }
.viewer-close {
  position: fixed;
  top: 14px;
  right: var(--gutter);
  padding: 8px 12px;
  border: 1px solid var(--rule-dark);
  background: none;
  color: var(--parchment);
  font-family: var(--mono);
  font-size: .8125rem;
  cursor: pointer;
}
.viewer-close:hover { border-color: var(--parchment); }

/* ---------- Not found ---------- */

.lost { padding: clamp(80px, 14vw, 180px) 0; }
.lost h1 {
  margin-top: 10px;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  line-height: .95;
}
.lost .standfirst { max-width: 30em; margin-top: 24px; }
.lost .standfirst a { color: var(--mahogany); }


/* ---------- Watchmaking details from the Cheich itself ---------- */

/* the sapphire cabochon set in the crown, marking every "for sale" line */
.availability::before {
  content: "";
  display: inline-block;
  width: .6em;
  height: .6em;
  margin-right: .5em;
  border-radius: 50%;
  vertical-align: .05em;
  background: radial-gradient(circle at 35% 30%, #9fb2ff 0 12%, #3a55c4 34%, var(--sapphire) 62%, #0b1640 100%);
  box-shadow: 0 0 0 1px rgba(100, 9, 12, .35);
}

/* chapters counted in Roman numerals, as on the dial */
.chapters { counter-reset: chapter; }
.chapter { counter-increment: chapter; }
.chapter-year::before {
  content: counter(chapter, upper-roman);
  display: block;
  margin-bottom: 10px;
  color: var(--mahogany);
  font-family: var(--display);
  font-size: 1.35rem;
  font-variation-settings: "opsz" 12;
  letter-spacing: .04em;
}

/* the railway minute track, drawn as a rule where the story begins and the page ends */
.history, .site-footer { position: relative; }
.history::before, .site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  border-block: 1px solid var(--mahogany);
  background: repeating-linear-gradient(90deg, var(--mahogany) 0 1px, transparent 1px 8px);
  opacity: .55;
}

/* links take the colour of the blued hands */
.text-link:hover, .folio a:hover, .footer-sale a:hover, .colophon a:hover, .nav a:hover { color: var(--blued); }

/* ---------- More of the watch, everywhere ---------- */

/* every photograph framed like the railway minute track on the dial */
.zoom, .annotated { --tick: rgba(100, 9, 12, .55); position: relative; padding: 8px; }
.on-dark .zoom, .on-dark .annotated { --tick: rgba(239, 234, 205, .6); }
.zoom::before, .annotated::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--tick);
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 8px) top / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 8px) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 8px) left / 8px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 8px) right / 8px 100% no-repeat;
}
.zoom img, .annotated img { outline: 1px solid var(--tick); }
.annotated-inner { position: relative; }

/* the main buttons carry a cabochon, like the crown on the side of the case */
.button::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-left: .7em;
  border-radius: 50%;
  vertical-align: .05em;
  background: radial-gradient(circle at 35% 30%, #9fb2ff 0 12%, #3a55c4 34%, var(--sapphire) 62%, #0b1640 100%);
  box-shadow: 0 0 0 1px rgba(239, 234, 205, .5);
}

/* the railway track opens the closing band and the offer panel too */
.for-sale, .buy-panel { position: relative; }
.for-sale::before, .buy-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  border-block: 1px solid var(--parchment);
  background: repeating-linear-gradient(90deg, var(--parchment) 0 1px, transparent 1px 8px);
  opacity: .45;
}

/* ---------- Phones ---------- */

@media (max-width: 899px) {
  /* the name fills the width of the screen */
  .masthead { font-size: calc((100vw - 2 * var(--gutter)) / 4.75); padding-top: 22px; }

  /* comfortable thumb targets */
  .header-cta { min-height: 44px; display: inline-flex; align-items: center; }
  .button { min-height: 48px; }

  /* prices as a clean list: what it was, then the figure */
  .prices { grid-template-columns: 1fr; gap: 0; }
  .prices div { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .prices dt { grid-column: 1 / -1; }
  .prices dd:not(.prices-note) { grid-column: 1; }
  .prices-note { grid-column: 1; }

  /* specifications: label above value, nothing squeezed */
  .specs div { grid-template-columns: 1fr; gap: 2px; }

  /* the technical drawing's measurements stay legible */
  .drawing .dim-label text { font-size: 30px; }

  .chapter { padding: 28px 0; }
  .chapter-year { font-size: 2.6rem; }
}

/* Cloudflare's check is a fixed 300px box: let it shrink to fit the smallest phones */
@media (max-width: 340px) {
  .buy-panel { overflow-x: clip; }
  .cf-turnstile { transform: scale(.94); transform-origin: 0 0; }
}
