/* =========================================================
   云南风味档案 · Yunnan Flavor Atlas
   Palette: rice paper / moss jade / Dian clay / tea gold
   ========================================================= */

:root {
  --paper: #f3ebda;
  --paper-2: #fbf6ea;
  --paper-3: #e7dcc5;
  --ink: #172b24;
  --ink-2: #40554b;
  --muted: #6f7d72;
  --jade: #123d31;
  --jade-2: #1c5543;
  --jade-3: #2b6a53;
  --clay: #b64a30;
  --clay-2: #d46a48;
  --gold: #c99a42;
  --gold-2: #e6c078;
  --rose: #a74d5f;
  --line: rgba(23, 43, 36, 0.14);
  --line-strong: rgba(23, 43, 36, 0.26);
  --shadow-soft: 0 20px 50px rgba(36, 48, 38, 0.09);
  --shadow-card: 0 24px 60px rgba(36, 48, 38, 0.13);
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--clay);
  color: var(--paper-2);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-2);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(23, 43, 36, 0.55) 0.55px, transparent 0.7px),
    radial-gradient(rgba(182, 74, 48, 0.35) 0.5px, transparent 0.65px);
  background-size: 5px 5px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(243, 235, 218, 0.84);
  backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(243, 235, 218, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(35, 48, 38, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-seal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--clay);
  color: #fdf7ea;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    0 7px 18px rgba(182, 74, 48, 0.2);
  transform: rotate(-3deg);
}

.brand-seal.small {
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  border-radius: 9px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.24em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.favorites-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.favorites-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.favorites-btn b {
  min-width: 21px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--jade);
  color: var(--paper-2);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.favorites-btn:hover,
.favorites-btn[aria-pressed="true"] {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--paper-2);
}

.favorites-btn[aria-pressed="true"] b {
  background: var(--gold-2);
  color: var(--jade);
}

/* =========================
   Hero
   ========================= */

.hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 32px 128px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
}

.hero::after {
  content: "YUNNAN";
  position: absolute;
  right: 30px;
  bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 8.5rem);
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(23, 43, 36, 0.08);
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 16px;
  animation: riseIn 0.85s var(--ease) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--clay);
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow-dark {
  color: var(--clay);
}

.eyebrow-light {
  color: var(--gold-2);
}

