/* Home page — editorial layout. Everything is readable without JavaScript; home.js only adds gentle motion. */

.home .page-top { height: var(--header-h); }

/* Captions, kickers, page numbers: the small print that makes it feel like a printed magazine */
.kicker { display: block; font: 400 12px/1.3 var(--mono); color: var(--clay); margin-bottom: 14px; }
.pageno { font: 400 11px/1 var(--mono); color: var(--muted); }
figcaption { font: 400 12px/1.4 var(--mono); color: var(--ink-2); padding-top: 10px; }
figcaption span { color: var(--clay); margin-right: 8px; }

/* Photo frames. If the photo file is missing, the frame stays as a labelled empty slot. */
.home figure { margin: 0; }
.home figure img { width: 100%; height: 100%; object-fit: cover; background: var(--sand); }
.frame-empty {
  display: grid; place-items: center; width: 100%; height: 100%; background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(28,25,22,.04) 14px 15px), var(--sand);
  border: 1px dashed #c4b8a4; color: var(--muted); font: 400 12px/1.5 var(--mono); text-align: center; padding: 16px;
}
.frame-empty b { display: block; color: var(--ink-2); font-weight: 500; }

/* ===== Masthead ===== */
.masthead {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 14px; padding-bottom: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font: 400 12px/1 var(--mono); color: var(--ink-2);
}
@media (max-width: 560px) { .masthead span:nth-child(2) { display: none; } }

/* ===== Opening spread ===== */
.opening { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); padding-top: 36px; padding-bottom: clamp(64px, 9vw, 120px); align-items: end; }
.opening-photo { margin-left: calc(var(--gutter) * -1); }
.opening-photo > img, .opening-photo > .frame-empty { aspect-ratio: 4 / 5; }
.opening-photo figcaption { padding-left: var(--gutter); }
.opening-copy { padding-bottom: 40px; }
.opening h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1; font-weight: 400; letter-spacing: -.025em; font-variation-settings: 'opsz' 144; }
.opening h1 em { display: block; color: var(--clay); font-weight: 300; margin-top: .12em; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 30em; margin: 28px 0 32px; }
.opening-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .opening { grid-template-columns: 1fr; align-items: start; }
  .opening-photo { margin-right: calc(var(--gutter) * -1); }
  .opening-photo > img, .opening-photo > .frame-empty { aspect-ratio: 4 / 3; }
  .opening-copy { padding-bottom: 0; }
}

/* ===== Letter ===== */
.letter { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) 0; }
.letter-grid { display: grid; grid-template-columns: 1fr 4fr; gap: clamp(24px, 4vw, 64px); }
.letter-side { display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 14px; }
.letter-body h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 400; margin-bottom: 32px; border-top: 1px solid var(--ink); padding-top: 14px; }
.columns { columns: 2 300px; column-gap: 48px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.columns p { break-inside: avoid-column; }
.dropcap::first-letter { float: left; font: 400 5.2em/.8 var(--serif); color: var(--clay); margin: .06em .1em 0 0; }
.signoff { font: italic 400 20px/1.4 var(--serif); margin-top: 16px; }
@media (max-width: 760px) { .letter-grid { grid-template-columns: 1fr; } .letter-side { flex-direction: row; } }

/* ===== Two towns ===== */
.towns { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 24px; align-items: center; padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.town h3 { font-size: clamp(40px, 5vw, 72px); font-weight: 400; font-style: italic; margin-bottom: 12px; }
.town p { color: var(--ink-2); max-width: 22em; margin: 0; }
.town:last-child { text-align: right; justify-self: end; }
.town:last-child p { margin-left: auto; }
.route { width: 100%; height: auto; overflow: visible; }
.route path { fill: none; stroke: var(--clay); stroke-width: 1.5; stroke-dasharray: 3 6; }
.route circle { fill: var(--ink); }
.route text { font: 400 11px var(--mono); fill: var(--muted); }
@media (max-width: 760px) { .towns { grid-template-columns: 1fr; } .town:last-child { text-align: left; justify-self: start; } .town:last-child p { margin-left: 0; } .route { max-width: 320px; } }

/* ===== Making ===== */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 400; }
.making { padding-bottom: clamp(64px, 9vw, 120px); }
.making-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 24px; align-items: start; }
.m-photo > img, .m-photo > .frame-empty { aspect-ratio: 4 / 5; }
.m-photo.a { grid-column: 1 / 6; grid-row: 1 / 3; }
.m-step.s1 { grid-column: 7 / 11; grid-row: 1; padding-top: 24px; }
.m-photo.b { grid-column: 8 / 13; grid-row: 2 / 4; margin-top: 40px; }
.m-photo.b > img, .m-photo.b > .frame-empty { aspect-ratio: 1 / 1; }
.m-step.s2 { grid-column: 2 / 6; grid-row: 3; padding-top: 32px; }
.m-step.s3 { grid-column: 1 / 5; grid-row: 4; padding-top: 48px; }
.m-photo.c { grid-column: 6 / 10; grid-row: 4 / 6; margin-top: 64px; }
.m-photo.c > img, .m-photo.c > .frame-empty { aspect-ratio: 3 / 4; }
.m-step.s4 { grid-column: 10 / 13; grid-row: 5; padding-top: 20px; }
.m-step b { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; font: 400 13px/1 var(--mono); margin-bottom: 18px; }
.m-step h3 { font-size: 26px; font-weight: 400; margin-bottom: 10px; }
.m-step p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .making-grid { grid-template-columns: 1fr 1fr; }
  .making-grid > * { grid-column: auto !important; grid-row: auto !important; margin-top: 0 !important; padding-top: 0 !important; }
  .m-photo.a { grid-column: 1 / -1 !important; }
}
@media (max-width: 560px) { .making-grid { grid-template-columns: 1fr; } }

