:root {
  color-scheme: light;
  --bg: #eef6fb;
  --header: #e9f3fa;
  --panel: #f9fcff;
  --accent-panel: #dcecf8;
  --text: #152b40;
  --muted: #4e6578;
  --accent: #194f79;
  --action: #174d76;
  --on-action: #fff;
  --line: #c9dce9;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090a0c;
  --header: #0b0e12;
  --panel: #15191e;
  --accent-panel: #101c29;
  --text: #eef5fb;
  --muted: #b3c1cf;
  --accent: #9cc9ed;
  --action: #b8dcf7;
  --on-action: #0c2539;
  --line: #303b45;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, p { margin: 0; }
.wrap { width: min(100% - 5rem, 1380px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 6; top: 8px; left: 8px; padding: .6rem; background: var(--panel); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: var(--header); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; width: min(100% - 5rem, 1380px); margin: auto; gap: 1rem; }
.wordmark { font: 600 clamp(1.35rem, 2.4vw, 1.95rem)/1.16 var(--serif); white-space: nowrap; }
.wordmark i { color: var(--accent); font-weight: 500; }
.top-links { display: flex; align-items: center; gap: clamp(.65rem, 2.6vw, 2.1rem); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.message-link, .primary { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 44px; padding: .62rem 1.15rem; border-radius: 5px; background: var(--action); color: var(--on-action); font-weight: 600; }
.message-link:hover, .primary:hover { color: var(--on-action); filter: brightness(1.1); }
.theme-button, .scroll-button, .close { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); }
.theme-button span { width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.theme-button span::before { content: ""; position: absolute; right: -4px; top: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--panel); }
[data-theme="dark"] .theme-button span { width: 14px; height: 14px; box-shadow: 0 0 0 3px var(--panel), 0 0 0 4px currentColor; }
[data-theme="dark"] .theme-button span::before { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; min-height: 390px; margin-top: 1.8rem; background: var(--accent-panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hero-copy { align-self: center; padding: 2.2rem clamp(1.5rem, 4.5vw, 4.6rem); }
.overline { margin-bottom: .7rem; color: var(--accent); font-size: .82rem; letter-spacing: .22em; font-weight: 700; }
h1 { font: 600 clamp(3.25rem, 5.8vw, 6.2rem)/1.03 var(--serif); letter-spacing: -.055em; }
h1 em { color: var(--accent); font-weight: 500; }
.intro { max-width: 25rem; margin: 1.15rem 0 1.5rem; color: var(--muted); }
.hero-art { position: relative; min-width: 0; min-height: 310px; overflow: hidden; background: var(--panel); }
.hero-art img { position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: center 50%; }
.catalog { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 4.3rem); padding-block: 2.5rem 4.5rem; }
.side { min-width: 0; }
.side-interior { position: sticky; top: 91px; padding: .3rem 1rem .55rem 0; border-right: 1px solid var(--line); max-height: calc(100dvh - 110px); overflow: auto; scrollbar-width: thin; }
.side h2 { margin: 0 0 .6rem .6rem; font-size: .93rem; color: var(--muted); font-weight: 700; }
#menu-toggle { display: none; }
#category-nav { display: grid; gap: .15rem; }
.category-button { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: .35rem; padding: .48rem .6rem; border: 1px solid transparent; border-radius: 5px; text-align: left; background: transparent; font-size: .875rem; line-height: 1.35; }
.category-button:hover, .category-button[aria-current="true"] { background: var(--accent-panel); border-color: var(--line); color: var(--accent); }
.category-button small { font-size: .78rem; color: var(--muted); }
.catalog-intro h2 { font: 600 clamp(2.1rem, 4.2vw, 3.45rem)/1.13 var(--serif); }
.catalog-intro p { color: var(--muted); margin: .55rem 0 1.4rem; }
.collection { padding: 1.35rem 0 1.6rem; border-top: 1px solid var(--line); content-visibility: auto; contain-intrinsic-block-size: auto 300px; }
.collection-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.collection-heading h3 { margin: 0; }
.album-title { padding: 0; background: transparent; border: 0; text-align: left; font: 600 clamp(1.35rem, 2.3vw, 1.9rem)/1.2 var(--serif); }
.album-title:hover { color: var(--accent); }
.row-controls { display: flex; align-items: center; gap: .38rem; }
.view-all { border: 0; padding: .45rem .55rem; background: transparent; color: var(--accent); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.view-all:hover { text-decoration: underline; }
.scroll-button { width: 35px; height: 35px; }
.scroll-button:disabled { opacity: .4; cursor: default; }
.scroll-button span, #menu-toggle span { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); }
.scroll-button:first-of-type span { transform: rotate(135deg); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * .85rem) / 4.22); gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-inline: contain; padding: 4px 4px .55rem; }
.photo { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; align-self: start; scroll-snap-align: start; }
.photo img, .photo-fallback { display: block; width: 100%; aspect-ratio: 4/4.7; border: 1px solid var(--line); border-radius: 6px; object-fit: cover; background: var(--panel); }
.photo:hover img { border-color: var(--accent); }
.photo-label { display: block; margin-top: .42rem; font-size: .875rem; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-fallback { display: grid; place-content: center; text-align: center; color: var(--muted); padding: .5rem; font-size: .875rem; }
footer { background: var(--header); border-top: 1px solid var(--line); padding: 2.2rem 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 1.2rem; }
.footer-inner h2 { font-size: .95rem; margin-bottom: .45rem; }
.footer-inner p:not(.wordmark) { font-size: .875rem; color: var(--muted); margin: .3rem 0; }
.footer-inner a { text-decoration: underline; text-underline-offset: 3px; }
dialog { position: fixed; max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: 0 12px 54px #040c1855; }
dialog::backdrop { background: #07121dcc; }
#album { width: 1100px; }
#detail { width: 760px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; position: sticky; z-index: 1; top: 0; padding: .85rem 1.25rem; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.dialog-heading h2 { font: 600 clamp(1.24rem, 3vw, 2rem)/1.24 var(--serif); }
.dialog-heading p { font-size: .875rem; color: var(--muted); margin-top: .15rem; }
.close { font-size: 1.6rem; line-height: 1; }
.album-grid { padding: 1.1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem .8rem; }
#detail-art { min-height: 120px; display: grid; place-items: center; background: var(--bg); }
#detail-art img { display: block; max-width: 100%; width: 100%; max-height: 67dvh; object-fit: contain; }
#detail-art .photo-fallback { aspect-ratio: auto; min-height: 120px; }
.detail-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .55rem; padding: .7rem; font-size: .875rem; }
.detail-controls button, .detail-controls a { border: 1px solid var(--line); border-radius: 5px; padding: .46rem .65rem; background: transparent; min-height: 38px; }
.detail-controls button:disabled { opacity: .4; cursor: default; }
@media (max-width: 950px) {
  .wrap, .site-header-inner { width: calc(100% - 2.5rem); }
  .hero { min-height: 360px; }
  .catalog { grid-template-columns: minmax(154px, 185px) minmax(0, 1fr); gap: 1.45rem; }
  .track { grid-auto-columns: calc((100% - 2 * .7rem) / 3.15); gap: .7rem; }
}
@media (max-width: 670px) {
  html { scroll-padding-top: 74px; }
  .wrap, .site-header-inner { width: calc(100% - 1.6rem); }
  .site-header-inner { min-height: 60px; }
  .site-header .wordmark { font-size: clamp(1.08rem, 5.3vw, 1.42rem); }
  .collection-link, .contact-link { display: none; }
  .top-links { gap: .45rem; }
  .message-link { padding-inline: .62rem; font-size: .83rem; }
  .theme-button { width: 39px; height: 39px; }
  .hero { margin-top: .85rem; grid-template-columns: 1fr; }
  .hero-copy { padding: 1.4rem 1.2rem 1.5rem; }
  h1 { font-size: clamp(2.7rem, 11vw, 4.25rem); }
  .intro { margin: .8rem 0 1rem; }
  .hero-art { min-height: 150px; max-height: 225px; aspect-ratio: 2.12; }
  .catalog { display: block; padding-block: 1.15rem 2.6rem; }
  .side { margin-bottom: .9rem; }
  .side-interior { position: static; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); max-height: none; overflow: hidden; }
  .side h2 { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  #menu-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 46px; padding: .55rem .8rem; background: transparent; border: 0; font-size: .94rem; font-weight: 600; }
  #menu-toggle span { transform: rotate(45deg); margin-right: 4px; }
  #menu-toggle[aria-expanded="true"] span { transform: rotate(225deg); }
  #category-nav { max-height: 45dvh; overflow-y: auto; padding: .28rem; border-top: 1px solid var(--line); }
  #menu-toggle[aria-expanded="false"] + #category-nav { display: none; }
  .catalog-intro p { font-size: .92rem; }
  .collection { padding: .95rem 0 1rem; contain-intrinsic-block-size: auto 205px; }
  .collection-heading { margin-bottom: .45rem; }
  .row-controls { gap: .15rem; }
  .view-all { font-size: .82rem; padding-inline: .25rem; }
  .scroll-button { width: 30px; height: 33px; }
  .photo-label { font-size: .83rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .72rem; gap: .8rem .63rem; }
  .dialog-heading { padding: .65rem .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
