/* Plain Sight — magazine style */
:root {
  --paper: #F3F2EE;
  --ink: #121212;
  --ink-2: #3A3A3A;
  --muted: #5C5C5C;
  --rule-soft: #C9C7C0;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-2); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
figure { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap-text { max-width: 720px; margin: 0 auto; padding-inline: var(--gutter); }

.ph { display: block; width: 100%; aspect-ratio: 3 / 2; background: #D9D6CE; }

/* type helpers */
.kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.dek { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--ink-2); }
.muted { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.cap { margin: 0; padding-top: 10px; font-size: 13px; color: var(--muted); }
.cap-serif { padding-top: 10px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
.section-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 40px); line-height: 1.1; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--ink); }
.nav-caps { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-caps a { display: inline-flex; align-items: center; min-height: 44px; }
.rule-bottom { border-bottom: 1px solid var(--ink); }

/* home: masthead */
.dateline { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 14px 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.masthead { text-align: center; padding: clamp(24px, 4vw, 40px) 0 12px; border-bottom: 3px double var(--ink); }
.masthead h1 { margin: 0; font-weight: 400; }
.masthead-title { display: block; font-family: var(--serif); font-size: clamp(64px, 11vw, 148px); line-height: 0.9; letter-spacing: -0.02em; }
.masthead-byline { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); }
.masthead-nav { justify-content: center; margin-top: 10px; }

/* other pages: top bar */
.topbar { border-bottom: 1px solid var(--ink); }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding-block: 12px; }
.brand { font-family: var(--serif); font-size: 30px; line-height: 1; }

/* home: featured */
.feature { display: flex; flex-wrap: wrap; gap: 40px; padding: 48px 0; }
.feature-media { flex: 999 1 600px; min-width: 0; }
.feature-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; }
.feature-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5vw, 68px); line-height: 1; }

/* home: contents */
.contents { display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 48px 0; scroll-margin-top: 16px; }
.contents-intro { flex: 1 1 280px; }
.contents-intro .section-title { margin-bottom: 8px; }
.contents-list { flex: 999 1 600px; min-width: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.contents-list li { border-bottom: 1px solid var(--rule-soft); }
.contents-list a { display: flex; gap: 20px; align-items: center; min-height: 96px; padding: 14px 0; }
.contents-list a:hover .contents-title { color: var(--accent); }
.num { flex: 0 0 40px; font-family: var(--serif); font-size: 28px; color: var(--accent); }
.contents-name { flex: 1; min-width: 0; }
.contents-title { display: block; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; transition: color .15s; }
.contents-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.thumb { flex: 0 0 auto; width: 112px; height: 72px; overflow: hidden; }
.thumb img, .thumb .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }

/* home: archive teaser */
.archive-teaser { padding: 48px 0 72px; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.spread { columns: 300px; column-gap: 24px; }
.spread figure { break-inside: avoid; margin-bottom: 24px; }

/* collection page */
.collection-head { text-align: center; padding-top: clamp(48px, 7vw, 80px); padding-bottom: 48px; }
.collection-title { margin: 16px 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 9vw, 112px); line-height: 0.95; letter-spacing: -0.01em; }
.collection-head .dek { max-width: 640px; margin: 0 auto; }
.byline { margin: 24px 0 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.empty { text-align: center; padding-bottom: 80px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--muted); }

.block { margin-bottom: clamp(40px, 6vw, 72px); }
.opening img, .full img { width: 100%; max-height: 92vh; object-fit: cover; }
.intro p { margin: 0 0 1.1em; font-size: 19px; line-height: 1.7; color: #262626; }
.intro p:last-child { margin-bottom: 0; }
.intro a { border-bottom: 1px solid var(--ink); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.feature-photo { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; }
.feature-photo-media { flex: 999 1 600px; min-width: 0; }
.feature-photo-media img { max-height: 90vh; width: auto; margin-inline: auto; }
.feature-photo-text { flex: 1 1 240px; min-width: 0; }
.feature-caption { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.pull-quote { max-width: 1100px; text-align: center; }
.pull-quote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }

.next-collection { border-top: 3px double var(--ink); }
.next-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-block: 48px; }
.next-title { display: block; margin-top: 8px; font-family: var(--serif); font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.next-thumb { width: 240px; height: 160px; overflow: hidden; }
.next-thumb img, .next-thumb .ph { width: 100%; height: 100%; object-fit: cover; }

/* single photo */
.photo-stage { background: #E7E5DF; padding: clamp(12px, 3vw, 40px); display: flex; justify-content: center; }
.photo-stage img { max-height: calc(100vh - 140px); width: auto; object-fit: contain; }
.photo-info { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; padding-block: 32px 64px; }
.photo-meta { flex: 1 1 420px; min-width: 0; }
.photo-title { margin: 10px 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 48px); line-height: 1.05; }
.photo-caption { margin: 8px 0 0; max-width: 640px; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink-2); }
.photo-nav { display: flex; gap: 8px 28px; font-size: 14px; font-weight: 500; }
.photo-nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--ink); }

/* archive & simple pages */
.page-head { padding-top: 56px; padding-bottom: 32px; }
.page-head.center { text-align: center; }
.page-title { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7vw, 88px); line-height: 1; }
.masonry { columns: 320px; column-gap: 20px; padding-bottom: 72px; }
.masonry figure { break-inside: avoid; margin-bottom: 24px; }

/* footer */
.site-footer { border-top: 3px double var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; align-items: center; padding-block: 24px; font-size: 14px; color: #4A4A4A; }
.footer-brand { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
