:root {
  --paper: #f5f2ea;
  --ink: #292720;
  --muted: #686357;
  --line: #dcd5c8;
  --red: #943e30;
  --red-dark: #743023;
  --tint: #ebe4d8;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }

.shell {
  width: min(100%, 1344px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: env(safe-area-inset-top, 0px) clamp(24px, 5vw, 74px) env(safe-area-inset-bottom, 0px);
  display: flex;
  flex-direction: column;
}

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}

.masthead { min-height: 87px; border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  background: var(--red);
  color: #fff6e9;
  font: 700 24px/1 var(--serif);
}
.brand-text { display: grid; gap: 4px; }
.brand-text strong { font-size: 15px; font-weight: 650; letter-spacing: .08em; line-height: 1.08; }
.brand-text > span { color: var(--muted); font: 11px/1 var(--mono); letter-spacing: .1em; }

.share-button, .source-button {
  border: 0;
  background: transparent;
  padding-inline: 0;
  min-height: 44px;
  color: var(--muted);
  font-size: .875rem;
}
.share-button { display: inline-flex; align-items: center; gap: 7px; }
.share-button svg, .close-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.book { display: flex; flex: 1 0 auto; touch-action: pan-y pinch-zoom; }
.page { width: 100%; }
.spread {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(30px, 5.4vw, 92px);
  padding-block: clamp(30px, 6vh, 76px);
}
.page.turning { animation: turn-page .25s ease-out both; }
@keyframes turn-page {
  from { opacity: 0; transform: translateX(var(--turn, 9px)); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font: 500 .875rem/1.4 var(--mono), var(--sans);
  letter-spacing: .08em;
}
.date-rule { display: inline-block; width: 25px; height: 1px; background: currentColor; opacity: .65; }
.cover-copy h1, .day-copy h2, .planner-copy h2, .sheet-inner h2 {
  font-family: var(--serif);
  font-weight: 700;
  outline: none;
}
.cover-copy h1 {
  margin-block: 21px 20px;
  font-size: clamp(56px, 6.1vw, 92px);
  line-height: 1.13;
  letter-spacing: -.07em;
}
.cover-copy em { color: var(--red); font-style: normal; }
.invitation {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.23rem);
  line-height: 1.8;
  letter-spacing: .035em;
}
.cover-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; margin-top: 29px; }
.memory-button {
  min-height: 44px;
  padding: 5px 1px;
  border: 0;
  color: var(--red-dark);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: #b98b7c;
  text-underline-offset: 5px;
  font-size: .9375rem;
}
.primary, .secondary {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background .16s ease, border-color .16s ease;
}
.primary { background: var(--red); color: #fffaf0; }
.secondary { color: var(--ink); background: transparent; border-color: var(--line); }

.folio { min-width: 0; }
.cover .folio {
  padding: 9px 9px 0;
  border: 1px solid #e6dccd;
  border-radius: 4px;
  background: #fffbf3;
  box-shadow: 0 12px 36px rgb(78 52 35 / .10);
}
.cover .folio figcaption { align-items: center; min-height: 39px; padding: 0 4px; }
.photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #dbd0bc;
  border-radius: 3px;
  height: clamp(330px, 58vh, 635px);
}
.photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.cover-photo img {
  object-position: 57% 45%;
  filter: sepia(.13) saturate(.9);
}
.folio figcaption {
  min-height: 26px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .8125rem;
  letter-spacing: .06em;
}
.folio figcaption i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 4px 2px 1px;
  background: var(--red);
  border-radius: 50%;
}

.day-copy h2, .planner-copy h2 { margin: 13px 0 9px; font-size: clamp(2.6rem, 4.75vw, 4.9rem); line-height: 1.18; letter-spacing: -.055em; }
.day-intro { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.open-stop {
  width: 21px;
  height: 21px;
  border: 1px solid #c3b9a8;
  border-radius: 50%;
  position: relative;
  color: var(--muted);
}
.open-stop::before, .open-stop::after {
  content: "";
  position: absolute;
  top: calc(50% - .5px);
  left: calc(50% - 3.5px);
  width: 7px;
  height: 1px;
  background: currentColor;
}
.open-stop::after { transform: rotate(90deg); }
.choices {
  display: flex;
  gap: 4px;
  width: fit-content;
  padding: 3px;
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--tint);
}
.choices button {
  min-height: 40px;
  padding: 5px 13px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font-size: .875rem;
}
.choices button[aria-pressed="true"] { color: var(--red-dark); border-color: var(--line); background: var(--paper); font-weight: 650; }