.hero-title {
  margin: 24px 0 28px;
  font-family: var(--serif);
  font-size: clamp(5.4rem, 10.6vw, 10.2rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.hero-title span {
  display: block;
}

.hero-title-accent {
  margin-left: 0.4em;
  margin-top: 0.12em;
  color: var(--clay);
  text-shadow: 3px 3px 0 rgba(182, 74, 48, 0.08);
}

.hero-lead {
  max-width: 480px;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 2;
  letter-spacing: 0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn span {
  font-size: 1rem;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--jade);
  color: var(--paper-2);
}

.btn-primary:hover {
  background: var(--clay);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--jade);
  background: var(--paper-2);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--jade);
  background: var(--jade);
  color: var(--paper-2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 440px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
}

.hero-stats dd {
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 650;
  line-height: 1;
  color: var(--ink);
}

.hero-stats dd small {
  margin-left: 3px;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-side-note {
  display: none;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 620px;
  animation: heroVisualIn 1s var(--ease) 0.12s both;
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  background:
    linear-gradient(135deg, #c9bca3, #8f9a82);
  border: 6px solid var(--paper-2);
  box-shadow: 0 28px 70px rgba(33, 46, 36, 0.18);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.hero-photo:hover img {
  transform: scale(1.035);
}

.hero-photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 0 10px 0 0;
  background: rgba(18, 61, 49, 0.8);
  color: rgba(251, 246, 234, 0.92);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.hero-photo figcaption span {
  color: var(--gold-2);
  font-family: var(--serif);
}

.hero-photo-main {
  top: 7%;
  right: 0;
  width: 69%;
  height: 79%;
  border-radius: 250px 250px 20px 20px;
  z-index: 2;
}

.hero-photo-main img {
  object-position: center 55%;
}

.hero-photo-snow {
  top: 0;
  left: 0;
  width: 40%;
  height: 36%;
  border-radius: 16px 92px 16px 16px;
  transform: rotate(-3.5deg);
  z-index: 3;
}

.hero-photo-snow img {
  object-position: center 46%;
}

.hero-photo-lake {
  left: 4%;
  bottom: 0;
  width: 49%;
  height: 31%;
  border-radius: 18px;
  transform: rotate(2.5deg);
  z-index: 4;
}

.hero-photo-lake img {
  object-position: center 58%;
}

.hero-stamp {
  position: absolute;
  right: 0;
  bottom: 4%;
  z-index: 5;
  width: 124px;
  height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1.5px solid var(--clay);
  border-radius: 50%;
  background: rgba(251, 246, 234, 0.84);
  color: var(--clay);
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  line-height: 1.45;
  transform: rotate(-8deg);
  box-shadow: 0 12px 30px rgba(72, 48, 34, 0.12);
  backdrop-filter: blur(6px);
}

.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dotted rgba(182, 74, 48, 0.65);
  border-radius: 50%;
}

.hero-stamp small {
  font-family: var(--sans);
  font-size: 0.53rem;
  letter-spacing: 0.24em;
}

.hero-quote {
  position: absolute;
  top: 5%;
  left: 38%;
  z-index: 6;
  width: 225px;
  padding: 13px 16px;
  border-left: 2px solid var(--clay);
  background: rgba(251, 246, 234, 0.9);
  box-shadow: 0 16px 36px rgba(33, 46, 36, 0.12);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 0.85rem;
  line-height: 1.75;
  transform: rotate(2deg);
  backdrop-filter: blur(8px);
}

.hero-quote cite {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.12em;
}

.photo-failed {
  background:
    radial-gradient(circle at 30% 20%, rgba(230, 192, 120, 0.35), transparent 45%),
    linear-gradient(135deg, var(--jade-3), var(--jade));
}

.photo-failed img {
  opacity: 0;
}

.photo-failed::after {
  content: "实景图片暂时走丢了";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(251, 246, 234, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

/* =========================
   Search dock
   ========================= */

.search-dock {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: -82px auto 0;
  padding: 0 24px;
}

.search-panel {
  position: relative;
  overflow: hidden;
  padding: 30px 34px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(230, 192, 120, 0.18), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(43, 106, 83, 0.44), transparent 38%),
    linear-gradient(138deg, #123d31 0%, #1b5744 57%, #174837 100%);
  color: var(--paper-2);
  box-shadow: 0 32px 70px rgba(18, 61, 49, 0.24);
  animation: riseIn 0.8s var(--ease) 0.2s both;
}

.search-panel::before {
  content: "";
  position: absolute;
  top: -85px;
  right: -48px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(230, 192, 120, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.search-panel::after {
  content: "";
  position: absolute;
  right: 44px;
  bottom: -92px;
  width: 210px;
  height: 210px;
  border: 1px dashed rgba(251, 246, 234, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.search-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.search-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-orbit {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--gold-2);
  border-radius: 50%;
}

.search-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
  transform: translate(-50%, -50%);
}

.search-heading h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.search-hint {
  color: rgba(251, 246, 234, 0.56);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-top: 4px;
}

.search-hint kbd {
  display: inline-block;
  min-width: 21px;
  padding: 2px 6px;
  border: 1px solid rgba(251, 246, 234, 0.28);
  border-radius: 5px;
  background: rgba(251, 246, 234, 0.06);
  color: rgba(251, 246, 234, 0.9);
  font-family: var(--sans);
  font-size: 0.64rem;
  text-align: center;
}

.search-form {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 19px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.7;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 58px;
  padding: 0 52px 0 55px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.96rem;
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  -webkit-appearance: none;
}

.search-field input::placeholder {
  color: #8a9386;
}

.search-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 66, 0.2);
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--ink-2);
}

.clear-search svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.clear-search:hover {
  background: var(--clay);
  color: var(--paper-2);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 164px;
  padding: 0 24px;
  border: 0;
  border-radius: 15px;
  background: var(--gold-2);
  color: var(--jade);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.search-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.3s var(--ease);
}

.search-submit:hover {
  background: #f0d396;
  transform: translateY(-1px);
}

.search-submit:hover svg {
  transform: translateX(3px);
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  box-shadow: 0 24px 48px rgba(18, 61, 49, 0.22);
}

.suggestion-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.suggestion-item:hover,
.suggestion-item.is-active {
  background: var(--paper-3);
}

.suggestion-item strong {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
}

.suggestion-item small {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
}

.quick-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 17px;
}

.quick-label {
  color: rgba(251, 246, 234, 0.54);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.72rem;
  line-height: 1.5;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.chip:hover {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--paper-2);
}

.chip-light {
  border-color: rgba(251, 246, 234, 0.26);
  color: rgba(251, 246, 234, 0.82);
}

.chip-light:hover {
  background: var(--paper-2);
  border-color: var(--paper-2);
  color: var(--jade);
}

.assistant-reply {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 18px 38px rgba(10, 34, 25, 0.18);
  animation: riseIn 0.45s var(--ease) both;
}

.assistant-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--jade);
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.assistant-mark i {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper-2);
  border-radius: 50%;
  background: var(--gold);
}

.assistant-kicker {
  display: block;
  color: var(--clay);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.assistant-copy h3 {
  margin: 2px 0 4px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
}

.assistant-copy p {
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.8;
}

.assistant-copy .chip {
  border-color: var(--line);
  color: var(--ink-2);
  background: var(--paper);
}

.assistant-copy .chip:hover {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--paper-2);
}

/* =========================
   Shared section furniture
   ========================= */

.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 32px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.1vw, 3.15rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}

