* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --white: #fff;
  --ink: #192027;
  --muted: #545b63;
  --line: #d9d9ce;
  --blue: #2444ce;
  --deep-blue: #182e9d;
  --pale-blue: #eff2ff;
  --yellow: #f7eed0;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font: 100%/1.55 var(--sans);
}

body { margin: 0; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
a { color: var(--deep-blue); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { color: var(--white); background: var(--deep-blue); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.025; letter-spacing: -.055em; }
h1 { font-size: clamp(3.3rem, 6.2vw, 7.25rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.9rem); }
h3 { font-size: 1.15rem; line-height: 1.28; font-weight: 650; }
.frame { width: min(100% - clamp(2rem, 9vw, 9rem), 78rem); margin-inline: auto; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip:focus { position: absolute; z-index: 5; padding: .75rem; top: .5rem; left: .5rem; background: var(--white); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2.25rem; }
.header-inner { min-height: 4.5rem; padding-block: .6rem; }
.wordmark { color: var(--ink); text-decoration: none; font-size: clamp(1.4rem, 3vw, 1.73rem); font-weight: 760; letter-spacing: -.075em; white-space: nowrap; }
.wordmark span { color: var(--blue); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .6rem clamp(1rem, 3vw, 2rem); }
.site-header nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 570; }
.site-header nav a:hover, .site-header nav a[aria-current="page"], .site-footer nav a:hover { color: var(--deep-blue); text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.site-footer p { font-size: .95rem; color: var(--muted); margin-top: .25rem; }

.hero { display: grid; grid-template-columns: 1.04fr 1fr; min-height: min(34rem, 55vw); margin-block: 2rem 0; }
.hero-copy { background: var(--pale-blue); padding: clamp(1.8rem, 4.4vw, 4.6rem); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { color: var(--deep-blue); font: 650 .875rem/1.5 var(--sans); letter-spacing: .11em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero h1 { color: var(--deep-blue); font-size: clamp(2.9rem, 6vw, 6.4rem); text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.26rem); line-height: 1.52; max-width: 38rem; color: #374159; }
.hero .lede { margin-top: 1.25rem; max-width: 27rem; }
.hero-actions, .reading-actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 1.9rem; gap: .9rem 1.3rem; }
.hero-image { position: relative; min-height: 19rem; background: var(--yellow); overflow: hidden; }
.hero-image img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 54% center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem; padding: .59rem 1rem; border: 1px solid transparent; border-radius: .28rem; font-size: .9rem; font-weight: 650; text-decoration: none; text-align: center; }
.primary { background: var(--blue); color: var(--white); }
.primary:hover:not(:disabled) { background: var(--deep-blue); }
.outline { color: var(--deep-blue); background: transparent; border-color: #aeb9e5; }
.outline:hover { background: var(--pale-blue); }
.text-link { font-size: .94rem; font-weight: 620; }

.catalogue { padding-block: clamp(2.8rem, 6vw, 5.25rem) 3.5rem; scroll-margin-top: 1rem; }
.catalogue-intro { display: flex; justify-content: space-between; gap: .7rem 1rem; align-items: end; margin-bottom: 1.65rem; }
.catalogue-intro h2 { margin-bottom: .65rem; }
.catalogue-intro p, .result-count { color: var(--muted); }
.edition-count { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.catalogue-controls { display: flex; flex-wrap: wrap; gap: .85rem 1.1rem; align-items: center; border-block: 1px solid var(--line); padding-block: .85rem; }
.field { position: relative; flex: 1 1 18rem; }
.field::before, .field::after { content: ""; position: absolute; pointer-events: none; }
.field::before { left: .95rem; top: calc(50% - .44rem); width: .58rem; height: .58rem; border: 2px solid #526082; border-radius: 50%; }
.field::after { left: 1.56rem; top: calc(50% + .22rem); width: .38rem; height: 2px; background: #526082; transform: rotate(45deg); }
.field input { width: 100%; min-height: 2.85rem; padding: .45rem .85rem .45rem 2.3rem; border: 1px solid #b9bdc5; border-radius: .28rem; background: var(--white); color: var(--ink); }
.field input::placeholder { color: var(--muted); }
.filters { display: flex; gap: .45rem; flex-wrap: wrap; }
.filter { min-height: 2.55rem; border-radius: 2rem; padding: .38rem .8rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: .875rem; white-space: nowrap; }
.filter span { margin-left: .25rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--pale-blue); color: var(--deep-blue); border-color: #aeb9e5; font-weight: 650; }
.result-count { font-size: .91rem; margin-block: .95rem .8rem; min-height: 1.4rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; align-items: stretch; list-style: none; padding: 0; margin: 0; }
.product-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.05rem; min-height: 11.5rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--white); }
.product-card:has([aria-pressed="true"]) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.card-label, .card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .75rem; }
.card-label { color: var(--muted); font-size: .82rem; font-weight: 550; }
.status { display: inline-block; color: #554319; background: var(--yellow); border-radius: 2rem; padding: .12rem .52rem; font-size: .82rem; line-height: 1.45; font-weight: 600; white-space: nowrap; }
.brand { margin-bottom: .22rem; color: var(--muted); font-size: .85rem; }
.card-title { overflow-wrap: anywhere; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--deep-blue); text-decoration: underline; }
.card-actions { border-top: 1px solid #eeeee8; padding-top: .52rem; }
.source-link { font-weight: 620; }
.card-actions > a, .card-actions .muted { font-size: .875rem; }
.muted { color: var(--muted); }
.compare-toggle { min-height: 2.35rem; color: var(--deep-blue); background: transparent; border: 0; border-radius: .2rem; padding: .1rem .25rem; font-size: .875rem; font-weight: 650; }
.compare-toggle:hover, .compare-toggle[aria-pressed="true"] { background: var(--pale-blue); }
.compare-toggle[aria-disabled="true"] { color: var(--muted); }
.compare-symbol { display: inline-block; min-width: .8rem; font-size: 1.05rem; }
.pagination { text-align: center; }
.pagination:has(button:not([hidden])) { margin-top: 1.5rem; }
.empty { padding: 2.2rem 1.3rem; border: 1px dashed #aeb9e5; border-radius: .35rem; text-align: center; }
.empty p { margin-block: .5rem 1rem; color: var(--muted); }

.publisher-strip { color: var(--white); background: var(--deep-blue); }
.strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.35rem 4rem; padding-block: clamp(2rem, 4.5vw, 4rem); }
.strip-inner h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
.strip-inner p { margin-top: .7rem; max-width: 39rem; color: #edf0ff; }
.on-dark { background: var(--white); color: var(--deep-blue); flex: 0 0 auto; }
.on-dark:hover { background: var(--pale-blue); }
.publisher-strip :focus-visible { outline-color: var(--white); }

.reading { max-width: 50rem; margin: 0 auto; padding-block: clamp(2.6rem, 7vw, 6rem); }
.reading h1 { color: var(--deep-blue); font-size: clamp(3rem, 7vw, 6.7rem); overflow-wrap: anywhere; }
.reading .lede { margin-top: 1.3rem; }
.reading section { margin-top: 2.5rem; padding-top: 1.55rem; border-top: 1px solid var(--line); }
.reading section h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); margin-bottom: .7rem; }
.reading section p, .product-note { color: var(--muted); max-width: 40rem; }
.reading > .button { margin-top: 1.3rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2.3rem; font-size: .9rem; }
.product-reading h1 { max-width: 18ch; font-size: clamp(2.6rem, 5.9vw, 5.45rem); }
.record-status { margin-top: 1.1rem; color: var(--muted); }
.record-status .status { margin-right: .4rem; }
.field-list { margin-block: 1.4rem; border-top: 1px solid var(--line); }
.field-list > div { display: grid; grid-template-columns: minmax(8rem, 1fr) 2.1fr; gap: .6rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.field-list dt { font-weight: 650; }
.field-list dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

body.has-selection { padding-bottom: 5.5rem; }
.compare-tray { position: fixed; z-index: 3; inset: auto 0 0; background: var(--white); border-top: 1px solid #aeb9e5; box-shadow: 0 -.25rem 1.5rem #182e9d14; }
.tray-inner { min-height: 4.5rem; display: flex; gap: .45rem 1rem; align-items: center; justify-content: space-between; padding-block: .6rem; }
.tray-inner p { min-width: 0; }
.tray-inner strong { color: var(--deep-blue); }
#selection-names { display: block; max-width: 55ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: .85rem; }
.tray-inner > div { flex: none; display: flex; gap: .45rem; }
dialog { width: min(calc(100% - 2rem), 61rem); max-height: 85svh; overflow: auto; border: 1px solid #aeb9e5; border-radius: .45rem; color: var(--ink); background: var(--white); padding: clamp(1rem, 4vw, 2rem); }
dialog::backdrop { background: #17203ab8; }
.dialog-heading { display: flex; gap: .6rem; align-items: start; justify-content: space-between; margin-bottom: 1.15rem; }
.dialog-heading h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
.dialog-heading p { color: var(--muted); margin-top: .45rem; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.comparison-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparison-item { padding: .9rem; border: 1px solid var(--line); border-radius: .3rem; overflow-wrap: anywhere; }
.comparison-item .field-list { margin-bottom: .1rem; }
.comparison-item .field-list > div { display: block; }
.comparison-item dt { font-size: .85rem; }

@media (max-width: 64rem) {
  .wide-break { display: none; }
  .hero { min-height: min(29rem, 59vw); }
}
@media (max-width: 49rem) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero-copy { padding-block: 2.5rem; }
  .hero-image { min-height: 0; aspect-ratio: 1.65; }
  .strip-inner { flex-wrap: wrap; }
}
@media (max-width: 32rem) {
  .header-inner, .footer-inner { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .header-inner { padding-block: .55rem .8rem; }
  .site-footer nav { margin-top: .7rem; }
  .hero .lede { margin-top: .65rem; }
  .catalogue-intro { flex-direction: column; align-items: flex-start; }
  .product-grid, .comparison-grid, .comparison-grid[data-count="2"] { grid-template-columns: 1fr; }
  .product-card { min-height: 10.5rem; }
  .tray-inner { flex-wrap: wrap; }
  .tray-inner > div { margin-left: auto; }
  body.has-selection { padding-bottom: 7.5rem; }
  .field-list > div { grid-template-columns: 1fr; gap: .15rem; }
}
