/* Keel Furniture site stylesheet. The single source of truth for ground, ink and type.
   The interface has no color. Member colors live only inside generated drawings. */

@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/SpaceGrotesk-Bold.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/SpaceGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/SourceSerif4-Regular.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/assets/fonts/SourceSerif4-It.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/SourceSerif4-Semibold.woff2") format("woff2"); }

:root {
  --ground: #FAF8F4;      /* warm white, proposed; the book's cream #FDF8EF stays on hundredyearchair.com */
  --ink: #1A1613;
  --ink-soft: #6B6258;
  --slot: #E6E1D9;        /* warm gray photograph placeholder */
  --rule: 1px solid var(--ink);
  --gutter: 16px;
  --mark: 16px;           /* lockup height; clear space is one mark height */
  --measure: 68ch;
  --display: "Space Grotesk", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, serif;
}
@media (min-width: 768px) { :root { --gutter: 48px; --mark: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* Display face: lowercase, bold, for headlines, nav, prices, codes, dimensions, captions. */
.d, h1, h2, h3, nav, .price, .dim, figcaption, .slot {
  /* captions keep their case so names stay names; see TBD.md */
  font-family: var(--display); font-weight: 700; text-transform: lowercase;
  letter-spacing: -0.005em;
}
.d-medium { font-family: var(--display); font-weight: 500; }
.price, .dim, .code, .num { font-variant-numeric: tabular-nums lining-nums; }
h1 { font-size: 1.75rem; line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: 1.125rem; line-height: 1.25; margin: 0 0 0.75em; }
@media (min-width: 768px) { h1 { font-size: 2.5rem; } }

.wrap { padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

/* Masthead: lockup flush left with one mark height of clear space, nav beside it. */
.masthead {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  column-gap: calc(var(--mark) * 2); row-gap: var(--mark);
  padding: 0 var(--gutter); border-bottom: var(--rule);
}
.masthead .lockup { display: block; padding: var(--mark) 0; margin-left: 0; }
.masthead .lockup img { height: var(--mark); width: auto; }
.masthead nav ul { list-style: none; margin: 0; padding: 0 0 var(--mark); display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
@media (min-width: 768px) { .masthead nav ul { gap: 0.25rem 1.5rem; } }
.masthead nav a { text-decoration: none; font-size: 0.9375rem; }
@media (min-width: 768px) { .masthead nav a { font-size: 1rem; } }
.masthead nav a[aria-current="page"], .masthead nav a:hover { text-decoration: underline; }

main { padding-block: 2rem 4rem; }
section { margin-block: 3rem; }
section > h2 { border-top: var(--rule); padding-top: 0.75rem; }

/* Photograph placeholder: a warm gray field at the slot's true aspect ratio. */
figure { margin: 0 0 2rem; }
.slot {
  background: var(--slot); aspect-ratio: var(--ratio, 3 / 2); width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.15rem;
  padding: 0.75rem; font-size: 0.75rem; line-height: 1.3; color: var(--ink-soft);
}
.slot .reg { color: var(--ink); }
.bleed { margin-inline: calc(var(--gutter) * -1); }
.bleed figcaption { padding-inline: var(--gutter); }
figcaption { text-transform: none; font-size: 0.8125rem; line-height: 1.35; margin-top: 0.5rem; max-width: var(--measure); }

/* The ladder: the four modes as ruled rows, not tiles. */
.ladder { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule); }
.ladder li { display: grid; grid-template-columns: 6rem 1fr; gap: 0 1rem; padding: 0.9rem 0; border-top: var(--rule); }
.ladder .mode { font-family: var(--display); font-weight: 700; text-transform: lowercase; }
.ladder .rungs { margin: 0; padding: 0; list-style: none; }
.ladder .rungs li { display: flex; justify-content: space-between; gap: 1rem; padding: 0; border: 0; }
@media (min-width: 768px) { .ladder li { grid-template-columns: 10rem minmax(0, 40rem); } }

.lede { font-size: 1.25rem; line-height: 1.4; max-width: 34ch; margin: 0 0 2.5rem; }
@media (min-width: 768px) { .lede { font-size: 1.625rem; } }

footer { border-top: var(--rule); padding: 1.5rem var(--gutter) 3rem; font-family: var(--display); font-weight: 500; font-size: 0.8125rem; }
footer p { margin: 0 0 0.35rem; }

/* Add to cart: one control, one notice. The label keeps its case: "Coming Spring 2027". */
.cart button {
  font: 700 1rem var(--display); color: var(--ground); background: var(--ink);
  border: 0; padding: 0.8rem 1.25rem; cursor: pointer;
}
.cart .notice { margin-top: 0.75rem; font-size: 0.9375rem; }
.cart .notice input { font: inherit; padding: 0.5rem; border: var(--rule); background: var(--ground); width: min(100%, 18rem); }
.cart .notice button { padding: 0.5rem 0.9rem; font-size: 0.9375rem; }
.notify-status { display: block; margin-top: 0.35rem; color: var(--ink-soft); }

/* Product page. Phone: one column in anatomy order. Wide: the side elevation photograph
   and the drawing sit side by side at the same width, so they share a scale. */
.product .views { display: grid; gap: 0 2rem; }
.product .views figure { margin-bottom: 1.5rem; }
@media (min-width: 900px) {
  .product .views { grid-template-columns: 1fr 1fr; grid-template-areas: "side drawing" "tq tq"; }
  .product .v-side { grid-area: side; } .product .v-drawing { grid-area: drawing; } .product .v-tq { grid-area: tq; max-width: 50%; }
}
.drawing { width: 100%; aspect-ratio: var(--ratio); }
.drawing svg, .drawing img { width: 100%; height: 100%; }
.buy { max-width: var(--measure); margin-block: 1rem 3rem; }
.buy .idea { margin: 0 0 1rem; }
.buy .price { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; margin: 0 0 1.25rem; }
.buy fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.buy legend { font-family: var(--display); font-weight: 700; text-transform: lowercase; font-size: 0.875rem; margin-bottom: 0.35rem; }
.buy label { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0 1rem 0.35rem 0; font-family: var(--display); font-weight: 500; font-size: 0.9375rem; }
.buy input[type="radio"] { accent-color: var(--ink); margin: 0; }
.code { font-family: var(--display); font-weight: 500; font-size: 0.875rem; color: var(--ink-soft); }

.spec { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.5rem; margin: 0; max-width: var(--measure); }
.spec dt { font-family: var(--display); font-weight: 700; text-transform: lowercase; }
.spec dd { margin: 0; font-variant-numeric: tabular-nums lining-nums; }
.parts { list-style: none; margin: 0; padding: 0; max-width: var(--measure); border-bottom: var(--rule); }
.parts li { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 0 0.75rem; padding: 0.4rem 0; border-top: 1px solid var(--slot); }
.parts .qty, .parts .code { font-variant-numeric: tabular-nums lining-nums; }
.passport { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.5; margin: 0; }
.passport p { margin: 0; }
.doors { list-style: none; margin: 0; padding: 0; font-family: var(--display); font-weight: 700; text-transform: lowercase; }
.doors li { margin-bottom: 0.35rem; }
.tbd { color: var(--ink-soft); font-style: italic; }

/* The chairs grid: ruled, flush left, no cards. */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.grid figure { margin: 0 0 0.75rem; }
.grid .name { font-family: var(--display); font-weight: 700; margin: 0; }
.grid .name a { text-decoration: none; }
.grid .name a:hover { text-decoration: underline; }
.grid .line { margin: 0.15rem 0 0; font-size: 0.9375rem; }
.grid .meta { display: flex; justify-content: space-between; gap: 1rem; border-top: var(--rule); padding-top: 0.4rem; }
.grid .meta p { margin: 0; }
.grid img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }

/* Studio: the darker photographic register, inside the Studio section only. */
.studio .slot { background: #3A3531; color: #C9BEAC; }
.studio .slot .reg { color: #FAF8F4; }

/* The drawings page: one drawing per plan set, at a reading size. */
section[id] .v-drawing { max-width: 28rem; }

/* Notes: a ruled list, newest first. */
.notes { list-style: none; margin: 0; padding: 0; max-width: var(--measure); border-bottom: var(--rule); }
.notes li { border-top: var(--rule); padding: 0.75rem 0; }
.notes p { margin: 0; }
.series { font-family: var(--display); font-weight: 500; font-size: 0.8125rem; color: var(--ink-soft); margin: 0 0 0.25rem; }
.notes .title { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; }
.notes .title a { text-decoration: none; }
.notes .title a:hover { text-decoration: underline; }
.notes .line { font-size: 0.9375rem; margin-top: 0.15rem; }
article.measure h2 { border-top: var(--rule); padding-top: 0.75rem; margin-top: 2rem; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (min-width: 900px) { .product .views.proto, .views.proto { grid-template-columns: 1fr 1fr; grid-template-areas: "side drawing"; } }
.views.proto { display: grid; gap: 0 2rem; }

/* ---- Cowork review, 31 Oct: store layout ---- */
.price { white-space: nowrap; }

/* phone nav: one line, the rest behind a menu control */
.nav-narrow { display: none; }
@media (max-width: 767px) {
  .masthead { flex-wrap: nowrap; align-items: center; justify-content: space-between; column-gap: 1rem; }
  .nav-wide { display: none; }
  .nav-narrow { display: flex; align-items: baseline; gap: 1rem; font-family: var(--display); font-weight: 700; font-size: 0.9375rem; position: relative; }
  .nav-narrow > a { text-decoration: none; }
  .nav-narrow summary { cursor: pointer; list-style: none; }
  .nav-narrow summary::-webkit-details-marker { display: none; }
  .nav-narrow details[open] summary { text-decoration: underline; }
  .nav-narrow details ul { display: block; position: absolute; right: 0; top: 2rem; z-index: 5; list-style: none; margin: 0; padding: 0.75rem 1rem; background: var(--ground); border: var(--rule); min-width: 12rem; }
  .nav-narrow details li { padding: 0.3rem 0; }
  .nav-narrow details a { text-decoration: none; }
}

/* home hero: one chair, its name and price, and the email field */
.hero { display: grid; gap: 1.5rem 2.5rem; margin-block: 0 3rem; }
.hero figure { margin: 0; }
.hero h1 { font-size: 1.625rem; text-transform: none; }
.hero-product { font-family: var(--display); font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; border-top: var(--rule); padding-top: 0.5rem; }
.hero-product a { text-decoration: none; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .hero h1 { font-size: 2.125rem; }
}

/* the email capture */
.notify { margin: 0.75rem 0 0; font-size: 0.9375rem; }
.notify label { display: block; font-family: var(--display); font-weight: 700; margin-bottom: 0.35rem; }
.notify input[type="email"] { display: block; margin-top: 0.35rem; font: 1rem var(--text); padding: 0.55rem; border: var(--rule); background: var(--ground); width: min(100%, 20rem); }
.notify button { font: 700 0.9375rem var(--display); color: var(--ground); background: var(--ink); border: 0; padding: 0.55rem 1rem; margin-top: 0.4rem; cursor: pointer; }
.notify.asked input[type="email"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.footer-signup { margin-bottom: 1.25rem; max-width: 30rem; }
.footer-signup .notify label { font-weight: 700; }

/* product page: photographs and drawing beside the buy block, which stays in view */
.product .top { display: grid; gap: 0 2.5rem; }
@media (min-width: 900px) {
  .product .top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .product .top > [data-block="buy"] { position: sticky; top: 1rem; }
  .product .top .views { display: block; }
  .product .top .v-tq { max-width: none; }
}
.buy { margin-top: 0; }
.buy h1 { text-transform: none; }
.credit { font-size: 0.9375rem; }
.swatch { display: inline-block; width: 1.1rem; height: 1.1rem; border: 1px solid var(--ink); vertical-align: -0.2rem; }
.buy label { gap: 0.4rem; }
.terms { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 1rem; margin: 1.25rem 0 0.5rem; font-family: var(--display); font-weight: 500; font-size: 0.8125rem; color: var(--ink-soft); }
.terms dt { font-weight: 700; color: var(--ink); }
.terms dd { margin: 0; }
.summary { font-family: var(--display); font-weight: 700; margin: 0 0 0.5rem; }
details > summary { cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 0.9375rem; margin-bottom: 0.5rem; }

/* grid tiles: the whole tile is the link */
.grid .tile { display: block; text-decoration: none; color: inherit; }
.grid .tile:hover .name { text-decoration: underline; }
.grid .facts { margin: 0.25rem 0 0; font-family: var(--display); font-weight: 500; font-size: 0.8125rem; color: var(--ink-soft); }
.grid.small { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid.small { grid-template-columns: repeat(4, 1fr); } }

.notify-note { display: block; margin-top: 0.4rem; font-family: var(--display); font-weight: 500; font-size: 0.75rem; color: var(--ink-soft); max-width: 22rem; }
.notify-embed { margin: 0.75rem 0 0; }
.notify-lead { font-family: var(--display); font-weight: 700; font-size: 0.9375rem; margin: 0 0 0.35rem; }
.notify-embed iframe { display: block; width: 100%; max-width: 30rem; height: 320px; border: 0; background: transparent; }
.notify-embed.asked iframe { outline: 2px solid var(--ink); outline-offset: 2px; }