/* =========================
   Daily card
   ========================= */

.daily-card {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 382px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.daily-media {
  position: relative;
  min-height: 382px;
  background: var(--paper-3);
}

.daily-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.daily-card:hover .daily-media img {
  transform: scale(1.025);
}

.daily-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 29, 22, 0.52));
  pointer-events: none;
}

.daily-seal {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(251, 246, 234, 0.4);
  border-radius: 999px;
  background: rgba(18, 61, 49, 0.7);
  color: var(--paper-2);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
}

.daily-seal::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
}

.daily-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: rgba(251, 246, 234, 0.8);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.daily-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 46px;
}

.daily-copy::before {
  content: "“";
  position: absolute;
  top: 14px;
  right: 34px;
  color: var(--tone, var(--clay));
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
}

.daily-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--tone, var(--clay));
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.daily-kicker span {
  color: var(--muted);
  font-weight: 500;
}

.daily-copy h3 {
  margin: 10px 0 2px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 2.7rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.daily-english {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.daily-copy > p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.9;
}

.daily-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.72rem;
}

.daily-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.daily-meta b {
  color: var(--ink);
  font-weight: 600;
}

.daily-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.daily-actions .btn {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.76rem;
}

.daily-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.74rem;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.daily-shuffle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform 0.45s var(--ease);
}

.daily-shuffle:hover {
  border-color: var(--clay);
  color: var(--clay);
  background: rgba(182, 74, 48, 0.05);
}

.daily-shuffle:hover svg {
  transform: rotate(180deg);
}

