:root {
  color-scheme: light;
  --page: #f8f8f4;
  --white: #fff;
  --ink: #1a1c29;
  --muted: #575b6c;
  --blue: #252eb4;
  --line: #dbdce6;
  --soft: #e8e9fb;
  --acid: #e6f56d;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #474ce4; outline-offset: 3px; }
.wrap { width: min(100% - 5rem, 1240px); margin-inline: auto; }
.section { padding-block: clamp(2.8rem, 6vw, 5.3rem); }
.skip { position: fixed; z-index: 10; left: 16px; top: 16px; padding: .7rem 1rem; color: var(--white); background: var(--blue); transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.8rem; }
.header-inner { min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: .62rem; color: var(--ink); text-decoration: none; font-size: 1.13rem; font-weight: 820; letter-spacing: -.065em; white-space: nowrap; }
.wordmark-sub { color: var(--blue); }
.mark { width: 30px; height: 30px; display: grid; padding: 6px; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--blue); border-radius: 8px; transform: rotate(-8deg); }
.mark i { background: var(--white); border-radius: 1px; }
.mark i:last-child { background: var(--acid); }
.header nav, .footer nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); }
.header nav a, .footer nav a { padding-block: .38rem; text-decoration: none; font-size: .9rem; font-weight: 650; color: var(--muted); }
.header nav a:hover, .footer nav a:hover, .header nav a[aria-current="page"] { color: var(--blue); }
.header nav a[aria-current="page"] { box-shadow: 0 2px var(--blue); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; padding: .83rem 1.05rem; min-height: 46px; border: 1px solid transparent; border-radius: 7px; font-size: .89rem; text-decoration: none; font-weight: 750; line-height: 1.25; }
.button span, .text-link span { font-size: 1.07em; }
.primary { color: var(--white); background: var(--blue); }
.primary:hover { background: #18218f; }
.secondary, .nav-button { border-color: #c1c3d3; color: var(--ink); background: transparent; }
.secondary:hover, .nav-button:hover { background: #e4e6f5; }
.nav-button { min-height: 40px; padding: .55rem .78rem; font-size: .83rem; white-space: nowrap; }
.accent { background: var(--acid); color: #222838; }
.accent:hover { background: #f2ffad; }
.text-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--blue); font-size: .88rem; font-weight: 760; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.hero { display: grid; grid-template-columns: .95fr 1fr; min-height: 510px; margin-top: clamp(1.25rem, 3vw, 2.4rem); padding: .55rem; overflow: hidden; border: 1px solid #dcdef5; border-radius: 15px; background: #eaeafd; }
.hero-copy { align-self: center; padding: clamp(1.2rem, 4.2vw, 4rem); padding-right: 1rem; }
.eyebrow { color: var(--blue); font-size: .73rem; font-weight: 780; letter-spacing: .105em; text-transform: uppercase; }
.hero h1, .page-intro h1 { font-weight: 840; letter-spacing: -.074em; line-height: .95; }
.hero h1 { font-size: clamp(3.35rem, 6.7vw, 7.15rem); margin-top: 1.1rem; }
.hero h1 span { color: var(--blue); }
.hero-intro { max-width: 36ch; margin-top: 1.32rem; color: #3e4155; font-size: clamp(.95rem, 1.28vw, 1.09rem); line-height: 1.61; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .62rem; margin-top: 1.55rem; }
.hero-media { position: relative; min-width: 0; min-height: 300px; overflow: hidden; border-radius: 9px; background: radial-gradient(ellipse at 65% 35%, #caddfa, #9caaeb 76%); }
.hero-media img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 55% 50%; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.3rem; }
.section-heading .eyebrow { margin-bottom: .33rem; }
h2 { font-size: clamp(1.8rem, 3.1vw, 3.4rem); font-weight: 810; line-height: 1.07; letter-spacing: -.056em; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.feature-card { display: block; height: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; background: var(--white); }
.feature-card:hover, .category-list a:hover { border-color: #777ee0; box-shadow: 0 0 0 1px #777ee0; }
.feature-photo { aspect-ratio: 1.32; background-image: url('/assets/categories.jpg'); background-size: 200% 200%; background-repeat: no-repeat; background-color: var(--soft); }
.shot-1 { background-position: left top; }
.shot-2 { background-position: right top; }
.shot-3 { background-position: left bottom; }
.shot-4 { background-position: right bottom; }
.feature-body, .category-list a, .guide-list a { display: flex; justify-content: space-between; align-items: start; gap: .6rem; }
.feature-body { padding: .95rem .9rem; }
.feature-body h3 { font-size: 1.02rem; letter-spacing: -.028em; }
.feature-body p { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.feature-body > span, .category-list a > span, .guide-list a > span { flex: 0 0 auto; color: var(--blue); font-size: 1.06rem; }
.category-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin-top: .85rem; }
.category-list a { height: 100%; border: 1px solid var(--line); background: var(--white); text-decoration: none; border-radius: 8px; padding: .8rem .7rem; }
.category-list strong { display: block; font-size: .92rem; }
.category-list div span { display: block; color: var(--muted); font-size: .78rem; margin-top: .2rem; }

.guide-band { background: #e9eafb; border-block: 1px solid #dadcf2; }
.guide-layout, .faq-layout { display: grid; grid-template-columns: .73fr 1fr; align-items: start; gap: clamp(1.4rem, 7vw, 6.5rem); }
.guide-layout h2 { margin-block: .5rem .8rem; }
.guide-layout > div > p:not(.eyebrow) { max-width: 35ch; color: var(--muted); }
.guide-layout .button { margin-top: 1.1rem; }
.guide-list a { text-decoration: none; padding: 1rem 0; border-top: 1px solid #c3c7e0; }
.guide-list li:last-child a { border-bottom: 1px solid #c3c7e0; }
.guide-list h3 { font-size: clamp(1.12rem, 2vw, 1.44rem); line-height: 1.22; letter-spacing: -.033em; margin-block: .28rem; }
.guide-list h3 + p { font-size: .9rem; color: var(--muted); max-width: 60ch; }
.guide-list a:hover h3 { color: var(--blue); text-decoration: underline; }

.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { display: flex; align-items: start; gap: .75rem; justify-content: space-between; padding: .95rem 0; font-weight: 720; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary span { color: var(--blue); font-size: 1.15rem; line-height: 1.25; }
.questions summary span::before { content: '+'; }
.questions details[open] summary span::before { content: '−'; }
.questions details p { color: var(--muted); padding-bottom: 1rem; }
.faq-layout + .section { padding-top: 0; }
.shop-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; background: #22289a; color: #fff; border-radius: 12px; padding: clamp(1.3rem, 4vw, 3rem); }
.shop-banner p { margin-top: .4rem; color: #e6e6ff; }

.footer { border-top: 1px solid var(--line); padding-block: 2.1rem; }
.footer-inner { align-items: start; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .85rem; margin-top: .5rem; }

.page-intro { background: #e9eafb; border-bottom: 1px solid #dadcf2; padding-block: clamp(2.5rem, 7vw, 5.3rem); }
.page-intro h1 { font-size: clamp(2.35rem, 6vw, 5.1rem); margin-block: .5rem .9rem; }
.page-intro p:not(.eyebrow) { max-width: 60ch; color: var(--muted); font-size: 1.09rem; }
.reading, .guide-index { max-width: 790px; }
.guide-index .guide-list li a { padding-block: 1.3rem; }
.breadcrumbs { color: var(--muted); margin-bottom: 1rem; font-size: .85rem; }
.breadcrumbs a { text-underline-offset: .2em; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: .7rem; }
.prose p { color: #34384d; margin-bottom: 1.1rem; line-height: 1.7; }
.prose section + section, .prose p + h2 { margin-top: 2.3rem; }
.category-index + .section { padding-top: 0; }
.category-index .category-list { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.3rem; }
.category-index .category-list a { padding: 1rem; }
.filter { display: grid; max-width: 32rem; gap: .35rem; }
.filter label { font-weight: 700; }
.filter input { width: 100%; border-radius: 7px; border: 1px solid #a5a8bc; padding: .65rem .75rem; font: inherit; color: var(--ink); background: var(--white); }
.filter [role="status"], [data-empty] { color: var(--muted); font-size: .89rem; }

@media (max-width: 1020px) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero { min-height: 420px; }
  .hero h1 { font-size: clamp(3rem, 6.8vw, 5.7rem); }
  .category-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; row-gap: .5rem; padding-top: .85rem; }
  .header nav { grid-row: 2; grid-column: 1 / -1; gap: clamp(.9rem, 6vw, 2rem); padding-bottom: .4rem; overflow-x: auto; }
  .header nav a { font-size: .83rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 1.4rem 1rem 1.6rem; }
  .hero h1 { font-size: clamp(3rem, 10vw, 5.6rem); }
  .hero-media { min-height: 0; aspect-ratio: 1.52; }
  .feature-grid, .category-list, .category-index .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-banner, .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 1.25rem); }
  .hero h1 { font-size: 2.9rem; }
  .section-heading { flex-wrap: wrap; }
  .button { gap: .45rem; }
}