/* ===== Pull quote ===== */
.pull { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-bottom: clamp(72px, 10vw, 140px); }
.pull blockquote { margin: 0; font: italic 300 clamp(32px, 4.4vw, 64px)/1.1 var(--serif); letter-spacing: -.02em; text-indent: -.4em; }
.pull-photo > img, .pull-photo > .frame-empty { aspect-ratio: 1 / 1; }
@media (max-width: 760px) { .pull { grid-template-columns: 1fr; } }

/* ===== Collection spread ===== */
.spread { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 110px) 0; }
.spread-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; }
.sp { display: block; }
.sp .media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand); }
.sp img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sp:hover img { transform: scale(1.03); }
.sp .cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
.sp .no { font: 400 12px/1.4 var(--mono); color: var(--clay); display: block; margin-bottom: 2px; }
.sp .nm { font: 400 21px/1.2 var(--serif); }
.sp .pr { font-size: 15px; white-space: nowrap; }
.sp:nth-child(1) { grid-column: 1 / 7; grid-row: span 2; }
.sp:nth-child(1) .media { aspect-ratio: 4 / 5; }
.sp:nth-child(2) { grid-column: 8 / 11; }
.sp:nth-child(3) { grid-column: 8 / 13; }
.sp:nth-child(3) .media { aspect-ratio: 5 / 4; }
.sp:nth-child(4) { grid-column: 2 / 5; margin-top: 24px; }
.sp:nth-child(5) { grid-column: 6 / 9; margin-top: 88px; }
.sp:nth-child(6) { grid-column: 10 / 13; }
@media (max-width: 900px) {
  .spread-grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .sp { grid-column: auto !important; grid-row: auto !important; margin-top: 0 !important; }
  .sp:nth-child(1) { grid-column: 1 / -1 !important; }
  .sp .media { aspect-ratio: 3 / 4 !important; }
}

/* ===== People ===== */
.people { display: grid; grid-template-columns: 5fr 4fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: clamp(72px, 9vw, 130px); padding-bottom: clamp(72px, 9vw, 130px); }
.people-photo { margin-left: calc(var(--gutter) * -1); }
.people-photo figcaption { padding-left: var(--gutter); }
.people-photo > img, .people-photo > .frame-empty { aspect-ratio: 3 / 2; }
.people h2 { font-size: clamp(32px, 3.8vw, 54px); font-weight: 400; margin-bottom: 20px; }
.people p { color: var(--ink-2); font-size: 17px; max-width: 26em; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } .people-photo { margin-right: calc(var(--gutter) * -1); } }

/* ===== Visit ===== */
.visit { background: var(--night); color: #e9e2d6; padding: clamp(64px, 8vw, 110px) 0; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.visit-photo > img, .visit-photo > .frame-empty { aspect-ratio: 4 / 3; }
.visit-photo figcaption { color: #b9b0a2; }
.visit .frame-empty { background: #24201a; border-color: #4a443b; color: #9c9284; }
.visit .frame-empty b { color: #d8cfc1; }
.visit h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 400; color: var(--paper); margin-bottom: 18px; }
.visit .addr { font-size: 17px; white-space: pre-line; }
.visit .hours { color: #b9b0a2; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid #3a342c; }
.facts li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #3a342c; font-size: 15px; }
.facts b { font: 400 12px/1.7 var(--mono); color: #b9b0a2; font-weight: 400; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* Caption note shown while a drawing stands in for a photo */
figcaption .ill { font-style: normal; color: var(--muted); margin-left: 6px; }
figcaption .ill::before { content: '· '; }

/* The story page keeps its magazine type while the rest of the store uses Inter */
.home { background: #f4efe6; --sand: #e6dccb; --line: #d9cfbf; --paper: #fbf8f2; }
.home main h1, .home main h2, .home main h3, .home .quote, .home blockquote { font-family: var(--serif); font-weight: 400; }
.home main .btn { text-transform: none; letter-spacing: 0; }