/* tone accents */
.tone-clay { --tone: #b64a30; --tone-soft: #e9c6b8; }
.tone-jade { --tone: #2b6a53; --tone-soft: #c3d6c3; }
.tone-gold { --tone: #a97b27; --tone-soft: #ead7ab; }
.tone-plum { --tone: #8c4257; --tone-soft: #dfc3cb; }
.tone-rose { --tone: #a74d5f; --tone-soft: #e8c9d0; }
.tone-pine { --tone: #345c43; --tone-soft: #c5d2be; }

/* =========================
   Explore
   ========================= */

.explore {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 44px 78px;
  border-radius: 44px;
  background:
    radial-gradient(circle at 100% 0%, rgba(230, 192, 120, 0.12), transparent 30%),
    #eee4d0;
}

.explore-heading {
  margin-bottom: 24px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 550;
  white-space: nowrap;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.tab small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.tab:hover {
  border-color: var(--line);
  background: rgba(251, 246, 234, 0.65);
}

.tab.is-active {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--paper-2);
}

.tab.is-active small {
  color: var(--gold-2);
}

.filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.select-wrap {
  position: relative;
  display: inline-flex;
}

.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 37px;
  padding: 7px 33px 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.74rem;
  cursor: pointer;
  outline: none;
}

.select-wrap select:focus {
  border-color: var(--clay);
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.8;
  pointer-events: none;
}

.filter-favorite {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.74rem;
  white-space: nowrap;
}

.filter-favorite svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.filter-favorite:hover,
.filter-favorite[aria-pressed="true"] {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--paper-2);
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.7rem;
}

.filter-chip button {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--ink-2);
  font-size: 0.68rem;
  line-height: 1;
}

.filter-chip button:hover {
  background: var(--clay);
  color: var(--paper-2);
}

.clear-all {
  border: 0;
  background: transparent;
  color: var(--clay);
  font-size: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.food-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  box-shadow: 0 4px 0 rgba(23, 43, 36, 0);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
  animation: cardIn 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

.food-card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 43, 36, 0.24);
  box-shadow: var(--shadow-card);
}

.food-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 246, 234, 0.16), transparent 38%),
    linear-gradient(145deg, var(--jade-3), var(--jade));
}

.food-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.3s ease;
}

.food-card:hover .food-media img {
  transform: scale(1.055);
}

.food-media.no-photo img {
  display: none;
}

.food-media.no-photo::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(251, 246, 234, 0.24);
  border-radius: 14px;
  pointer-events: none;
}

.food-media.no-photo::after {
  content: attr(data-glyph);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  color: rgba(251, 246, 234, 0.16);
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.no-photo-label {
  position: absolute;
  left: 50%;
  bottom: 16%;
  z-index: 2;
  display: none;
  width: max-content;
  max-width: 80%;
  transform: translateX(-50%);
  color: rgba(251, 246, 234, 0.82);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-align: center;
}

.food-media.no-photo .no-photo-label {
  display: block;
}

.daily-media.no-photo {
  background:
    radial-gradient(circle at 30% 20%, rgba(230, 192, 120, 0.2), transparent 38%),
    linear-gradient(145deg, var(--jade-3), var(--jade));
}

.daily-media.no-photo::before {
  content: attr(data-glyph);
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -55%);
  color: rgba(251, 246, 234, 0.15);
  font-family: var(--serif);
  font-size: 10rem;
  font-weight: 700;
  line-height: 1;
}

.daily-media.no-photo img {
  display: none;
}

.daily-media.no-photo .no-photo-label {
  display: block;
  bottom: 20%;
}

.card-badges {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 70px);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  backdrop-filter: blur(10px);
}

.pill-category {
  background: rgba(18, 61, 49, 0.84);
  color: var(--paper-2);
}

.pill-season {
  background: rgba(251, 246, 234, 0.88);
  color: var(--ink-2);
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251, 246, 234, 0.42);
  border-radius: 50%;
  background: rgba(251, 246, 234, 0.82);
  color: var(--ink);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.fav-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.fav-btn:hover {
  transform: scale(1.07);
  background: var(--paper-2);
}

.fav-btn.is-favorite {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper-2);
}

.fav-btn.is-favorite svg {
  fill: currentColor;
}

.food-content {
  padding: 20px 21px 17px;
}

.food-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.food-kicker span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--tone, var(--clay));
  font-weight: 650;
}

