:root {
  color-scheme: light;
  --paper: #faf9f6;
  --white: #fff;
  --ink: #211d32;
  --muted: #5e586c;
  --line: #e6e1eb;
  --purple: #5634b0;
  --purple-dark: #43238f;
  --lavender: #eee7ff;
  --amber: #ffd692;
  --night: #211a38;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { font-family: var(--sans); background: var(--paper); color: var(--ink); }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8754dd; outline-offset: 4px; }
.frame { width: min(100% - 3.5rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; transform: translateY(-160%); background: var(--white); padding: .7rem 1rem; }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.75rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; gap: .66rem; align-items: center; width: fit-content; text-decoration: none; }
.brand-name { font-size: 1.4rem; font-weight: 780; letter-spacing: -.065em; white-space: nowrap; }
.brand-mark { width: 2.45rem; aspect-ratio: 1; border-radius: .69rem; background: var(--purple); display: inline-grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark::before, .brand-mark::after { content: ""; display: block; position: absolute; background: #fff; border-radius: .14rem; transform: skew(-22deg); }
.brand-mark::before { width: .29rem; height: .86rem; left: .71rem; top: .91rem; }
.brand-mark::after { width: .3rem; height: 1.24rem; left: 1.19rem; top: .53rem; }
.brand-mark i { position: absolute; width: .31rem; aspect-ratio: 1; border-radius: 50%; background: var(--amber); left: 1.68rem; top: .59rem; }
.site-nav { display: flex; gap: clamp(.75rem, 2.1vw, 1.8rem); align-items: center; }
.site-nav a, .search-link { font-size: .93rem; text-decoration: none; font-weight: 650; white-space: nowrap; padding-block: .55rem; }
.site-nav a:hover, .site-nav [aria-current="page"], .search-link:hover, .search-link[aria-current="page"] { color: var(--purple-dark); text-decoration: underline; }
.search-link { display: inline-flex; justify-self: end; gap: .55rem; align-items: center; padding-inline: .5rem; }
.lens { width: .78rem; height: .78rem; margin-right: .12rem; border: .115rem solid; border-radius: 50%; position: relative; display: inline-block; }
.lens::after { content: ""; position: absolute; bottom: -.22rem; right: -.27rem; width: .35rem; height: .11rem; border-radius: 1rem; background: currentColor; transform: rotate(48deg); }

.hero { display: grid; grid-template-columns: .96fr 1.04fr; margin-top: 2rem; overflow: clip; color: var(--white); background: var(--night); border-radius: 1.45rem; min-height: 26rem; }
.hero-copy { padding: clamp(2rem, 4.1vw, 4.75rem); align-self: center; }
.eyebrow { display: block; color: var(--purple-dark); font-size: .82rem; letter-spacing: .115em; text-transform: uppercase; font-weight: 760; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { font: 400 clamp(3.1rem, 6.5vw, 6.45rem)/.99 var(--serif); letter-spacing: -.057em; margin-top: .85rem; }
.hero p { margin-top: 1.3rem; max-width: 32ch; color: #e5ddef; font-size: clamp(1rem, 1.55vw, 1.16rem); line-height: 1.59; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.2rem; margin-top: 1.7rem; }
.button, .hero-secondary { min-height: 2.85rem; display: inline-flex; align-items: center; justify-content: center; font: 680 .94rem var(--sans); }
.button { text-decoration: none; background: var(--purple); color: var(--white); border: 1px solid transparent; border-radius: .6rem; padding: .45rem .92rem; }
.button:hover { background: var(--purple-dark); }
.hero .button { background: var(--amber); color: var(--night); padding-inline: 1.12rem; }
.hero .button:hover { background: #ffe6bc; }
.hero-secondary { color: var(--white); }
.hero-secondary:hover { color: var(--amber); }
.hero-photo { margin: 0; background: #3c3153; display: grid; position: relative; min-height: 100%; }
.hero-photo img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 56% 47%; position: absolute; inset: 0; }
.hero-photo::after { content: ""; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33,26,56,.22), transparent 45%); }

.section { margin-block: 3.1rem 3.7rem; }
.section-top { display: flex; gap: .8rem 1.6rem; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 1.2rem; }
.section-top h2, .related h2 { font: 400 clamp(1.85rem, 3.6vw, 2.85rem)/1.12 var(--serif); letter-spacing: -.038em; }
.section-top > a { color: var(--purple-dark); font-size: .92rem; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.story-card { min-width: 0; color: var(--ink); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .95rem; background: var(--white); text-decoration: none; overflow: hidden; }
.story-card:hover { border-color: #a98bd9; box-shadow: 0 .4rem 1.1rem #28203c11; }
.card-body { padding: 1.19rem 1.25rem 1.18rem; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem .64rem; margin-bottom: .67rem; }
.card-tag { color: var(--purple-dark); font-size: .81rem; font-weight: 760; text-transform: uppercase; letter-spacing: .048em; }
.card-time { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.story-card h3, .story-card h2 { font: 400 clamp(1.25rem, 2vw, 1.56rem)/1.18 var(--serif); letter-spacing: -.023em; margin: 0; overflow-wrap: anywhere; }
.story-card:hover h3, .story-card:hover h2 { color: var(--purple-dark); }
.story-card p { margin-top: .72rem; color: var(--muted); font-size: .93rem; line-height: 1.54; }
.pick .story-card { border-top: 4px solid #7a59c4; }
.pick .story-card:nth-child(2) { border-top-color: #357e70; }
.pick .story-card:nth-child(3) { border-top-color: #bb7637; }
.home-more { background: #f1edf7; border-top: 1px solid var(--line); }
.home-more .section { margin-block: 0; padding-block: 3rem 3.7rem; }
.topic-breadcrumb { font-size: .86rem; display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: center; color: var(--muted); }
.topic-breadcrumb a:hover { color: var(--purple-dark); }
.topic-breadcrumb span[aria-hidden] { color: #827594; }
.page-head { padding-block: 2rem 2.7rem; margin-bottom: 1.65rem; border-bottom: 1px solid var(--line); background: #f3eff9; }
.page-head .eyebrow { margin-top: 1.5rem; }
.page-head h1, .simple h1, .article-title { font: 400 clamp(2.65rem, 7vw, 5.15rem)/1.035 var(--serif); letter-spacing: -.05em; max-width: 22ch; overflow-wrap: anywhere; }
.page-head h1 { margin-top: 1.05rem; }
.page-head p { color: var(--muted); max-width: 62ch; font-size: 1.06rem; line-height: 1.6; margin-top: .8rem; }
.browse-grid { margin-bottom: 3.5rem; }
.article-shell { width: min(100% - 3.5rem, 49rem); margin-inline: auto; }
.article-head { padding-top: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.85rem; }
.article-head .eyebrow { margin-top: 1.4rem; }
.article-title { font-size: clamp(2.45rem, 6vw, 4.55rem); max-width: 25ch; margin-top: .58rem; }
.standfirst { color: var(--muted); margin-top: 1rem; font-size: clamp(1.03rem, 2vw, 1.23rem); line-height: 1.58; max-width: 65ch; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .75rem; color: var(--muted); font-size: .88rem; margin-top: 1.14rem; }
.article-meta .dot { color: #988ab0; }
.prose { font-size: 1.075rem; line-height: 1.76; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.02em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.024em; line-height: 1.2; }
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.15rem); margin-top: 1.52em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.3em; }
.prose a { color: var(--purple-dark); font-weight: 580; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.55em; }
.prose li + li { margin-top: .38em; }
.prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; background: #f1edf7; border-inline-start: 4px solid #8564c4; border-radius: 0 .4rem .4rem 0; }
.prose blockquote p + p { margin-top: .7em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 1.8rem; }
.prose code { font-size: .9em; background: #f0ebf8; padding: .13em .33em; border-radius: .2em; }
.prose table { border-collapse: collapse; width: 100%; min-width: 26rem; background: var(--white); font-size: .93rem; line-height: 1.5; }
.prose th, .prose td { padding: .55rem .75rem; border: 1px solid #dfd8ea; }
.prose th { background: #eee8f8; text-align: left; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.article-end { margin-block: 1.9rem 2.6rem; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: .92rem; }
.article-end a { color: var(--purple-dark); font-weight: 650; }
.related { padding-bottom: 3.4rem; }
.related .card-grid { margin-top: .95rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.simple { padding-block: 2rem 4rem; }
.simple h1 { margin-top: 1.3rem; margin-bottom: 1.4rem; font-size: clamp(2.6rem, 6vw, 4.25rem); }
.simple .prose { max-width: 72ch; }

.search-form { margin-block: 1.1rem 1.5rem; }
.search-form label { display: block; font-weight: 740; margin-bottom: .45rem; }
.search-controls { display: flex; gap: .65rem; max-width: 40rem; align-items: stretch; }
.search-controls input { min-height: 3rem; min-width: 0; flex: 1; padding: .7rem .85rem; border: 1px solid #9f91b0; border-radius: .55rem; background: var(--white); color: var(--ink); font: inherit; }
.search-summary { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.empty { display: block; color: var(--muted); margin: 1rem 0 3.5rem; }

.site-footer { background: var(--night); color: var(--white); margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1.25rem 2rem; padding-block: 2.5rem 2.1rem; }
.footer-intro p { margin-top: .75rem; max-width: 33ch; font-size: .94rem; color: #ded6eb; line-height: 1.54; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: .68rem; }
.footer-col h2 { font: 730 .89rem var(--sans); color: #ffd99e; }
.footer-col a { font-size: .93rem; color: #f2ecfb; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #514664; color: #ded6eb; padding-block: .9rem 1rem; font-size: .83rem; }

@media (max-width: 60rem) {
  .frame { width: min(100% - 2.5rem, 76rem); }
  .header-inner { gap: .75rem; }
  .hero { min-height: 23rem; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pick { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 44rem) {
  .header-inner { grid-template-columns: 1fr 1fr; row-gap: 0; min-height: auto; }
  .header-inner .brand { min-height: 3.6rem; }
  .header-inner .brand-mark { width: 2.05rem; }
  .header-inner .brand-mark::before { left: .55rem; top: .73rem; }
  .header-inner .brand-mark::after { left: .96rem; top: .35rem; }
  .header-inner .brand-mark i { left: 1.43rem; top: .45rem; }
  .site-nav { order: 3; grid-column: 1/-1; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: .25rem; }
  .site-nav a, .search-link { padding-block: .6rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1.15rem; }
  .hero-copy { padding: 1.85rem 1.55rem 1.65rem; }
  .hero h1 { font-size: clamp(3rem,12vw,4.7rem); }
  .hero p { margin-top: .9rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-photo { min-height: 0; aspect-ratio: 1.64; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(33,26,56,.16), transparent 43%); }
  .section { margin-block: 2.4rem 2.7rem; }
  .pick { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1/-1; }
}
@media (max-width: 32rem) {
  .frame, .article-shell { width: calc(100% - 2rem); }
  .site-nav { gap: .1rem .55rem; }
  .site-nav a, .search-link { font-size: .86rem; }
  .card-grid, .related .card-grid { grid-template-columns: 1fr; gap: .7rem; }
  .home-more .section { padding-block: 2.2rem 2.7rem; }
  .page-head { padding: 1.4rem 0 1.8rem; }
  .article-head { padding-top: 1.35rem; }
}
.category-group + .category-group { margin-top: 2.5rem; }
button.button { cursor: pointer; }
