:root {
  color-scheme: dark;
  --bg: #0a0908;
  --bg-2: #11100e;
  --panel: rgba(24, 22, 19, .78);
  --panel-solid: #181613;
  --text: #f6f0e8;
  --muted: #b7aa9c;
  --soft: #ded0bd;
  --accent: #d9a24a;
  --accent-2: #b66a3c;
  --line: rgba(232, 211, 181, .16);
  --line-strong: rgba(232, 211, 181, .3);
  --shadow: 0 26px 80px rgba(0, 0, 0, .42);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% -8%, rgba(217, 162, 74, .18), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(117, 56, 38, .23), transparent 28rem),
    linear-gradient(180deg, #11100e 0%, var(--bg) 46rem, #070605 100%);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.ambient-glow {
  position: fixed;
  width: 42vw;
  height: 42vw;
  right: -18vw;
  top: 20vh;
  background: radial-gradient(circle, rgba(217, 162, 74, .14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.site-header, .site-footer, .site-main { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; font-weight: 800; letter-spacing: .02em; }
.brand-logo { height: 42px; width: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.site-nav, .social-links { display: flex; align-items: center; }
.site-nav { gap: .9rem; color: var(--muted); font-size: .9rem; }
.site-nav a, .site-nav span { white-space: nowrap; }
.social-links { gap: .45rem; margin-left: auto; }
.social-links a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255,255,255,.035);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .04em;
}
.social-links a:hover { border-color: rgba(217,162,74,.55); background: rgba(217,162,74,.12); color: var(--accent); transform: translateY(-1px); }
.nav-divider { width: 1px; height: 16px; background: var(--line-strong); }
.site-main { padding: 24px 0 78px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0 42px;
  font-size: .92rem;
}

.surface-bleed {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.surface-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.08), transparent 24%, transparent 74%, rgba(217,162,74,.08));
  mix-blend-mode: screen;
}
.eyebrow {
  margin: 0 0 .7rem;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.meta, .muted, .site-footer { color: var(--muted); }
.meta { font-size: .82rem; letter-spacing: .03em; }

.home-hero {
  min-height: 620px;
  border-radius: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(120deg, rgba(10,9,8,.92), rgba(10,9,8,.56)),
    radial-gradient(circle at 72% 28%, rgba(217,162,74,.24), transparent 26rem),
    linear-gradient(135deg, #18130f, #090807 70%);
}
.hero-copy, .hero-frame, .section-block > *, .article-hero > * { position: relative; z-index: 1; }
.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-family: ui-serif, Georgia, "Noto Serif TC", serif;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: .95;
  letter-spacing: -.07em;
}
.hero-text { max-width: 650px; margin: 1.4rem 0 0; color: var(--soft); font-size: clamp(1rem, 1.35vw, 1.2rem); }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  font-weight: 750;
}
.button.primary { color: #120e08; background: linear-gradient(135deg, #f1c878, var(--accent)); border-color: transparent; }
.button.ghost { color: var(--soft); background: rgba(255,255,255,.035); }

.hero-frame { min-height: 510px; }
.hero-photo {
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  background-size: cover;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.hero-photo-main {
  inset: 0 7% 12% 0;
  border-radius: 34px;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55)),
    radial-gradient(circle at 38% 30%, rgba(255,196,88,.55), transparent 9rem),
    linear-gradient(140deg, #2b2118, #090807 52%, #57412b);
}
.hero-photo-main::after {
  content: "旅途 / 光 / 記憶";
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: rgba(255,255,255,.78);
  letter-spacing: .12em;
  font-size: .78rem;
}
.hero-photo-small { width: 42%; height: 31%; border-radius: 24px; }
.hero-photo-small.one { right: 0; top: 8%; background: linear-gradient(135deg, #503a21, #11100e 58%, #9a6232); }
.hero-photo-small.two { right: 8%; bottom: 0; background: linear-gradient(135deg, #171d20, #31251a 48%, #bd7c3b); }
.hero-caption {
  position: absolute;
  right: 9%;
  bottom: 15%;
  margin: 0;
  color: var(--muted);
  writing-mode: vertical-rl;
  letter-spacing: .12em;
  font-size: .78rem;
}

.section-block { margin-top: 76px; }
.section-heading { margin-bottom: 24px; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.split-heading h2, .showcase-panel h2, .about-strip h2, .list-hero h1 {
  margin: 0;
  font-family: ui-serif, Georgia, "Noto Serif TC", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.split-heading > p { max-width: 420px; color: var(--muted); margin: 0; }

.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .journal-card, .showcase-panel, .article-sidebar {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.feature-card { border-radius: var(--radius-xl); overflow: hidden; }
.story-visual, .thumb, .flickr-visual, .article-cover, .mini-gallery span {
  display: block;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgba(240, 190, 98, .55), transparent 22%),
    linear-gradient(135deg, #302114, #0d0c0b 62%, #8d5630);
}
.story-visual { min-height: 280px; }
.story-visual::after, .thumb::after, .flickr-visual::after, .article-cover::after, .mini-gallery span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 30%, rgba(0,0,0,.35));
}
.tone-1 .story-visual, .tone-1 .thumb { background: radial-gradient(circle at 70% 35%, rgba(101,161,184,.5), transparent 22%), linear-gradient(135deg, #111b20, #0b0a09 62%, #4b3326); }
.tone-2 .story-visual, .tone-2 .thumb { background: radial-gradient(circle at 42% 36%, rgba(224,224,196,.45), transparent 20%), linear-gradient(135deg, #2b2d25, #0b0a09 64%, #7a4d2a); }
.visual-index {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 1;
  color: rgba(255,255,255,.72);
  font-family: ui-serif, Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
}
.story-body { padding: 22px; }
.story-body h3, .journal-card h3, .archive-card h2 { margin: .25rem 0 .6rem; line-height: 1.18; letter-spacing: -.02em; }
.story-body h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.story-body p:not(.meta) { color: var(--muted); }
.read-link { color: var(--accent); font-weight: 800; font-size: .92rem; }

.two-column-showcase { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: stretch; }
.showcase-panel { border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 48px); }
.showcase-panel p:not(.eyebrow) { color: var(--muted); }
.mini-gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 180px 180px; gap: 12px; }
.mini-gallery span { border-radius: 28px; border: 1px solid var(--line); }
.mini-gallery span:first-child { grid-row: span 2; }
.mini-gallery span:nth-child(2) { grid-column: span 2; background: radial-gradient(circle at 28% 26%, rgba(217,162,74,.42), transparent 18%), linear-gradient(135deg, #20252a, #0b0a09 66%, #60402a); }
.mini-gallery span:nth-child(4) { background: linear-gradient(135deg, #101012, #35281d, #936339); }

.journal-grid { display: grid; gap: 14px; }
.journal-grid.compact { grid-template-columns: repeat(3, 1fr); }
.journal-card { display: grid; grid-template-columns: 92px 1fr; gap: 15px; border-radius: 24px; padding: 12px; }
.journal-card .thumb { min-height: 92px; border-radius: 18px; }
.journal-card h3 { font-size: 1.05rem; }
.inline-translations { margin: .35rem 0 0; display: flex; gap: .6rem; font-size: .82rem; }

.about-strip, .list-hero, .article-hero {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 62px);
}
.about-strip { background: linear-gradient(135deg, rgba(217,162,74,.16), rgba(255,255,255,.025)); }
.about-strip p { max-width: 760px; color: var(--muted); }

.archive-grid { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.archive-card { grid-template-columns: 170px 1fr; padding: 14px; }
.archive-card .thumb { min-height: 170px; }
.archive-card .thumb span { position: absolute; z-index: 2; left: 14px; top: 10px; color: rgba(255,255,255,.7); font-family: ui-serif, Georgia, serif; font-size: 2rem; }
.archive-card p:not(.meta) { color: var(--muted); }

.article { max-width: none; }
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 520px;
  background: linear-gradient(135deg, rgba(26,21,17,.95), rgba(10,9,8,.78)), radial-gradient(circle at 70% 30%, rgba(217,162,74,.18), transparent 24rem);
}
.article-kicker { grid-column: 1; }
.article-hero h1 {
  grid-column: 1;
  margin: 0;
  font-family: ui-serif, Georgia, "Noto Serif TC", serif;
  font-size: clamp(2.5rem, 5.8vw, 6rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.tag-row span, .translations a, .translations span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem .65rem;
  color: var(--muted);
  font-size: .82rem;
}
.translations { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-top: 1rem; }
.article-cover {
  grid-column: 2;
  grid-row: 1 / span 5;
  min-height: 410px;
  border-radius: 34px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.article-cover span { position: absolute; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.article-cover span:nth-child(1) { width: 34%; height: 24%; right: 9%; top: 9%; border-radius: 20px; }
.article-cover span:nth-child(2) { width: 42%; height: 32%; left: 9%; bottom: 12%; border-radius: 24px; }
.article-cover span:nth-child(3) { width: 24%; height: 16%; right: 14%; bottom: 16%; border-radius: 999px; }
.article-shell { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(2rem, 5vw, 4rem); justify-content: center; margin-top: 54px; align-items: start; }
.article-sidebar { position: sticky; top: 90px; border-radius: 22px; padding: 20px; color: var(--muted); }
.prose { font-size: 1.08rem; color: #eadfd2; }
.prose h2 {
  margin: 2.4rem 0 .8rem;
  font-family: ui-serif, Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.prose p { margin: 1.05rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.flickr-photo { margin: 2rem 0; }
.flickr-visual {
  min-height: 300px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 56px rgba(0,0,0,.28);
}
.flickr-mark {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 18px;
  color: rgba(255,255,255,.72);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.flickr-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .7rem;
  color: var(--muted);
  font-size: .9rem;
}
.flickr-photo figcaption a { color: var(--accent); font-weight: 800; white-space: nowrap; }

.photo-album {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  margin: 72px auto 0;
  max-width: 1080px;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(217,162,74,.13), rgba(255,255,255,.025)),
    radial-gradient(circle at 78% 18%, rgba(182,106,60,.22), transparent 26rem);
}
.photo-album h2 {
  margin: 0;
  font-family: ui-serif, Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.photo-album p { color: var(--muted); }
.album-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.1rem 0 1.3rem; }
.album-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .7rem;
  color: var(--soft);
  background: rgba(255,255,255,.04);
  font-size: .84rem;
}
.album-button { margin-top: .2rem; }
.album-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 82px;
  gap: 10px;
}
.album-tile {
  position: relative;
  display: block;
  min-height: 82px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 38% 30%, rgba(240, 190, 98, .5), transparent 22%),
    linear-gradient(135deg, #302114, #0d0c0b 62%, #8d5630);
  box-shadow: 0 16px 46px rgba(0,0,0,.22);
}
.album-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 34%, rgba(0,0,0,.5));
  opacity: .95;
}
.album-tile span {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 8px;
  color: rgba(255,255,255,.72);
  font-family: ui-serif, Georgia, serif;
  font-size: 1.2rem;
}
.album-tile:hover { transform: translateY(-2px); border-color: rgba(217,162,74,.5); }
.album-tile:hover::after { opacity: .72; }
.album-tile.tile-0 { grid-column: span 3; grid-row: span 2; border-radius: 28px; }
.album-tile.tile-1 { grid-column: span 2; background: radial-gradient(circle at 70% 35%, rgba(101,161,184,.5), transparent 22%), linear-gradient(135deg, #111b20, #0b0a09 62%, #4b3326); }
.album-tile.tile-2 { grid-column: span 1; background: linear-gradient(135deg, #101012, #35281d, #936339); }
.album-tile.tile-3 { grid-column: span 2; grid-row: span 2; border-radius: 26px; background: radial-gradient(circle at 42% 36%, rgba(224,224,196,.45), transparent 20%), linear-gradient(135deg, #2b2d25, #0b0a09 64%, #7a4d2a); }
.album-tile.tile-4 { grid-column: span 2; }
.album-tile.tile-5 { grid-column: span 1; background: radial-gradient(circle at 45% 35%, rgba(255,132,76,.42), transparent 20%), linear-gradient(135deg, #271713, #0b0a09 66%, #704226); }

@media (max-width: 980px) {
  .home-hero, .article-hero, .two-column-showcase, .photo-album { grid-template-columns: 1fr; }
  .hero-frame { min-height: 420px; }
  .featured-grid, .journal-grid.compact, .archive-grid { grid-template-columns: 1fr; }
  .article-cover { grid-column: 1; grid-row: auto; }
  .article-shell { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 720px) {
  .site-header, .site-footer, .split-heading { align-items: flex-start; flex-direction: column; }
  .social-links { margin-left: 0; }
  .site-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .home-hero { border-radius: 28px; min-height: auto; }
  .hero-copy h1 { font-size: clamp(2.5rem, 14vw, 4.2rem); }
  .hero-frame { min-height: 330px; }
  .hero-caption { display: none; }
  .mini-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px 150px; }
  .mini-gallery span:first-child, .mini-gallery span:nth-child(2) { grid-column: span 2; grid-row: auto; }
  .journal-card, .archive-card { grid-template-columns: 1fr; }
  .journal-card .thumb, .archive-card .thumb { min-height: 190px; }
  .article-hero { min-height: auto; }
  .article-cover { min-height: 280px; }
  .flickr-photo figcaption { flex-direction: column; }
  .album-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .album-tile.tile-0, .album-tile.tile-1, .album-tile.tile-2, .album-tile.tile-3, .album-tile.tile-4, .album-tile.tile-5 { grid-column: span 1; grid-row: span 1; border-radius: 20px; }
}