.food-kicker span:first-child::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.food-title {
  margin: 6px 0 2px;
  font-family: var(--serif);
  font-size: 1.48rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.food-english {
  color: #8a9386;
  font-family: var(--serif);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.food-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.25em;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.75;
}

.food-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.food-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.food-tag {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.61rem;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}

.card-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.food-card:hover .card-arrow {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--paper-2);
  transform: rotate(-35deg);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 40px;
  text-align: center;
}

.empty-mark {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--clay);
  font-family: var(--serif);
  font-size: 2.3rem;
  opacity: 0.8;
}

.empty-state h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
}

.empty-state p {
  max-width: 400px;
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-state .chip {
  background: var(--paper-2);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(23, 43, 36, 0.08);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(251, 246, 234, 0.5), transparent);
  animation: shimmer 1.4s infinite;
}

.skeleton-line {
  width: 100%;
  height: 13px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 35%;
}

.skeleton-title {
  width: 65%;
  height: 34px;
  margin-bottom: 18px;
}

.skeleton-media {
  background: rgba(23, 43, 36, 0.08);
}

.skeleton-card {
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-2);
}

.skeleton-card .food-media {
  background: rgba(23, 43, 36, 0.08);
}

.skeleton-card .food-content {
  padding-top: 22px;
}

/* =========================
   Scenery
   ========================= */

.scenery {
  position: relative;
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 76px 44px 58px;
  overflow: hidden;
  border-radius: 44px;
  background:
    radial-gradient(circle at 82% 5%, rgba(230, 192, 120, 0.13), transparent 27%),
    radial-gradient(circle at 6% 100%, rgba(43, 106, 83, 0.46), transparent 36%),
    var(--jade);
  color: var(--paper-2);
}

.scenery::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -100px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(230, 192, 120, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.scenery-heading {
  position: relative;
  z-index: 2;
}

.scenery-heading > p {
  color: rgba(251, 246, 234, 0.62);
}

.scenery-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 252px 252px;
  gap: 16px;
}

.scenery-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--jade-2);
  isolation: isolate;
  cursor: pointer;
}

.scenery-card:first-child {
  grid-row: span 2;
}

.scenery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.scenery-card:hover img {
  transform: scale(1.045);
}

.scenery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 27, 20, 0.02) 30%, rgba(8, 27, 20, 0.82) 100%);
}

.scenery-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.scenery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.scenery-meta span {
  padding: 3px 8px;
  border: 1px solid rgba(251, 246, 234, 0.28);
  border-radius: 999px;
  background: rgba(18, 61, 49, 0.35);
  color: rgba(251, 246, 234, 0.82);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.scenery-content h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.scenery-card:first-child .scenery-content h3 {
  font-size: 2.2rem;
}

.scenery-content p {
  max-width: 470px;
  margin-top: 6px;
  color: rgba(251, 246, 234, 0.72);
  font-size: 0.78rem;
  line-height: 1.75;
}

.scenery-card:not(:first-child) .scenery-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scenery-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--gold-2);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.scenery-route svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform 0.3s var(--ease);
}

.scenery-card:hover .scenery-route svg {
  transform: translateX(4px);
}

.scenery-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(251, 246, 234, 0.16);
}

.scenery-foot p {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-2);
}

