:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #526176;
  --line: #d8e0e7;
  --paper: #f7f6f1;
  --white: #fff;
  --navy: #172033;
  --blue: #174d70;
  --focus: #ff7a36;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-wrap: break-word;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, #fff0d5 0, transparent 26rem),
    radial-gradient(circle at 94% 8%, #dff3fb 0, transparent 28rem),
    var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: .2rem; }
button, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }
.shell { width: min(calc(100% - 2rem), 72rem); margin-inline: auto; }

.site-header {
  border-bottom: 1px solid rgba(23, 32, 51, .1);
  background: rgba(247, 246, 241, .82);
  backdrop-filter: blur(12px);
}

.topbar { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 900; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: #e76f36; }
.topnav { display: flex; align-items: center; gap: clamp(.7rem, 3vw, 1.5rem); }
.topnav > a:not(.button) { color: var(--ink); font-weight: 700; text-decoration: none; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.15rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover { transform: translateY(-1px); }
.button-small { min-height: 2.6rem; padding: .55rem .9rem; font-size: .9rem; }
.button-secondary { color: var(--navy); background: transparent; }
.button-light { border-color: var(--white); color: var(--navy); background: var(--white); }

.eyebrow { margin: 0 0 .55rem; color: #526176; font-size: .75rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.05; letter-spacing: -.04em; }
h1 { font-size: clamp(2.75rem, 8vw, 5.8rem); }
h2 { font-size: clamp(2rem, 5vw, 3.35rem); }
h3 { font-size: 1.35rem; }

.hub-hero { padding-block: clamp(4rem, 9vw, 8rem); }
.hub-hero h1 { max-width: 12ch; margin-bottom: 1.2rem; }
.hub-hero > p:not(.eyebrow) { max-width: 48rem; margin: 0 0 1.7rem; color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.28rem); }
.collection-section,
.quotes-section,
.related-section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section-heading { max-width: 47rem; margin-bottom: 1.8rem; }
.section-heading h2 { margin-bottom: 0; }

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.collection-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.4rem; background: rgba(255, 255, 255, .9); box-shadow: 0 16px 45px rgba(23, 32, 51, .07); }
.collection-card-image { display: block; overflow: hidden; background: #d9e1df; }
.collection-card-image img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .25s ease; }
.collection-card:hover img { transform: scale(1.015); }
.collection-card-copy { padding: 1.35rem; }
.collection-card h2 { margin-bottom: .75rem; font-size: clamp(1.55rem, 3.5vw, 2.25rem); }
.collection-card h2 a,
.text-link { color: var(--ink); }
.collection-card h2 a,
.related-card h3 a,
.text-link,
.quote-action,
.back-link,
.footer-row a { text-decoration: none; }
.text-link:hover,
.quote-action:hover,
.back-link:hover,
.footer-row a:hover { text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .24em; }
.collection-card p:not(.eyebrow) { color: var(--muted); }
.text-link { font-weight: 850; }

.breadcrumbs { padding-block: 1.25rem; font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; color: var(--muted); list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: #8c99a8; }
.collection-hero { overflow: hidden; border: 1px solid var(--line); border-radius: clamp(1.2rem, 3vw, 2rem); background: rgba(255, 255, 255, .92); box-shadow: 0 24px 70px rgba(23, 32, 51, .1); }
.hero-image-wrap { overflow: hidden; background: #d9e1df; }
.hero-image-wrap img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.hero-copy { padding: clamp(1.4rem, 5vw, 3.6rem); }
.hero-copy h1 { max-width: 12ch; margin-bottom: 1.2rem; }
.intro { max-width: 55rem; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.14rem); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.supporting-copy { padding-block: clamp(3.5rem, 9vw, 7rem); }
.prose { max-width: 52rem; }
.prose h2 { max-width: 16ch; }
.prose > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; line-height: 1.8; }
.quotes-section { border-top: 1px solid var(--line); }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.quote-card { display: flex; min-width: 0; min-height: 13rem; flex-direction: column; justify-content: space-between; padding: clamp(1.2rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px rgba(23, 32, 51, .055); }
.quote-card blockquote { margin: 0 0 1.2rem; }
.quote-card blockquote p { margin: 0; color: var(--ink); font-size: clamp(1.08rem, 2.4vw, 1.3rem); font-weight: 750; line-height: 1.5; }
.quote-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.quote-action { align-self: flex-start; margin: 0; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: .87rem; font-weight: 850; text-align: left; }

.studio-banner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-block: clamp(2.5rem, 7vw, 5.5rem); padding: clamp(1.6rem, 5vw, 3rem); border-radius: 1.5rem; color: var(--white); background: linear-gradient(135deg, #173a55, #235f78); box-shadow: 0 20px 55px rgba(23, 58, 85, .2); }
.studio-banner .eyebrow { color: #cbe6f0; }
.studio-banner h2 { max-width: 19ch; margin-bottom: .45rem; }
.studio-banner p:not(.eyebrow) { max-width: 42rem; margin: 0; color: #e5f1f5; }
.studio-banner .button { flex: 0 0 auto; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-card { min-width: 0; padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255, 255, 255, .78); }
.related-card h3 { margin-bottom: .65rem; }
.related-card h3 a { color: var(--ink); }
.related-card p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.back-link { display: inline-block; margin-top: 1.5rem; font-weight: 800; }

.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .45); }
.footer-row { display: flex; min-height: 6rem; align-items: center; justify-content: space-between; gap: 1.2rem; color: var(--muted); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-row a { color: var(--ink); }

.poster-dialog { width: min(94vw, 66rem); max-height: 94vh; padding: 0; border: 0; border-radius: 1.5rem; color: var(--ink); box-shadow: 0 40px 120px rgba(15, 23, 42, .4); }
.poster-dialog::backdrop { background: rgba(15, 23, 42, .62); backdrop-filter: blur(5px); }
.poster-dialog-shell { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; background: #f8fafc; }
.poster-preview-wrap { display: grid; min-height: 34rem; place-items: center; padding: 1rem; background: #e7edf3; }
#collection-poster-canvas { max-width: 100%; max-height: min(76vh, 54rem); background: var(--white); box-shadow: 0 18px 50px rgba(15, 23, 42, .22); }
.poster-controls { display: flex; flex-direction: column; gap: .9rem; padding: 1.2rem; overflow-y: auto; }
.poster-controls label { display: grid; gap: .35rem; font-weight: 800; }
.poster-controls select { min-width: 0; min-height: 2.8rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: var(--white); }
.poster-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.poster-dialog-head h2 { margin: 0; font-size: 1.8rem; }
.poster-close { width: 2.6rem; height: 2.6rem; padding: 0; border: 0; border-radius: 999px; color: var(--ink); background: transparent; font-size: 1.2rem; }

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 1.25rem), 72rem); }
  .topbar { min-height: 4rem; }
  .topnav > a:not(.button) { display: none; }
  .collection-grid,
  .quote-grid,
  .related-grid { grid-template-columns: 1fr; }
  .studio-banner { align-items: stretch; flex-direction: column; }
  .studio-banner .button { align-self: flex-start; }
  .footer-row { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1.5rem; }
  .footer-row p { margin: 0; }
  .poster-dialog-shell { grid-template-columns: 1fr; }
  .poster-preview-wrap { min-height: 19rem; }
  #collection-poster-canvas { max-height: 42vh; }
}

@media (max-width: 390px) {
  .brand { font-size: .92rem; }
  .button-small { padding-inline: .7rem; font-size: .82rem; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
