:root {
  --canvas: #f8f6f0;
  --card: #fffdf8;
  --ink: #202924;
  --soft: #5a625b;
  --green: #214e42;
  --forest: #18392e;
  --sage: #e5ebe1;
  --copper: #8e4b34;
  --line: #dddcd1;
  --serif: "Lora", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.55 var(--sans); background: var(--canvas); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ad6246; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 2 * clamp(.75rem, 3.2vw, 2rem)), 74rem); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: absolute; left: 1rem; top: .4rem; z-index: 10; padding: .75rem; background: var(--card); }
.header { border-bottom: 1px solid var(--line); }
.topbar { min-height: 4.65rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; white-space: nowrap; font: 600 1.35rem/1.15 var(--serif); letter-spacing: -.045em; }
.brand-logo { display:block; width:6.75rem; height:auto; }
footer .brand-logo { width:6rem; }
@media(max-width: 53rem) { .topbar .brand-logo { width:5.75rem; } }
.brand-icon { display: inline-flex; align-items: end; justify-content: center; gap: 2px; background: var(--green); color: var(--card); width: 2.15rem; height: 2.15rem; border-radius: .52rem; padding-bottom: .61rem; }
.brand-icon i { position: relative; width: .26rem; height: .85rem; border-radius: 0 0 1px 1px; background: currentColor; }
.brand-icon i:not(:last-child)::after { content: ""; position: absolute; right: -2px; top: 0; width: .17rem; height: .45rem; background: var(--green); z-index: 1; }
nav { display: flex; gap: clamp(1.05rem, 3vw, 2.55rem); }
nav a { display: flex; align-items: center; min-height: 2.75rem; position: relative; font-size: .91rem; font-weight: 500; white-space: nowrap; color: #454d45; }
nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .35rem; }
.header-search, .menu-toggle { justify-self: end; min-height: 2.65rem; display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #c6d2c9; border-radius: .4rem; padding: .4rem .8rem; background: transparent; color: var(--green); font-size: .87rem; font-weight: 600; }
.menu-toggle { display: none; }
.glass { width: .99rem; height: .99rem; display: inline-block; border: 1.8px solid currentColor; border-radius: 50%; position: relative; transform: scale(.8); flex: none; }
.glass::after { content: ""; width: .43rem; height: 1.8px; border-radius: 2px; background: currentColor; position: absolute; right: -.32rem; bottom: -.11rem; transform: rotate(45deg); }
.hero { margin-top: 1.5rem; min-height: 27.5rem; position: relative; isolation: isolate; display: flex; align-items: center; background: var(--forest); color: #fffdf5; border-radius: 1rem; }
.hero-copy { padding: 3.25rem clamp(2rem, 5.1vw, 4.15rem); position: relative; z-index: 1; width: 100%; }
.hero-photo { z-index: -2; position: absolute; right: 0; width: 61%; height: 100%; object-fit: cover; object-position: 61% center; border-radius: 0 1rem 1rem 0; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #18392e 37%, #18392ef5 43%, #18392e90 58%, #18392e0d 77%); border-radius: inherit; }
.hero h1 { font-size: clamp(2.8rem, 5.2vw, 4.8rem); line-height: 1.09; letter-spacing: -.061em; max-width: 47rem; }
.hero h1 em { color: #f0ce9f; font-weight: 500; }
.hero-copy > p { color: #f0f1e8; margin-top: 1rem; max-width: 27rem; line-height: 1.66; }
.search-form { max-width: 32.5rem; min-height: 3.55rem; position: relative; display: flex; align-items: center; gap: .7rem; background: var(--card); color: var(--ink); border-radius: .55rem; padding: .37rem .38rem .37rem .85rem; margin-top: 1.45rem; box-shadow: 0 8px 25px #0d271c35; }
.search-form > .glass { color: var(--green); margin-right: .1rem; }
.search-form:focus-within { outline: 2px solid #eecb9d; outline-offset: 3px; }
.search-form input { min-width: 0; flex: 1; border: 0; background: transparent; padding: .5rem 0; outline: 0; }
.search-form input::placeholder { color: #5a625b; }
.search-submit, .green-button { min-height: 2.65rem; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; color: var(--card); background: var(--green); border: 1px solid var(--green); border-radius: .34rem; padding: .45rem .9rem; font-size: .87rem; font-weight: 700; }
.search-submit:hover, .green-button:hover { background: #143a2f; }
.suggestions { position: absolute; z-index: 4; left: 0; right: 0; top: calc(100% + .4rem); background: var(--card); border: 1px solid var(--line); border-radius: .55rem; box-shadow: 0 10px 24px #12291c3b; padding: .35rem; }
.suggestions button { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; width: 100%; gap: .5rem; padding: .4rem .6rem; border: 0; border-radius: .3rem; text-align: left; background: transparent; }
.suggestions button:hover, .suggestions button:focus-visible { background: var(--sage); }
.suggestions small { color: var(--soft); flex: none; font-size: .8rem; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem; margin-top: .8rem; max-width: 33rem; }
.quick > span { color: #dce5d7; font-size: .83rem; margin-right: .2rem; }
.quick button { min-height: 2rem; padding: .17rem .58rem; border: 1px solid #cadaaa54; border-radius: 10rem; color: #fff5e1; background: #173a31c9; font-size: .8rem; }
.quick button:hover { background: #426253; }
.collections, .library { padding-top: 3rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .8rem 1rem; margin-bottom: 1.1rem; }
.overline { color: var(--copper); font-size: .77rem; letter-spacing: .13em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.22; letter-spacing: -.05em; }
.section-head h2 { margin-top: .3rem; }
.underlined { color: var(--green); font-weight: 700; font-size: .87rem; text-decoration: underline; text-underline-offset: .26rem; text-decoration-color: #598172; display: inline-flex; align-items: center; min-height: 2.75rem; }
.underlined:hover { color: var(--copper); }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.collection { position: relative; isolation: isolate; overflow: hidden; min-height: 9.8rem; border: 1px solid #3d413018; border-radius: .65rem; padding: 1rem; display: flex; flex-direction: column; justify-content: end; align-items: flex-start; }
.collection:hover { border-color: var(--green); }
.collection::before { content: ""; position: absolute; z-index: -1; width: 9rem; height: 3rem; right: -.7rem; top: 1.1rem; background: repeating-linear-gradient(0deg, transparent 0 7px, currentColor 7px 8px); opacity: .13; transform: rotate(-13deg); mask-image: linear-gradient(90deg, transparent, black); }
.sage { background: #e5ebe1; color: #294c3f; }
.oat { background: #efe9d8; color: #614530; }
.blush { background: #f3e5dd; color: #783f32; }
.frost { background: #e5ebea; color: #395554; }
.card-decoration { position: absolute; top: .15rem; right: .9rem; opacity: .72; line-height: 1; }
.notes { font: 3.3rem/1.12 Georgia, serif; transform: rotate(-12deg); }
.clef { font: 3.2rem/1.24 "Noto Music", "Noto Serif", serif; }
.document { font: 700 .8rem/1 var(--sans); top: .9rem; right: 1.15rem; padding: .55rem .35rem; border: 1px solid currentColor; border-radius: .25rem; transform: rotate(9deg); background: #f1f6f3; }
.collection strong { font: 600 clamp(1.3rem, 2vw, 1.67rem)/1.15 var(--serif); color: var(--ink); letter-spacing: -.04em; }
.collection small { margin-top: .38rem; font-size: .84rem; color: #414942; }
.library { scroll-margin-top: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.filters button, .plain-button { min-height: 2.75rem; padding: .45rem .72rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--card); color: var(--green); font-size: .85rem; font-weight: 600; }
.filters button[aria-pressed="true"] { border-color: #adc2b1; background: var(--sage); }
.filters button:hover, .plain-button:hover { border-color: var(--green); }
.results-status { color: var(--soft); min-height: 0; margin-bottom: .55rem; font-size: .93rem; }
.results-status:empty { display: none; }
.catalog { border-top: 1px solid var(--line); }
.score-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: 1.05rem; border-bottom: 1px solid var(--line); padding: .75rem .1rem; align-items: center; }
.score-row img { width: 100%; aspect-ratio: 5/3; object-fit: cover; display: block; border: 1px solid var(--line); border-radius: .3rem; background: white; }
.score-row h3 { font-size: 1.18rem; line-height: 1.25; }
.score-row p { margin-top: .25rem; color: var(--soft); font-size: .84rem; }
.empty { padding: 1.2rem 0; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--soft); }
.pathways { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-block: 3.4rem; }
.pathways article { border: 1px solid var(--line); border-radius: .7rem; padding: clamp(1.1rem,3vw,2rem); background: var(--card); scroll-margin-top: 1rem; }
.pathways article:nth-child(2) { background: var(--sage); }
.feature-icon:not(.brand-icon) { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; background: var(--green); color: var(--card); border-radius: .52rem; }
.pathways h2 { font-size: clamp(1.45rem,2.8vw,2.1rem); margin: .8rem 0 .45rem; }
.pathways p { color: var(--soft); }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1.2rem; flex-wrap: wrap; padding-block: 1.25rem; }
.footer-inner p { font-size: .85rem; color: var(--soft); }
dialog { width: min(47rem,calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); border: 1px solid var(--line); border-radius: .7rem; padding: 1rem; background: var(--card); color: var(--ink); }
dialog::backdrop { background: #16251fc9; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: .5rem; margin-bottom: .7rem; }
.dialog-head h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
.dialog-head p { color: var(--soft); }
.dialog-head button { font-size: 1.5rem; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--canvas); }
dialog img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.dialog-actions { margin-top: .8rem; }
@media(max-width: 58rem) {
  .hero-copy { padding-inline: 2rem; }
  .collection { min-height: 9rem; }
  .topbar { min-height: 4.1rem; grid-template-columns: minmax(0,1fr) auto; column-gap: .5rem; row-gap: 0; }
  .brand { font-size: 1.2rem; }
  .menu-toggle { display: inline-flex; }
  .header-search { display: none; }
  .topbar nav { display: none; grid-column: 1 / -1; border-top: 1px solid var(--line); padding: .3rem 0 .55rem; }
  .topbar nav.open { display: grid; gap: .1rem; }
  .topbar nav a { padding-inline: .45rem; }
}
@media(max-width: 43rem) {
  .hero { margin-top: .85rem; min-height: 25rem; }
  .hero-copy { padding: 2.3rem clamp(.9rem, 4vw, 1.55rem) 1.5rem; }
  .hero-photo { width: 100%; border-radius: 1rem; object-position: 65% center; opacity: .6; }
  .hero::before { background: linear-gradient(0deg,#18392e 18%,#18392ee9 48%,#18392e56 100%); }
  .hero h1 { font-size: clamp(2.2rem, 8.6vw, 3.7rem); max-width: 27rem; }
  .search-form { gap: .4rem; padding-left: .5rem; }
  .search-form input { font-size: 1rem; }
  .search-submit { padding-inline: .55rem; }
  .quick { gap: .32rem; }
  .quick button { min-height: 2.45rem; }
  .collections, .library { padding-top: 2.25rem; }
  .section-head { gap: .4rem; }
  .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
  .collection { min-height: 8.3rem; padding: .75rem; }
  .score-row { grid-template-columns: 3.6rem minmax(0,1fr); gap: .45rem .65rem; }
  .score-row .plain-button { grid-column: 2; justify-self: start; }
  .pathways { grid-template-columns: 1fr; margin-block: 2.5rem; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