.scenery-foot span {
  color: rgba(251, 246, 234, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

/* =========================
   About
   ========================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 58px;
  align-items: start;
}

.about-main h2 {
  margin: 9px 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.05rem);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.about-main > p {
  max-width: 620px;
  margin-bottom: 13px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.95;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-meta span {
  color: var(--muted);
  font-size: 0.72rem;
}

.about-meta b {
  margin-right: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
}

.about-links a {
  color: var(--clay);
  font-size: 0.76rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.about-notes {
  display: grid;
  gap: 12px;
}

.note-card {
  position: relative;
  padding: 21px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
}

.note-index {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--clay);
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.note-card h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 650;
}

.note-card p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.85;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  margin-top: 30px;
  padding: 36px 32px;
  background: var(--jade);
  color: var(--paper-2);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.footer-brand p {
  color: rgba(251, 246, 234, 0.5);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.footer-note {
  color: rgba(251, 246, 234, 0.6);
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(251, 246, 234, 0.46);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.footer-links a {
  color: rgba(251, 246, 234, 0.78);
}

.footer-links a:hover {
  color: var(--gold-2);
}

/* =========================
   Detail drawer
   ========================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(8, 25, 18, 0.76);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.28s ease both;
}

.detail-shell {
  position: relative;
  width: min(1120px, 100%);
  height: min(88vh, 860px);
}

.detail-drawer {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper-2);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.36);
  animation: drawerIn 0.45s var(--ease) both;
}

.detail-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 8;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251, 246, 234, 0.24);
  border-radius: 50%;
  background: rgba(18, 61, 49, 0.9);
  color: var(--paper-2);
  box-shadow: 0 8px 20px rgba(23, 43, 36, 0.2);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.detail-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-close:hover {
  background: var(--clay);
  color: var(--paper-2);
  transform: rotate(90deg);
}

.detail-media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 20%, rgba(230, 192, 120, 0.18), transparent 38%),
    linear-gradient(145deg, var(--jade-3), var(--jade));
}

.detail-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 20, 0.04) 50%, rgba(8, 27, 20, 0.72) 100%);
  pointer-events: none;
}

.detail-media-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-media .pill {
  background: rgba(251, 246, 234, 0.9);
  color: var(--ink-2);
}

.detail-media .pill-category {
  background: rgba(18, 61, 49, 0.86);
  color: var(--paper-2);
}

.detail-credit {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  color: rgba(251, 246, 234, 0.66);
  font-size: 0.58rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.detail-credit a {
  color: rgba(251, 246, 234, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-media-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(251, 246, 234, 0.72);
  text-align: center;
}

.detail-media.no-media .detail-media-empty {
  display: flex;
}

.detail-media.no-media img {
  display: none;
}

.detail-media-empty strong {
  font-family: var(--serif);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.32;
}

.detail-media-empty span {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.detail-content {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 52px 48px 44px;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-3) transparent;
}

.detail-content::-webkit-scrollbar {
  width: 8px;
}

.detail-content::-webkit-scrollbar-thumb {
  border: 2px solid var(--paper-2);
  border-radius: 8px;
  background: var(--paper-3);
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tone, var(--clay));
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.detail-kicker i {
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.detail-kicker span {
  color: var(--muted);
  font-weight: 500;
}

.detail-content h2 {
  margin: 9px 0 2px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-english {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.detail-summary {
  margin-top: 17px;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.detail-tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.65rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.detail-fav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.74rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.detail-fav svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.detail-fav:hover,
.detail-fav.is-favorite {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper-2);
}

.detail-fav.is-favorite svg {
  fill: currentColor;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.detail-meta-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.detail-meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.detail-meta-item strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 650;
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 650;
}

.detail-section h3::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tone, var(--clay));
}

.detail-section > p {
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.92;
}

.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ingredient-list span {
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.72rem;
}

.step-list {
  display: grid;
  gap: 9px;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.8;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--tone, var(--clay));
  font-family: var(--serif);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.story-card {
  padding: 16px 18px;
  border-left: 2px solid var(--tone, var(--clay));
  border-radius: 0 12px 12px 0;
  background: var(--paper);
}

.story-card p {
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.9;
}

.tip-list {
  display: grid;
  gap: 7px;
  list-style: none;
}

.tip-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-2);
  font-size: 0.8rem;
  line-height: 1.8;
}

.tip-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  top: -1px;
  color: var(--clay);
  font-size: 1.4rem;
}

.source-list {
  display: grid;
  gap: 7px;
  list-style: none;
}

.source-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clay);
  font-size: 0.76rem;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-list a::before {
  content: "↗";
  text-decoration: none;
  font-size: 0.72rem;
}

.related-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.related-head h3 {
  font-family: var(--serif);
  font-size: 1rem;
}

.related-head span {
  color: var(--muted);
  font-size: 0.62rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.related-card {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  text-align: left;
  padding: 0;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.related-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.related-card-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--jade-3);
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-body {
  padding: 8px 9px 9px;
}

.related-card-body strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.related-card-body span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.58rem;
}

.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.loading-ring {
  width: 32px;
  height: 32px;
  border: 2px solid var(--paper-3);
  border-top-color: var(--clay);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =========================
   Toast / back to top
   ========================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 400;
  max-width: calc(100vw - 40px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-2);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(251, 246, 234, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 43, 36, 0.14);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.back-to-top svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.back-to-top:hover {
  background: var(--jade);
  color: var(--paper-2);
  transform: translateY(-2px);
}

/* =========================
   Animations
   ========================= */

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVisualIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
  .hero {
    padding-left: 26px;
    padding-right: 26px;
  }

  .hero-visual {
    min-height: 570px;
  }

  .hero-quote {
    left: 34%;
    width: 205px;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .filter-actions {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 38px;
    padding-bottom: 108px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(5.4rem, 16vw, 8rem);
  }

  .hero-visual {
    width: min(100%, 660px);
    min-height: 540px;
    margin-left: auto;
  }

  .hero-side-note {
    display: none;
  }

  .search-dock {
    margin-top: -68px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-heading > p {
    max-width: 560px;
  }

  .daily-card {
    grid-template-columns: 1fr;
  }

  .daily-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .daily-copy {
    padding: 32px 34px 36px;
  }

  .daily-card:hover .daily-media img {
    transform: none;
  }

  .explore {
    margin: 0 16px;
    padding: 54px 28px 62px;
    border-radius: 34px;
  }

  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenery {
    margin: 14px 16px 0;
    padding: 58px 28px 48px;
    border-radius: 34px;
  }

  .scenery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .scenery-card,
  .scenery-card:first-child {
    grid-row: auto;
    min-height: 330px;
  }

  .scenery-card:first-child .scenery-content h3 {
    font-size: 1.9rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-note {
    order: 3;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(251, 246, 234, 0.12);
  }

  .detail-shell {
    height: min(92vh, 900px);
  }

  .detail-drawer {
    height: 100%;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .detail-media {
    height: 300px;
    min-height: 300px;
  }

  .detail-content {
    height: auto;
    overflow: visible;
    padding: 36px 34px 38px;
  }

  .detail-media::after {
    background: linear-gradient(180deg, rgba(8, 27, 20, 0.02) 40%, rgba(8, 27, 20, 0.55) 100%);
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 80px;
  }

  .header-inner {
    padding: 10px 18px;
    gap: 12px;
  }

  .brand-seal {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    border-radius: 9px;
  }

  .brand-text strong {
    font-size: 0.88rem;
  }

  .brand-text small {
    display: none;
  }

  .favorites-btn {
    padding: 8px 10px;
  }

  .favorites-btn span {
    display: none;
  }

  .hero {
    padding: 30px 18px 94px;
  }

  .hero-title {
    margin: 20px 0 24px;
    font-size: clamp(4.6rem, 21vw, 6.8rem);
  }

  .hero-title-accent {
    margin-left: 0.25em;
  }

  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.9;
  }

  .hero-lead br {
    display: none;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .btn {
    min-height: 44px;
    padding: 10px 17px;
    font-size: 0.76rem;
  }

  .hero-stats {
    gap: 10px;
    margin-top: 34px;
  }

  .hero-stats dd {
    font-size: 1.75rem;
  }

  .hero-stats dt {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-photo {
    border-width: 4px;
  }

  .hero-photo-main {
    width: 71%;
    height: 77%;
    border-radius: 160px 160px 16px 16px;
  }

  .hero-photo-snow {
    width: 41%;
    height: 34%;
    border-radius: 12px 64px 12px 12px;
  }

  .hero-photo-lake {
    width: 52%;
    height: 29%;
    border-radius: 13px;
  }

  .hero-photo figcaption {
    padding: 5px 8px;
    font-size: 0.53rem;
  }

  .hero-stamp {
    width: 88px;
    height: 88px;
    font-size: 0.78rem;
    border-width: 1px;
    right: 2%;
    bottom: 1%;
  }

  .hero-stamp small {
    font-size: 0.44rem;
  }

  .hero-quote {
    display: none;
  }

  .hero::after {
    display: none;
  }

  .search-dock {
    padding: 0 12px;
    margin-top: -56px;
  }

  .search-panel {
    padding: 22px 17px 20px;
    border-radius: 22px;
  }

  .search-heading h2 {
    font-size: 1.05rem;
  }

  .search-hint {
    display: none;
  }

  .search-form {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
  }

  .search-field input {
    height: 52px;
    padding-left: 48px;
    font-size: 0.88rem;
  }

  .search-icon {
    left: 16px;
    width: 18px;
  }

  .search-submit {
    width: 100%;
    height: 48px;
    padding: 0 20px;
  }

  .quick-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
  }

  .quick-row .chip-row {
    width: 100%;
    min-width: 0;
  }

  .quick-label {
    padding-top: 0;
  }

  .chip {
    padding: 5px 10px;
    font-size: 0.67rem;
  }

  .assistant-reply {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 15px;
  }

  .assistant-mark {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .assistant-copy h3 {
    font-size: 1rem;
  }

  .assistant-copy p {
    font-size: 0.78rem;
  }

  .section-pad {
    padding: 66px 18px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .section-heading > p {
    font-size: 0.8rem;
  }

  .daily-copy {
    padding: 28px 22px 30px;
  }

  .daily-copy h3 {
    font-size: 1.9rem;
  }

  .daily-copy > p {
    font-size: 0.83rem;
  }

  .daily-media {
    aspect-ratio: 4 / 3;
  }

  .explore {
    margin: 0 10px;
    padding: 44px 16px 50px;
    border-radius: 26px;
  }

  .filter-bar {
    padding: 13px 0;
  }

  .category-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    padding: 7px 11px;
    font-size: 0.74rem;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .select-wrap select,
  .filter-favorite {
    width: 100%;
    min-height: 36px;
  }

  .filter-favorite {
    justify-content: center;
  }

  .select-wrap:nth-child(3) {
    grid-column: span 2;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .food-media {
    aspect-ratio: 16 / 10;
  }

  .food-content {
    padding: 18px 18px 16px;
  }

  .food-title {
    font-size: 1.38rem;
  }

  .scenery {
    margin: 10px 10px 0;
    padding: 46px 16px 38px;
    border-radius: 26px;
  }

  .scenery-card,
  .scenery-card:first-child {
    min-height: 300px;
  }

  .scenery-content {
    padding: 18px;
  }

  .scenery-card:first-child .scenery-content h3 {
    font-size: 1.7rem;
  }

  .scenery-content h3 {
    font-size: 1.42rem;
  }

  .scenery-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .scenery-foot p {
    font-size: 1.02rem;
  }

  .about-main h2 {
    font-size: 2rem;
  }

  .about-meta {
    gap: 10px 18px;
  }

  .site-footer {
    padding: 28px 18px;
  }

  .footer-inner {
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .modal-backdrop {
    padding: 0;
  }

  .detail-shell {
    width: 100%;
    height: 100%;
  }

  .detail-drawer {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    animation: none;
    transform: none;
  }

  .detail-media {
    height: 240px;
    min-height: 240px;
  }

  .detail-content {
    padding: 30px 20px 40px;
  }

  .detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .detail-content h2 {
    font-size: 2.25rem;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .toast {
    bottom: 18px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 4.2rem;
  }

  .hero-visual {
    min-height: 360px;
  }

  .filter-actions {
    grid-template-columns: 1fr;
  }

  .select-wrap:nth-child(3) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
