:root {
  color-scheme: light;
  --paper: #f3ecdf;
  --paper-deep: #e6d9c6;
  --ink: #241c17;
  --ink-soft: #5c5148;
  --terra: #9d4030;
  --terra-deep: #6e2c1e;
  --line: rgba(36, 28, 23, 0.16);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 0% -10%, rgba(157, 64, 48, 0.07), transparent 42%),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(92px + env(safe-area-inset-bottom));
}

a { color: inherit; }
a:visited { color: inherit; }

:focus-visible {
  outline: 2px solid var(--terra-deep);
  outline-offset: 3px;
}

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--terra-deep);
}

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(44px, 13vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.seal {
  flex: none;
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
  border: 1.5px solid var(--terra);
  color: var(--terra);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-7deg);
  line-height: 1.05;
}

.seal b {
  font-size: 18px;
  font-weight: 600;
}

.seal span {
  margin-top: 2px;
  font-size: 14px;
  letter-spacing: 0.22em;
}

.lede {
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.6;
}

.now {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 10px;
  background: var(--terra);
  color: #f7f1e8;
  text-decoration: none;
  text-align: center;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.cta:visited { color: #f7f1e8; }

.cta.alt {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.cta.alt:visited { color: var(--ink); }

.cta:active { filter: brightness(0.94); }

.aside {
  margin: 28px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--terra);
}

.aside p { margin: 0; }

h2, section, .door {
  scroll-margin-top: 12px;
  scroll-margin-bottom: 84px;
}

h2 {
  margin: 2.6rem 0 0.9rem;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

h2::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin-bottom: 0.75rem;
  background: var(--terra);
}

.frame {
  position: relative;
  height: min(96vw, 480px);
  background: var(--paper-deep);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.frame svg,
.frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.northmark {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 12px;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  pointer-events: none;
  transform-origin: center;
}

.tags {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.tag {
  position: absolute;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(36, 28, 23, 0.28);
  background: rgba(243, 236, 223, 0.94);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  pointer-events: auto;
  white-space: nowrap;
}

.tag.go {
  background: var(--terra);
  border-color: var(--terra);
  color: #f7f1e8;
}

.reset {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 10px;
  min-width: 52px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(36, 28, 23, 0.28);
  background: rgba(243, 236, 223, 0.94);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}

.caption {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.tl {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 8px;
}

.tl .t {
  padding-top: 2px;
  color: var(--terra-deep);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.tl .body {
  margin: 0;
  padding: 0 0 1.25rem 14px;
  border-left: 1px solid var(--line);
}

.tl li:last-child .body { padding-bottom: 0; }

.tl p { margin: 0; }

.quiet {
  color: var(--ink-soft);
}

.rooms {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.rooms li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
}

.rooms li:first-child { border-top: 0; }

.fact {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 8px 12px;
  margin: 1.1rem 0 0;
  padding: 0;
}

.fact dt {
  margin: 0;
  color: var(--terra-deep);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.fact dd {
  margin: 0;
  font-size: 17px;
}

.door { margin-top: 1.4rem; }

.door h3,
.place h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
}

.place-lead h3 { font-size: 2rem; }

.addr {
  margin: 0;
  font-size: 17px;
}

.maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.map-go,
.tel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.25;
}

.map-go.solid,
.map-go.solid:visited {
  background: var(--terra);
  border-color: var(--terra);
  color: #f7f1e8;
}

.map-go:active,
.tel:active { filter: brightness(0.95); }

.place {
  padding: 1.35rem 0 0.4rem;
  border-top: 1px solid var(--line);
}

.place-lead { border-top: 0; padding-top: 0; }

.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--terra-deep);
}

.flag {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--terra-deep);
}

.hours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.hours li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
}

.note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

footer {
  margin-top: 2.4rem;
  padding-top: 0.4rem;
}

.sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources li { border-top: 1px solid var(--line); }

.sources a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
}

.sources a:active { color: var(--terra-deep); }

.colophon {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.dock {
  position: fixed;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(243, 236, 223, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.16em;
}

@media (min-width: 720px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  .frame { height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  .seal { transform: none; }
}
