:root {
  color-scheme: light;
  --burgundy: #790d16;
  --deep-burgundy: #470911;
  --gold: #80500d;
  --light-gold: #f5d895;
  --paper: #fff1da;
  --ink: #36130e;
  --muted: #66463c;
  --rule: #bb935d;
  --serif: Georgia, "Times New Roman", serif;
  --display: Baskerville, "Iowan Old Style", Garamond, Georgia, serif;
  --content-width: min(79rem, calc(100% - 2 * clamp(1.25rem, 7.7vw, 9rem)));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.58 var(--serif);
}

h1, h2, p, address { margin: 0; }
address { font-style: normal; }
a { color: var(--burgundy); text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid #401119;
  outline-offset: 4px;
}

.cover :focus-visible,
.cover:focus-visible {
  outline-color: var(--light-gold);
}

[tabindex="-1"] { scroll-margin-block-start: 1rem; }
#top, #main { scroll-margin-block-start: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 3;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  background: var(--paper);
}

.skip-link:focus { transform: none; }

.wrap {
  width: var(--content-width);
  margin-inline: auto;
}

.cover {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem 1.25rem;
  border-bottom: 3px solid #ba8d4b;
  background: radial-gradient(ellipse at 50% 35%, #520a15, #37060e 56%, #210308);
  color: var(--light-gold);
  text-align: center;
}

.cover-inner { width: min(100%, 40rem); }

.emblem {
  display: block;
  width: min(73%, clamp(9rem, 32svh, 17rem));
  height: auto;
  margin: 0 auto clamp(0.9rem, 2.5svh, 1.6rem);
}

.brush-mark {
  display: block;
  height: auto;
  aspect-ratio: 280 / 95;
  fill: currentColor;
}

.cover .brush-mark {
  width: min(88%, clamp(12.5rem, 29vw, 22rem));
  margin-inline: auto;
}

.enter {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  margin-top: clamp(1.3rem, 3.5svh, 2.2rem);
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #bb935d;
  color: #fff8ed;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.enter:hover { background: #fff8ed12; }

.landscape {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: max(38rem, 49vw);
  background: var(--paper);
}

.landscape-art, .landscape-art img {
  display: block;
  width: 100%;
}

.landscape-art {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.landscape-art img {
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

.landscape::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, var(--paper) 0%, #fff1da00 6%),
    linear-gradient(90deg, #fff1da00 0%, #fff1da78 10%, #fff1daa8 31%, #fff1da50 46%, #fff1da00 68%);
  content: "";
  pointer-events: none;
}

.landscape-content {
  padding-block: clamp(1.55rem, 3.4vw, 3.8rem) clamp(3rem, 6.6vw, 6.75rem);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
}

.brand {
  display: grid;
  justify-items: center;
  align-content: start;
  justify-self: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  color: var(--burgundy);
  text-align: center;
  text-decoration: none;
}

.brand .brush-mark {
  width: clamp(11rem, 17vw, 19rem);
  max-width: 100%;
}

.brand-name {
  font: 400 clamp(2.4rem, 4vw, 4.5rem)/1.02 var(--display);
  letter-spacing: -0.035em;
}

.established {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-start: 0.32rem;
  color: var(--gold);
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.established::before, .established::after {
  width: clamp(1.2rem, 3.8vw, 3.9rem);
  height: 1px;
  background: var(--rule);
  content: "";
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 0.5rem;
}

.site-nav a {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  min-width: 44px;
  padding-inline: 0.25rem;
  font-size: clamp(0.875rem, 1.25vw, 1.13rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover, .site-nav a:focus-visible { text-decoration: underline; }

.about {
  width: min(46%, 35rem);
  margin-top: clamp(1.6rem, 2.8vw, 3.15rem);
  font-size: clamp(1.125rem, 1.45vw, 1.45rem);
  line-height: 1.48;
}

.about p + p { margin-top: 1.05em; }
.about [lang="zh-Hant"] { white-space: nowrap; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: clamp(1.3rem, 2.3vw, 2.05rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 50px;
  padding: 0.66rem 1.05rem;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover { text-decoration: underline; }

.button svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary { background: var(--burgundy); color: #fff8ed; }
.button-primary:hover { background: var(--deep-burgundy); }
.button-secondary { background: #fff7e7; }
.button-secondary:hover { background: #ffe9bf; }

.guest-info { padding-block: clamp(1.6rem, 3.8vw, 3.3rem) 1.3rem; }

.visit {
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}

.visit h2 {
  margin-bottom: 1rem;
  color: var(--burgundy);
  font-size: clamp(1.1rem, 1.45vw, 1.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  max-width: 47rem;
}

.holiday-note {
  margin-top: 0.34rem;
  color: var(--muted);
  font-size: 1rem;
}

.directions, .back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
}

.accessibility {
  display: flex;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.accessibility h2 {
  color: var(--burgundy);
  font: 700 1.125rem/1.45 var(--serif);
}

.accessibility p { font-size: 1rem; }

.accessibility a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

footer {
  border-bottom: 4px solid var(--burgundy);
  color: var(--burgundy);
  font-size: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-block: 0.6rem 0.85rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 60rem) {
  :root { --content-width: min(43rem, calc(100% - 2 * clamp(1.2rem, 6vw, 4.25rem))); }

  .landscape {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .landscape::after {
    inset: 0 auto auto 0;
    width: min(16rem, 43vw);
    height: 10rem;
    background: url("assets/plum-blossoms.webp") left top / contain no-repeat;
    mask-image: linear-gradient(139deg, #000 15%, transparent 66%);
  }

  .landscape-content { padding-block: clamp(1.7rem, 5vw, 3rem) 1.65rem; }

  .site-header {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .brand .brush-mark { width: clamp(10rem, 31vw, 14rem); }
  .brand-name { font-size: clamp(2.2rem, 6.1vw, 3.5rem); }

  .site-nav {
    justify-content: center;
    column-gap: clamp(0.37rem, 3.5vw, 1.8rem);
    border-bottom: 1px solid var(--rule);
  }

  .about {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.57;
  }

  .landscape-art {
    position: relative;
    order: 1;
    aspect-ratio: 1219 / 812;
    max-height: 32rem;
    mask-image: linear-gradient(to bottom, transparent, #000 17%, #000 94%, transparent);
  }
}

@media (max-width: 35rem) {
  .cover .brush-mark { width: min(75%, 16rem); }

  .landscape-content { display: contents; }

  .site-header, .about {
    width: var(--content-width);
    margin-inline: auto;
  }

  .site-header {
    order: -1;
    padding-top: 1.65rem;
  }

  .site-nav {
    justify-content: space-between;
    column-gap: 0.5rem;
  }

  .site-nav a {
    padding-inline: 0;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .landscape-art {
    order: 0;
    margin-top: 0.3rem;
  }

  .about {
    order: 1;
    margin-top: 0.65rem;
    padding-bottom: 1.7rem;
  }

  .actions > a { flex: 1 1 auto; }
  .guest-info { padding-top: 0.9rem; }
}

@media (max-width: 30rem) {
  .visit-details { grid-template-columns: 1fr; }
  .footer-inner { align-items: start; }
}

@media (max-width: 22rem) {
  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (forced-colors: active) {
  .cover .brush-mark, .brand .brush-mark { color: CanvasText; }
  .landscape::after, .landscape-art { display: none; }
  .landscape { min-height: auto; }
  .button { border-color: LinkText; }
}

@media print {
  .cover, .landscape-art, .landscape::after, .site-nav, .skip-link, .back-to-top { display: none; }
  .landscape { min-height: auto; }
  .landscape-content { padding-block: 0 1rem; }
  .about { width: 100%; }
}
