@font-face {
  font-family: "Heading Serif";
  src: url("assets/heading-serif.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --pine: #123327;
  --deep: #0b231b;
  --gold: #e7cb94;
  --gold-line: #a58b59;
  --paper: #fbf6e9;
  --canvas: #ede5d3;
  --ivory: #fffaf0;
  --ink: #1c372c;
  --secondary: #554d3d;
  --rule: #d5c3a3;
  --heading: "Heading Serif", "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font: 100% / 1.6 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--deep);
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #b4772b; outline-offset: 4px; }
::selection { color: var(--deep); background: #efd59c; }

.home {
  background: radial-gradient(ellipse at 50% 0%, #244c3c 0, var(--deep) 65%);
}
.home-wrap { width: min(100% - 2rem, 56rem); margin: 0 auto; padding: 1.75rem 0 3rem; }
.mast { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(.75rem, 4vw, 2.35rem); margin-bottom: 1.3rem; }
.mast::before, .mast::after { content: ""; height: 1px; background: var(--gold-line); }
.mast h1 { margin: 0; }
.mast img { width: clamp(9.25rem, 37vw, 14rem); height: auto; }
.hero-photo { position: relative; background: #112a21; }
.hero-photo::after { content: ""; position: absolute; inset: .36rem; border: 1px solid rgb(231 203 148 / 66%); border-radius: .9rem .9rem 0 0; pointer-events: none; }
.hero-photo, .hero-photo img { border-radius: 1.2rem 1.2rem 0 0; }
.hero-photo img { width: 100%; aspect-ratio: 1.85; object-fit: cover; object-position: center 55%; }
.entrances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #d9c6a3; border-inline: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.entrance { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); text-align: center; text-decoration: none; transition: background-color .18s ease; }
.entrance img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.entrance span { display: grid; min-height: 3.4rem; place-items: center; padding: .55rem .2rem .7rem; font: 680 clamp(1rem,4.8vw,1.4rem) / 1.25 var(--heading); letter-spacing: .06em; }
.entrance:hover { background: #f0deba; }
@media (min-width: 48rem) {
  .home-wrap { padding-top: 2.9rem; }
  .hero-photo img { aspect-ratio: 2.35; }
  .entrance { grid-template-columns: minmax(0, 45%) 1fr; }
  .entrance img { aspect-ratio: 1.85; }
}

.inside { min-height: 100vh; background: var(--canvas); }
.top { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .55rem max(.85rem, calc((100vw - 56rem)/2)); background: var(--deep); color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.top-brand { display: grid; align-items: center; width: clamp(5rem, 23vw, 7.25rem); min-height: 44px; flex-shrink: 0; }
.top nav { display: flex; gap: clamp(.18rem, 2vw, .8rem); }
.top nav a { display: grid; place-items: center; min-height: 44px; padding: .15rem .42rem; font-size: .92rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.top nav a[aria-current], .top nav a:hover { border-bottom-color: var(--gold); color: #fff2d0; }
.paper { width: min(100%, 56rem); margin: 0 auto; background: var(--paper); min-height: calc(100vh - 4.4rem); padding: clamp(1.55rem, 5vw, 3rem) clamp(1rem, 5vw, 3.5rem) 2.6rem; }
.section-head { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.section-head h1 { margin: 0; font: 720 clamp(2rem,8vw,3.25rem) / 1.2 var(--heading); letter-spacing: .045em; }
.section-head p, figcaption p { margin: .38rem 0 0; color: var(--secondary); font-size: 1rem; line-height: 1.6; }
.section-head .section-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .18rem; color: #6a4925; font-size: .94rem; text-underline-offset: .2em; }
.categories { display: flex; flex-wrap: wrap; gap: .4rem .55rem; }
.categories a, .originals a, .return-home { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .75rem; background: #f6eedb; color: var(--ink); border: 1px solid var(--rule); font-size: .94rem; text-decoration: none; }
.categories a:hover, .originals a:hover, .return-home:hover { background: #ecdfc4; text-decoration: underline; text-underline-offset: .2em; }
h2 { margin: 0 0 .55rem; font: 680 clamp(1.16rem, 4.65vw, 1.5rem) / 1.4 var(--heading); }
.menu-stack section { margin-top: 1.9rem; scroll-margin-top: 5.35rem; }
.full-image { display: block; position: relative; overflow: hidden; color: var(--gold); background: var(--deep); text-decoration: none; }
.full-image img { width: 100%; object-fit: contain; }
.menu-stack img { aspect-ratio: var(--menu-ratio, 1262 / 3309); }
.menu-stack section:nth-child(2) img, .menu-stack section:nth-child(3) img { --menu-ratio: 1416 / 3309; }
.view-full { display: grid; min-height: 44px; place-items: center; font-size: .91rem; border-top: 1px solid var(--gold-line); }
.full-image:hover .view-full { text-decoration: underline; text-underline-offset: .2em; }
.originals { margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); scroll-margin-top: 5.35rem; }
.originals a { margin-right: .32rem; }
.return-home { margin-top: 1.4rem; }

.gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 1.1rem; }
.gallery figure { margin: 0; background: var(--ivory); }
.gallery figure:first-child, .gallery .gallery-wide { grid-column: 1 / -1; }
.gallery figure:first-child img { aspect-ratio: 1108 / 1419; max-height: 36rem; }
.gallery figure:nth-child(2) img { aspect-ratio: 1422 / 1106; }
.gallery figure:nth-child(3) img { aspect-ratio: 1672 / 941; }
.gallery figure:nth-child(4) img { aspect-ratio: 1087 / 1447; }
.gallery figure:nth-child(5) img { aspect-ratio: 1086 / 1448; }
.gallery figcaption { padding: .7rem .9rem .9rem; border-bottom: 1px solid var(--rule); }
.gallery figcaption h2 { margin: 0; }
.gallery figcaption p { margin-top: .22rem; }
@media (max-width: 35rem) { .gallery { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .entrance { transition: none; } }
