:root {
  --paper: #f4f5ee;
  --ink: #273f35;
  --muted: #617064;
  --accent: #a54b3b;
  --line: #c5cdc1;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --page-width: 1392px;
  --page-gutter: clamp(24px, 4.7vw, 72px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
::selection { background: #d4dfcc; color: var(--ink); }

.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 12px 18px; background: var(--ink); color: var(--paper); font-family: var(--sans); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.paper-grain { position: fixed; inset: 0; z-index: 8; pointer-events: none; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.32' filter='url(%23paper)'/%3E%3C/svg%3E"); }
.site-header, .home-main, .site-footer { width: min(var(--page-width), calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
.site-header { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 20px; letter-spacing: .19em; padding-block: 12px; }
.site-nav { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); }
.site-nav a { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 18px; letter-spacing: .16em; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: .16em; bottom: 7px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.orchid-hero { position: relative; display: grid; align-items: center; min-height: clamp(520px, 59.3vw, 619px); isolation: isolate; }
.hero-copy { position: relative; z-index: 2; padding: 40px 24px 60px; max-width: 610px; }
.hero-kicker { margin: 0 0 22px; font-size: 20px; letter-spacing: .18em; }
.hero-title { margin: 0 0 24px -8px; font-size: clamp(150px, 14.1vw, 216px); font-weight: 400; line-height: 1; }
.hero-lede { margin: 0; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: .12em; line-height: 1.85; }
.mobile-break { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; font-size: 20px; letter-spacing: .12em; }
.hero-link { margin-top: 36px; }
.text-link:hover { color: var(--accent); }
.arrow { display: inline-block; position: relative; width: 52px; height: 1px; background: currentColor; flex-shrink: 0; transition: transform .3s ease; }
.arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
a:hover .arrow { transform: translateX(6px); }
.orchid-art { position: absolute; width: 75%; margin: 0; right: -28px; bottom: -6px; z-index: 1; pointer-events: none; }
.orchid-art picture { display: block; }
.orchid-image { display: block; width: 100%; height: auto; }
.painting-inscription { position: absolute; right: 29px; top: 12%; display: flex; flex-direction: column; align-items: center; gap: 24px; font-size: 19px; letter-spacing: .24em; }
.painting-inscription > span:first-child { writing-mode: vertical-rl; }
.seal { display: inline-flex; width: 28px; height: 31px; align-items: center; justify-content: center; color: var(--accent); border: 1px solid currentColor; outline: 1px solid currentColor; outline-offset: -4px; font-size: 19px; letter-spacing: 0; line-height: 1; transform: rotate(-3deg); }

.garden-entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-block: 36px; min-height: 260px; border-top: 1px solid var(--line); }
.garden-entry { display: flex; flex-direction: column; justify-content: flex-start; padding: 16px 24px 22px; }
.garden-entry + .garden-entry { border-left: 1px solid var(--line); padding-left: 9%; }
.garden-entry h2 { display: flex; align-items: center; gap: 30px; margin: 0 0 14px; font-weight: 400; font-size: 42px; letter-spacing: .12em; }
.garden-entry h2 .arrow { width: 46px; opacity: 0; transform: translateX(-8px); }
.garden-entry:hover h2 .arrow, .garden-entry:focus-visible h2 .arrow { opacity: 1; transform: translateX(0); }
.entry-lede { margin: 0 0 10px; font-size: 22px; line-height: 1.7; letter-spacing: .1em; }
.entry-note { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; letter-spacing: .04em; }
.site-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 77px; border-top: 1px solid var(--line); padding: 22px 14px 26px; color: var(--muted); font-size: 15px; }
.site-footer p { margin: 0; }
.site-footer a { font-family: Georgia, "Times New Roman", serif; letter-spacing: .04em; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); }

.writing-page { display: flex; flex-direction: column; }
.writing-main { position: relative; flex: 1; width: min(1000px, calc(100% - var(--page-gutter) * 2)); margin: 0 auto; padding: clamp(72px, 9vw, 136px) 0 100px; }
.page-kicker { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; color: var(--muted); margin: 0 0 22px; }
.page-title { margin: 0; font-weight: 400; font-size: clamp(48px, 7vw, 82px); letter-spacing: .12em; line-height: 1.2; }
.writing-intro { margin: 22px 0 0; color: var(--muted); font-size: 20px; letter-spacing: .06em; line-height: 1.8; }
.writing-empty { position: relative; margin-top: 60px; padding: 50px 0 70px; border-top: 1px solid var(--line); min-height: 270px; }
.empty-copy { position: relative; z-index: 2; max-width: 540px; }
.writing-empty h2 { font-size: clamp(25px, 4vw, 34px); font-weight: 400; letter-spacing: .08em; margin: 0 0 18px; }
.writing-empty p { font-size: 18px; line-height: 1.9; color: var(--muted); margin: 0 0 28px; }
.writing-art { position: absolute; bottom: -58px; right: -20px; width: 380px; opacity: .5; pointer-events: none; }
.writing-art img { width: 100%; height: auto; display: block; }

@media (min-width: 1700px) { .orchid-hero { min-height: 670px; } }
@media (max-width: 1100px) {
  .hero-copy { padding-left: 8px; max-width: 430px; }
  .hero-lede { max-width: 22em; font-size: 19px; }
  .orchid-art { width: 77%; right: -15px; bottom: 10px; }
  .painting-inscription { right: 18px; font-size: 17px; }
  .garden-entry { padding-left: 8px; }
  .garden-entry + .garden-entry { padding-left: 9%; }
  .garden-entry h2 { font-size: 36px; gap: 16px; }
  .garden-entry h2 .arrow { width: 28px; }
  .entry-lede { font-size: 20px; }
  .entry-note { font-size: 16px; }
}
@media (max-width: 700px) {
  .site-header { min-height: 68px; }
  .wordmark { font-size: 16px; letter-spacing: .12em; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: 15px; letter-spacing: .08em; }
  .orchid-hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; }
  .hero-copy { padding: 52px 0 0; max-width: none; }
  .hero-kicker { font-size: 15px; margin-bottom: 14px; }
  .hero-title { font-size: 136px; margin-left: -5px; margin-bottom: 18px; }
  .hero-lede { font-size: 18px; max-width: 20em; line-height: 1.8; letter-spacing: .08em; }
  .mobile-break { display: block; }
  .hero-link { margin-top: 20px; font-size: 17px; }
  .orchid-art { position: relative; width: calc(100% + 40px); right: auto; bottom: auto; align-self: center; margin: 0 -20px 2px; }
  .painting-inscription { display: none; }
  .seal { width: 24px; height: 28px; font-size: 16px; }
  .garden-entries { grid-template-columns: 1fr; padding: 0; min-height: auto; }
  .garden-entry { padding: 30px 0; }
  .garden-entry + .garden-entry { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .garden-entry h2 { font-size: 30px; justify-content: space-between; margin-bottom: 12px; }
  .garden-entry h2 .arrow { width: 40px; opacity: 1; transform: none; }
  .entry-lede { font-size: 19px; margin-bottom: 6px; }
  .entry-note { font-size: 15px; line-height: 1.8; }
  .site-footer { padding: 22px 0 28px; gap: 12px; align-items: flex-start; font-size: 13px; }
  .site-footer a { letter-spacing: 0; }
  .writing-main { padding-top: 64px; padding-bottom: 48px; }
  .writing-intro { font-size: 18px; }
  .writing-empty { margin-top: 38px; padding-top: 32px; padding-bottom: 260px; }
  .writing-empty p { font-size: 17px; }
  .writing-art { width: min(100%, 330px); right: -10px; bottom: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) { .paper-grain { display: none; } }
@media (forced-colors: active) { .paper-grain, .orchid-art, .writing-art { display: none; } .arrow { background: LinkText; } .seal { color: CanvasText; } }
.orchid-image[hidden] { display: none; }
.orchid-art.art-unavailable { aspect-ratio: 3 / 2; }

/* The character shares the paper, ink and orchid palette. */
.home-page .hero-copy { max-width: 52%; }
.home-page .hero-lede { text-wrap: balance; }
.home-page .home-orchid-accent { width: 45%; right: -24px; bottom: -6px; opacity: .35; }
.home-orchid-accent .painting-inscription { display: none; }
.mascot-scene { position: absolute; top: 50%; right: 4%; width: 42%; height: 430px; margin: 0; transform: translateY(-50%); display: grid; place-items: center; z-index: 3; }
.mascot-halo { position: absolute; width: 350px; height: 350px; border-radius: 50%; background: radial-gradient(circle, #dce5d5 0%, #e4eadd 47%, #edf0e6 70%, transparent 71%); opacity: .8; }
.mascot-shadow { position: absolute; width: 190px; height: 18px; top: calc(50% + 120px); border-radius: 50%; background: radial-gradient(ellipse, rgb(39 63 53 / .15), transparent 70%); }
.mascot { position: relative; width: 273px; height: 273px; max-width: 100%; padding: 0; border: 0; border-radius: 2px; background: transparent; cursor: pointer; touch-action: manipulation; transform-origin: center; -webkit-user-select: none; user-select: none; }
.mascot-poster, .mascot-mesh, .face { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.mascot-poster { object-fit: contain; pointer-events: none; }
.mascot-poster[hidden] { display: none; }
.mascot-mesh { pointer-events: none; }
.face { background-image: url("../assets/mascot/3d/expressions.webp"); background-size: 300% 300%; background-position: 50% 50%; background-repeat: no-repeat; pointer-events: none; }
.face[hidden], .mascot-mesh[hidden] { display: none; }
.mascot.is-ready .mascot-poster { visibility: hidden; }
.mascot:focus-visible { outline-offset: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px) and (min-width: 701px) {
  .mascot-scene { right: 0; width: 46%; }
  .mascot-halo { width: 310px; height: 310px; }
}
@media (max-width: 700px) {
  .home-page .orchid-hero { padding-bottom: 30px; }
  .home-page .hero-copy { order: 1; max-width: none; padding-top: 12px; }
  .home-page .hero-title { font-size: 100px; }
  .home-page .home-orchid-accent { position: absolute; width: 76%; right: -16px; bottom: 350px; margin: 0; opacity: .25; }
  .mascot-scene { position: relative; order: 0; top: auto; right: auto; width: 100%; height: 344px; transform: none; margin-top: 8px; }
  .mascot-halo { width: 292px; height: 292px; }
}
@media (forced-colors: active) { .mascot-halo, .mascot-shadow { display: none; } }
