/* The Book Makers: a quiet, typographic page. No framework, no script. */

:root {
  --paper: #f6f1e7;
  --band: #ede5d4;
  --field: #fffdf8;
  --ink: #1d1b17;
  --ink-2: #4f493f;
  --muted: #5e574c;
  --rule: #d6ccb8;
  --rule-strong: #b9ae99;
  --accent: #7d2a1c;
  --footer-text: #f6f1e7;
  --footer-soft: #cfc6b5;

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 5vw, 44px);
  --section: clamp(72px, 10vw, 136px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: lining-nums;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.6rem + 1.9vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.75rem, 1.45rem + 1.05vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

h3 {
  font-size: clamp(1.3rem, 1.2rem + 0.35vw, 1.5rem);
  line-height: 1.2;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.wrap.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

main:focus { outline: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 36em;
}

/* Buttons and links ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8em 1.55em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.text-link:hover { text-decoration-color: currentColor; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.96);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
}
.wordmark:hover { color: var(--ink); }
.wordmark-mark { width: 38px; height: 26px; color: var(--accent); flex: none; }
.wordmark-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--ink-2);
  padding: 10px 0;
}
.site-nav a:hover { color: var(--accent); }

.btn-header { min-height: 44px; padding: 0.55em 1.15em; font-size: 0.95rem; }
.label-short { display: none; }

@media (max-width: 1020px) {
  .site-nav { display: none; }
}

@media (max-width: 520px) {
  .header-inner { min-height: 64px; gap: 12px; }
  .wordmark { gap: 9px; }
  .wordmark-mark { width: 30px; height: 21px; }
  .wordmark-text { font-size: 1.38rem; }
  .label-long { display: none; }
  .label-short { display: inline; }
  html { scroll-padding-top: 76px; }
}

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

.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(8px, 2vw, 24px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 1.4rem; max-width: 11em; }
.hero-copy .lede { margin-bottom: 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(29, 27, 23, 0.06), 0 18px 40px -18px rgba(29, 27, 23, 0.35);
}

figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 999px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: 13em; }
}

/* Sections -------------------------------------------------------------- */

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

.band {
  background: var(--band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 1.1rem; }

.section-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 36em;
}

/* Approach -------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.pillar {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.pillar h3 { margin-bottom: 0.7rem; }
.pillar p { color: var(--ink-2); }

@media (max-width: 860px) {
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* Services -------------------------------------------------------------- */

.services { border-top: 1px solid var(--rule-strong); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 12px 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.service h3 { padding-top: 2px; }
.service p { color: var(--ink-2); max-width: 44em; }

@media (max-width: 760px) {
  .service { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
}

/* Process --------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(32px, 4vw, 56px);
}

.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
}
.step h3 { margin-bottom: 0.55rem; }
.step p { color: var(--ink-2); }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step::before { font-size: 1.85rem; }
}

/* Work ------------------------------------------------------------------ */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
}

.plate { margin: 0; }
.plate img {
  width: 100%;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(29, 27, 23, 0.05), 0 12px 28px -18px rgba(29, 27, 23, 0.3);
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

.booklist-wrap {
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--ink);
}

.booklist-title { margin-bottom: clamp(24px, 3vw, 36px); }

.booklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
}

.booklist li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--rule-strong);
  min-width: 0;
}

.book-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
  overflow-wrap: anywhere;
}
.book-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--ink-2);
  font-variant-numeric: lining-nums;
  overflow-wrap: anywhere;
}
.book-author {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  .booklist { grid-template-columns: minmax(0, 1fr); }
}

/* Investment ------------------------------------------------------------ */

.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.price-card {
  background: var(--field);
  border: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
}

.price-card h3 { margin-bottom: 1rem; }

.price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.7rem + 1.1vw, 2.6rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
  margin: 0 0 0.4rem;
}
.price-to {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--ink-2);
  margin: 0 0.15em;
}
.price-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.includes {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.includes li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.includes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.25em;
  width: 9px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 0 0.5px var(--accent);
}

.fineprint {
  margin-top: auto;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.also {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: 1.05rem;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .prices { grid-template-columns: minmax(0, 1fr); }
}

/* Studio ---------------------------------------------------------------- */

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.studio-aside h2 { margin-bottom: 1.6rem; }

.founded {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 8px 2px;
}

.studio-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 38em;
}
.studio-text p + p { margin-top: 1.1em; }

@media (max-width: 860px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-aside h2 { margin-bottom: 1.2rem; }
}

/* Inquiry --------------------------------------------------------------- */

.inquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.inquire-intro h2 { margin-bottom: 1.2rem; }
.inquire-intro > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.1rem; }

.limited {
  margin-top: 2.2rem;
  padding: 24px 26px;
  border-left: 2px solid var(--accent);
  background: var(--band);
}
.limited h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.limited p { color: var(--ink-2); }

@media (max-width: 960px) {
  .inquire-grid { grid-template-columns: minmax(0, 1fr); }
}

.inquiry-form {
  background: var(--field);
  border: 1px solid var(--rule);
  padding: clamp(22px, 4vw, 44px);
  min-width: 0;
}

.form-note { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.6rem; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
@media (max-width: 620px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

.field { margin: 0 0 22px; min-width: 0; }

.field label,
.field legend {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
  padding: 0;
}

.req { font-weight: 400; color: var(--muted); font-size: 0.92rem; }

.hint { font-size: 0.92rem; color: var(--muted); margin: -2px 0 8px; line-height: 1.45; }

input[type="text"],
input[type="email"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  box-shadow: inset 0 1px 1px rgba(29, 27, 23, 0.04);
}
textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--accent);
  border-width: 2px;
  padding: 10px 13px;
}

.field-error {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 8px;
  line-height: 1.45;
}

fieldset.checks { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
fieldset.checks legend { margin-bottom: 10px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}
@media (max-width: 460px) {
  .check-grid { grid-template-columns: minmax(0, 1fr); }
}

.field .check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  color: var(--ink);
}
.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--ink);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}
.privacy { margin: 0; font-size: 0.92rem; color: var(--muted); }

.notice,
.error-summary {
  border: 2px solid var(--accent);
  background: #fbf1ec;
  padding: 18px 20px;
  margin-bottom: 26px;
}
.notice:focus,
.error-summary:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.notice p { margin: 0; font-weight: 600; color: var(--ink); }
.error-summary h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.error-summary ul { margin: 0 0 0.6rem; padding-left: 1.2em; }
.error-summary li { margin: 4px 0; }
.error-summary a { color: var(--accent); font-weight: 600; }
.error-summary p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* Simple pages ---------------------------------------------------------- */

.note-page { min-height: 56vh; }
.note-page h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); margin-bottom: 1.4rem; }
.note-page .lede { margin-bottom: 1.2rem; }
.note-page .btn { margin-top: 1rem; }

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

.site-footer {
  background: var(--ink);
  color: var(--footer-text);
  padding: clamp(48px, 6vw, 72px) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
}

.footer-wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 4px;
  color: var(--footer-text);
}
.footer-brand p:not(.footer-wordmark) { color: var(--footer-soft); margin: 0; }

.footer-links p { margin: 0 0 8px; color: var(--footer-soft); }
.footer-links a { color: var(--footer-text); }
.footer-links a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--footer-text); }
.footer-copy { font-size: 0.9rem; }

/* The no-AI promise: the case, set as a reading column under the pillars. */
.case {
  max-width: 44rem;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--rule);
}
.case h3 { margin-bottom: 0.8rem; }
.case p { color: var(--ink-2); font-size: 1.1rem; }

.file-input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--rule-strong);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
.file-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
