* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bebbil-ivory); color: var(--bebbil-ink); font-family: var(--bebbil-font-sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .75rem 1rem; background: var(--bebbil-paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--bebbil-focus); }
.masthead { min-height: 7rem; padding: 1.5rem clamp(1rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; background: var(--bebbil-ink); color: var(--bebbil-ivory); }
.brand { width: clamp(10rem, 16vw, 14rem); }
.edition, .eyebrow, .section-no { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
main { overflow: hidden; }
.hero { min-height: calc(100vh - 7rem); display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.hero-copy { padding: clamp(4rem, 9vw, 10rem) clamp(1.5rem, 7vw, 8rem); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { max-width: 9ch; margin: 1.5rem 0; font-family: var(--bebbil-font-display); font-size: clamp(4rem, 9vw, 9rem); line-height: .79; font-weight: 500; letter-spacing: -.05em; }
.hero h1 em { color: var(--bebbil-oxblood); font-weight: 400; }
.lede { max-width: 34rem; margin: 0; color: var(--bebbil-mineral); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.7; }
.hero-art { margin: 0; min-height: 40rem; position: relative; background: var(--bebbil-ink); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); }
.hero-art figcaption { position: absolute; right: 1rem; bottom: 1rem; padding: .55rem .8rem; background: rgb(23 21 19 / .8); color: var(--bebbil-ivory); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.section-grid { padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 7vw, 8rem); display: grid; grid-template-columns: minmax(12rem, .5fr) minmax(0, 1.5fr); gap: clamp(2rem, 7vw, 8rem); border-top: 1px solid var(--bebbil-line); }
.section-grid h2, .rights h2 { margin: .7rem 0 0; font-family: var(--bebbil-font-display); font-size: clamp(2.8rem, 5vw, 5.5rem); font-weight: 500; line-height: .92; letter-spacing: -.035em; }
.section-no { color: var(--bebbil-oxblood); }
.prose { max-width: 55rem; font-family: var(--bebbil-font-display); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.18; }
.prose p { margin-top: 0; }
blockquote { margin: 3rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--bebbil-ink); color: var(--bebbil-oxblood); font-style: italic; }
.logo-stage { min-height: 19rem; padding: clamp(2rem, 5vw, 6rem); display: grid; place-items: center; }
.logo-stage.light { background: var(--bebbil-paper); }
.logo-stage.dark { background: var(--bebbil-ink); }
.rule { max-width: 48rem; margin: 2rem 0 0; color: var(--bebbil-mineral); line-height: 1.7; }
.swatches { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(7rem, 1fr)); }
.swatch { aspect-ratio: .72; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgb(23 21 19 / .1); }
.swatch span { font-family: var(--bebbil-font-display); font-size: 1.7rem; }
.swatch code { margin-top: .3rem; font-size: .72rem; }
.swatch.ink { color: var(--bebbil-ivory); background: var(--bebbil-ink); }
.swatch.ivory { background: var(--bebbil-ivory); }
.swatch.oxblood { color: var(--bebbil-ivory); background: var(--bebbil-oxblood); }
.swatch.mineral { color: white; background: var(--bebbil-mineral); }
.swatch.brass { color: white; background: var(--bebbil-brass); }
.type { background: var(--bebbil-paper); }
.type-specimens { display: grid; gap: 4rem; }
.display-sample { margin: 0; font-family: var(--bebbil-font-display); font-size: clamp(4rem, 8vw, 8rem); line-height: .75; letter-spacing: -.04em; }
.sans-sample { margin: 0; font-size: clamp(1.6rem, 3vw, 3rem); line-height: 1.25; font-weight: 700; letter-spacing: .04em; }
.type-specimens small { display: block; margin-top: 1.4rem; color: var(--bebbil-mineral); }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--bebbil-line); }
.principles article { padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--bebbil-ivory); }
.principles span { color: var(--bebbil-oxblood); font-weight: 700; }
.principles h3 { margin: 3rem 0 .7rem; font-family: var(--bebbil-font-display); font-size: 2rem; font-weight: 500; }
.principles p { color: var(--bebbil-mineral); line-height: 1.6; }
.rights { padding: clamp(6rem, 13vw, 13rem) clamp(1.5rem, 12vw, 14rem); background: var(--bebbil-oxblood); color: var(--bebbil-ivory); }
.rights h2 { max-width: 15ch; font-size: clamp(3.5rem, 7vw, 7.5rem); }
.rights > p:not(.eyebrow) { max-width: 55rem; margin: 3rem 0; font-size: 1.05rem; line-height: 1.8; }
.rights a { display: inline-block; padding-bottom: .4rem; border-bottom: 1px solid; text-decoration: none; }
footer { padding: 3rem clamp(1.5rem, 7vw, 8rem); display: flex; align-items: end; justify-content: space-between; gap: 2rem; background: var(--bebbil-paper); }
footer img { width: 12rem; }
footer p { margin: 0; color: var(--bebbil-mineral); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 850px) {
  .edition { display: none; }
  .hero, .section-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-art { min-height: 60vh; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .swatch:last-child { grid-column: span 2; aspect-ratio: 2.2; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .masthead { min-height: 5.5rem; }
  .hero h1 { font-size: 4rem; }
  .hero-art { min-height: 29rem; }
  .principles { grid-template-columns: 1fr; }
  .logo-stage { min-height: 12rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