.packing-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .875rem;
}
.packing-head output { font-family: var(--mono); color: var(--red); }
.packing { border-top: 1px solid var(--line); }
.packing label {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  line-height: 1.35;
}
.packing input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--red); }
.packing input:checked + span { color: var(--muted); text-decoration: line-through; }
.weather {
  padding: clamp(16px, 3.4vw, 44px);
  background: #ebe5d9;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.weather-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.weather h3 { font: 700 clamp(1.2rem, 2.3vw, 1.8rem)/1.25 var(--serif); }
.weather a { color: var(--red-dark); font-size: .875rem; text-underline-offset: 4px; }
.weather-days { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 18px; }
.weather-days > div { display: grid; gap: 5px; }
.weather-days > div + div { border-left: 1px solid #d3c8b9; padding-left: 14px; }
.weather-days span { color: var(--muted); font-size: .875rem; }
.weather-days strong { font: 500 clamp(1.36rem, 3.8vw, 3.1rem)/1.2 var(--mono); letter-spacing: -.075em; }
.weather-days small { font: 500 .875rem/1.2 var(--sans); margin-left: 3px; }
.weather-asof { display: block; margin-top: 5px; font-size: .8125rem; color: var(--muted); }
.prep-links { margin-top: 10px; }
.prep-links button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  min-height: 47px;
  padding: 4px 8px 4px 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-size: .9375rem;
}
.prep-links .note-link { color: var(--red-dark); }

.footer {
  position: relative;
  min-height: 74px;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.pagination { display: flex; align-items: center; gap: clamp(2px, 1.3vw, 20px); }
.pagination a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 49px;
  min-height: 48px;
  padding: 3px 5px;
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.pagination a:first-child { margin-left: -5px; }
.pagination a[aria-current="page"] { color: var(--red); font-weight: 650; }
.pagination a[aria-current="page"]::after {
  position: absolute;
  content: "";
  width: 17px;
  height: 2px;
  bottom: 4px;
  background: currentColor;
}
.swipe-hint { color: var(--muted); font-size: .8125rem; margin-left: auto; margin-right: 27px; }

body.sheet-open { overflow: hidden; }
body.sheet-open .shell { pointer-events: none; }
dialog {
  border: 1px solid var(--line);
  width: min(520px, calc(100% - 32px));
  max-height: 88vh;
  max-height: 88dvh;
  padding: 0;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop { background: rgb(35 29 23 / .52); }
dialog[data-fallback][open] {
  display: block;
  position: fixed;
  z-index: 2;
  inset: 0;
  margin: auto;
  height: max-content;
  box-shadow: 0 0 0 100vmax rgb(35 29 23 / .52);
}
.sheet-inner { position: relative; padding: 28px; }
.sheet-inner .eyebrow { padding-right: 40px; }
.close-button {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}
.sheet-inner h2 { margin: 11px 0 16px; font-size: clamp(1.9rem, 6vw, 2.8rem); letter-spacing: -.045em; line-height: 1.2; }
.sheet-inner p:not(.eyebrow), .sheet-inner li, .sheet-inner dd { line-height: 1.65; }
.sheet-inner p + p { margin-top: 10px; }
.sheet-inner dl { margin: 0 0 13px; border-top: 1px solid var(--line); }
.sheet-inner dl > div {
  display: grid;
  grid-template-columns: 4em minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.sheet-inner dt { color: var(--muted); font-size: .875rem; line-height: 1.65; }
.sheet-inner dd { margin: 0; }
.sheet-inner .actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.sheet-inner .sheet-detail { color: var(--muted); font-size: .875rem; }
.source-list { padding-left: 1.25em; margin: 0 0 16px; }
.source-list li + li { margin-top: 5px; }
.source-list a { text-underline-offset: 3px; }
.sheet-inner h3 { margin-bottom: 7px; font: 700 1.15rem/1.4 var(--serif); }
.postcard-preview {
  display: grid;
  place-items: center;
  margin: 14px 0;
  min-height: 122px;
  padding: 16px;
  border: 1px solid #dfcdbc;
  border-radius: 4px;
  background: #eee3d4;
  color: var(--red-dark);
  text-align: center;
}
.postcard-preview strong { display: block; font: 700 1.5rem/1.4 var(--serif); }
.postcard-preview span { font: .875rem/1.8 var(--mono); letter-spacing: .11em; }
.postcard-preview:has(img:not([hidden])) { padding: 7px; min-height: 0; }
.postcard-preview img { max-height: 45vh; object-fit: contain; }
.postcard-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.postcard-input:focus-visible + .primary { outline: 2px solid var(--red); outline-offset: 3px; }
label[for="postcard-file"] { cursor: pointer; }
#share-field, #copy-field {
  width: 100%;
  margin-top: 13px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fffaf1;
  color: var(--ink);
  font-size: 1rem;
}
.announcement {
  position: fixed;
  z-index: 3;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  padding: 9px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: .875rem;
  pointer-events: none;
}
.announcement:empty { display: none; }
.no-script { margin: 12px 24px; color: var(--muted); }

@media (hover: hover) {
  .share-button:hover, .source-button:hover, .pagination a:hover { color: var(--red); }
  .primary:hover { background: var(--red-dark); }
  .secondary:hover, .spot-details:hover, .prep-links button:hover { background: var(--tint); }
  .close-button:hover { background: var(--tint); color: var(--ink); }
}

@media (max-width: 760px) {
  .shell { padding-inline: clamp(17px, 5.2vw, 29px); }
  .masthead { min-height: 61px; }
  .brand-mark { width: 33px; height: 33px; font-size: 21px; }
  .brand-text { gap: 3px; }
  .brand-text > span { font-size: 10px; }
  .spread { grid-template-columns: minmax(0, 1fr); gap: 15px; align-content: start; padding-block: 17px 12px; }
  .cover { grid-template-rows: auto minmax(145px, 1fr); gap: 17px; }
  .folio { display: grid; grid-template-rows: minmax(0, 1fr) auto; align-self: stretch; }
  .cover-copy h1 { font-size: clamp(3rem, 13vw, 4.7rem); margin-block: 9px 10px; line-height: 1.07; }
  .invitation { font-size: 1rem; line-height: 1.55; }
  .cover-actions { margin-top: 13px; gap: 7px 11px; }
  .cover .folio { padding: 6px 6px 0; }
  .cover .folio figcaption { min-height: 34px; padding: 0 3px; }
  .cover-photo { min-height: clamp(144px, 24svh, 270px); height: auto; }
  .cover-photo img { object-position: 56% 43%; }
  .folio figcaption { padding-top: 5px; min-height: 20px; letter-spacing: .035em; }
  .day-copy h2, .planner-copy h2 { margin: 6px 0 4px; font-size: clamp(2.4rem, 9vw, 3.55rem); }
  .day-intro { line-height: 1.4; }
  .choices { margin-top: 9px; padding: 2px; }
  .choices button { min-height: 39px; }
  .packing-head { margin-top: 13px; }
  .packing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 13px; }
  .packing label, .prep-links button { min-height: 44px; }
  .packing label { gap: 7px; font-size: .875rem; }
  .packing input { width: 17px; height: 17px; }
  .weather-days { margin-block: 10px; }
  .footer { min-height: 57px; }
  .pagination a { min-width: 46px; font-size: .875rem; }
  .swipe-hint { font-size: .75rem; margin-right: 0; }
  .sheet-inner { padding: 22px 20px; }
  dialog { margin: auto auto max(10px, env(safe-area-inset-bottom)); }
  dialog[data-fallback][open] { inset: auto 0 max(10px, env(safe-area-inset-bottom)); margin: 0 auto; }
}
@media (max-width: 359px) {
  .swipe-hint { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .masthead { min-height: 52px; }
  .footer { min-height: 50px; }
  .spread { gap: 10px; padding-block: 12px 8px; }
  .cover-photo { min-height: 135px; }
  .prep .weather { padding-block: 12px; }
  .prep-links { margin-top: 4px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .spread { gap: 9px; padding-block: 9px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.plan-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}
.plan-choices button {
  display: grid;
  gap: 4px;
  min-height: 67px;
  padding: 7px 4px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
}
.plan-choices strong { font-size: .9375rem; line-height: 1.25; }
.plan-choices small { color: var(--muted); font-size: .8125rem; }
.plan-choices button[aria-pressed="true"] { color: var(--red-dark); background: #efe2d6; border-color: #bd9180; }
.drive-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 13px;
  border-block: 1px solid var(--line);
}
.drive-times button {
  display: grid;
  gap: 4px;
  min-height: 61px;
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: var(--red-dark);
  text-align: left;
}
.drive-times button + button { border-left: 1px solid var(--line); }
.drive-times span { color: var(--muted); font-size: .8125rem; }
.drive-times strong { font-size: 1rem; }
.planner-photo { margin-top: 18px; }
.planner-photo img {
  height: clamp(110px, 22vh, 200px);
  object-fit: cover;
  object-position: center 52%;
  border-radius: 3px;
  filter: sepia(.1) saturate(.88);
}
.planner-photo figcaption { padding-top: 6px; color: var(--muted); font-size: .8125rem; }
.planner-aside { min-width: 0; align-self: center; }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.day-choices { margin-top: 0; }
.route-note { margin-top: 8px; color: var(--muted); line-height: 1.45; font-size: .875rem; }
.planner-list { padding: 0; margin: 11px 0 0; list-style: none; border-top: 1px solid var(--line); }
.planner-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 57px;
  border-bottom: 1px solid var(--line);
}
.route-row { grid-template-columns: 18px minmax(0, 1fr) auto; }
.route-index { color: var(--red-dark); font: .875rem/1.2 var(--mono); }
.spot-details {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  align-content: center;
  padding: 3px 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.spot-details strong { font-size: 1rem; line-height: 1.25; font-weight: 650; }
.spot-details small { color: var(--muted); font-size: .8125rem; line-height: 1.24; }
.row-actions { display: flex; }
.row-action, .spot-add, .panel-button {
  min-width: 39px;
  min-height: 44px;
  border: 0;
  padding: 4px 3px;
  background: transparent;
  color: var(--red-dark);
  font-size: .8125rem;
  white-space: nowrap;
}
.row-action:disabled, .panel-button:disabled { opacity: .4; cursor: default; }
.spot-add {
  min-width: 57px;
  min-height: 44px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.spot-add[aria-pressed="true"] { background: var(--tint); border-color: #c9b6a8; }
.closed-text { padding: 0 8px; font-size: .8125rem; color: var(--muted); }
.empty-route { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.planner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.route-pagination { display: flex; gap: 13px; align-items: center; justify-content: flex-end; font-size: .8125rem; }
.route-pagination + .planner-actions { margin-top: 9px; }
.catalog-tabs button { padding-inline: 11px; }

@media (max-width: 760px) {
  .planner-photo { display: none; }
  .plan-choices { margin-top: 11px; }
  .plan-choices button { min-height: 52px; gap: 2px; }
  .drive-times { margin-top: 9px; }
  .drive-times button { min-height: 46px; gap: 2px; padding-block: 4px; }
  .day-choices { margin-top: 0; }
  .planner-row { min-height: 52px; gap: 6px; }
  .planner-list { margin-top: 7px; }
}
@media (max-width: 359px) {
  .planner-row { gap: 4px; }
  .route-row { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .row-action { min-width: 35px; }
  .catalog-tabs button { padding-inline: 9px; }
  .plan-choices strong { font-size: .875rem; }
}
@media (max-width: 760px) and (max-height: 670px) {
  .spread.planner { gap: 7px; padding-block: 7px 5px; }
  .planner-copy .eyebrow { display: none; }
  .planner-copy h2 { font-size: 2.1rem; }
  .planner .choices button { min-height: 34px; }
  .planner-actions, .route-pagination + .planner-actions { margin-top: 7px; }
  .route-note { margin-top: 5px; }
  .planner-row { min-height: 46px; }
  .route-pagination button { min-height: 34px; }
}
