/* ============================================================
   Cornelia Street — "A Map to Your Memories"
   品牌 tokens: 燕麥紙 / 墨棕 / 磚紅 / 灰藍 / 暗橄欖 / 舊金
   ============================================================ */
:root {
  --paper: #f3ede2;
  --paper-2: #ece2d0;
  --card: #faf6ec;
  --ink: #37312a;
  --ink-2: #4c463c;
  --muted: #7a7163;
  --line: #e0d6c2;
  --brick: #a14e3b;
  --brick-deep: #8a3a2a;
  --gold: #b98d4f;
  --olive: #6f6a45;
  --blue: #5f6f82;
  --green-plate: #2f5d46;
  --dark: #2e2a23;
  --dark-2: #3a352c;
  --cream: #faf6ec;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang HK", "Microsoft JhengHei", sans-serif;
  --f-mono: "Courier New", ui-monospace, monospace;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(55, 49, 42, .14);
  --head-h: 76px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em.em { font-style: italic; color: var(--brick); font-weight: 500; }
::selection { background: #e3c9ae; color: var(--ink); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 3px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 237, 226, .0);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-head.scrolled { background: rgba(243, 237, 226, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.head-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-sign { width: 92px; height: auto; flex: 0 0 auto; }
.brand-word { font-family: var(--f-display); font-size: 21px; font-weight: 500; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: rgba(161, 78, 59, .08); color: var(--brick); }
.nav .nav-workspace {
  font-size: 13px; border: 1px solid var(--line); background: rgba(250, 246, 236, .6);
}
.nav .nav-workspace:hover { border-color: var(--brick); background: var(--brick); color: var(--cream); }
@media (max-width: 880px) {
  :root { --head-h: auto; }
  .site-head { position: relative; }
  .head-inner { gap: 6px; padding: 10px 16px; }
  .nav { width: 100%; order: 3; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
         scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 11px; font-size: 13.5px; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); overflow: hidden; display: flex; align-items: flex-end; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(88deg, rgba(38, 31, 24, .72) 0%, rgba(38, 31, 24, .38) 46%, rgba(38, 31, 24, .04) 78%),
    linear-gradient(0deg, rgba(38, 31, 24, .55) 0%, transparent 26%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 1280px; width: 100%;
  margin: 0 auto; padding: clamp(110px, 12vh, 150px) 28px 130px;
  color: var(--cream);
}
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brick); margin-bottom: 18px;
}
.hero-eyebrow { color: #e9cfae; }
.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3rem, 7.4vw, 6.3rem);
  line-height: 1.02; letter-spacing: -.015em;
  text-shadow: 0 2px 24px rgba(20, 14, 8, .35);
}
.hero h1 em.em { color: #d9a05b; }
.hero-sub { margin-top: 22px; font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.7; max-width: 640px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brick); color: var(--cream); box-shadow: 0 10px 26px rgba(161, 78, 59, .35); }
.btn-primary:hover { background: var(--brick-deep); }
.btn-ghost-light { border-color: rgba(250, 246, 236, .55); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(250, 246, 236, .12); border-color: var(--cream); }
.btn-lg { padding: 18px 40px; font-size: 16.5px; }
.hero-scroll {
  position: absolute; right: 30px; bottom: 26px; z-index: 2; color: rgba(250, 246, 236, .75);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-align: center;
  animation: bob 2.6s ease-in-out infinite;
}
.hero-scroll span { display: block; margin-bottom: 4px; writing-mode: vertical-rl; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--dark); color: #cdbf9f; padding: 13px 0; border-block: 1px solid rgba(233, 224, 207, .14); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span {
  font-family: var(--f-display); font-style: italic; font-size: 15.5px; letter-spacing: .14em;
  white-space: nowrap; padding-right: 4px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(70px, 9vw, 120px) 28px; max-width: 1280px; margin: 0 auto; }
h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 26px;
}
.lead { font-size: 1.13rem; line-height: 1.8; color: var(--ink-2); }
p + p { margin-top: 14px; }

/* ---------- Story ---------- */
.story { padding-top: clamp(90px, 12vw, 150px); }
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.story-copy p { color: var(--ink-2); }
.pull {
  font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35; color: var(--brick); border-left: 3px solid var(--brick);
  padding: 6px 0 6px 22px; margin-top: 30px;
}
.story-visual .fig-stack img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.fig-caption { margin-top: 12px; font-size: 13px; color: var(--muted); font-style: italic; text-align: right; }
@media (max-width: 880px) {
  .story-grid { grid-template-columns: 1fr; }
}

/* ---------- Collections ---------- */
.collections { padding-bottom: clamp(70px, 9vw, 120px); }
.collections-head { max-width: 720px; margin-bottom: clamp(30px, 5vw, 56px); }
.head-note { color: var(--muted); margin-top: 4px; }
.concept-chip {
  display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brick); border: 1px solid var(--line);
  background: rgba(161, 78, 59, .06); padding: 4px 12px; border-radius: 999px; margin-left: 8px;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-imgwrap { aspect-ratio: 4/5; overflow: hidden; }
.card-imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-imgwrap img { transform: scale(1.04); }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-no { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; }
.card p { color: var(--ink-2); font-size: 15px; }
.card-meta { margin-top: auto !important; padding-top: 10px; font-family: var(--f-mono); font-size: 12.5px !important; color: var(--muted) !important; letter-spacing: .04em; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- The Map (dark band) ---------- */
.mapband {
  max-width: none; padding: 0; background:
    radial-gradient(900px 480px at 85% -10%, rgba(185, 141, 79, .14), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(161, 78, 59, .12), transparent 55%),
    var(--dark);
  color: var(--cream);
}
.mapband .eyebrow-dark { color: var(--gold); }
.map-grid {
  max-width: 1280px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
.map-copy h2 em.em { color: #d9a05b; }
.map-copy p { color: #cfc5af; }
.map-coords {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 30px;
  font-family: var(--f-mono); font-size: 12.5px; color: #a89a7e !important; letter-spacing: .05em;
}
.map-copy .btn { margin-top: 6px; }
.map-art svg { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.map-route { stroke: #a14e3b; stroke-width: 2.4; stroke-dasharray: 7 7; fill: none; animation: dashmove 30s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -280; } }
@media (max-width: 880px) {
  .map-grid { grid-template-columns: 1fr; }
}

/* ---------- Journal ---------- */
.journal-head { margin-bottom: clamp(30px, 5vw, 56px); }
.journal-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.jitem {
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(14px, 3vw, 40px);
  padding: clamp(26px, 4vw, 44px) 4px; border-bottom: 1px solid var(--line);
  transition: background .2s ease; border-radius: 4px;
}
.jitem:hover { background: rgba(161, 78, 59, .045); }
.jnum { font-family: var(--f-display); font-style: italic; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.jbody h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.jbody p { color: var(--ink-2); max-width: 780px; }
.jmeta { margin-top: 14px !important; font-family: var(--f-mono); font-size: 12px !important; color: var(--muted) !important; letter-spacing: .05em; }
.journal-more { text-align: center; margin-top: 46px; color: var(--muted); font-style: italic; }
@media (max-width: 720px) { .jitem { grid-template-columns: 1fr; } .jnum { font-size: 1.6rem; } }

/* ---------- Contact ---------- */
.contact { padding-top: clamp(90px, 11vw, 150px); padding-bottom: clamp(90px, 11vw, 150px); }
.contact-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.contact-sub { color: var(--ink-2); font-size: 1.12rem; max-width: 560px; margin: 0 auto 34px !important; }
.contact .btn { margin-bottom: 0; }
.contact-note { margin-top: 30px !important; color: var(--muted); font-size: 13.5px; }

/* ---------- Footer ---------- */
.foot { background: var(--paper-2); border-top: 1px solid var(--line); }
.foot-inner { max-width: 1280px; margin: 0 auto; padding: 40px 28px 46px; display: grid; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 14px; }
.foot-brand .brand-sign { width: 74px; }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-nav a { font-size: 14px; color: var(--muted); }
.foot-nav a:hover { color: var(--brick); }
.foot-copy { color: var(--muted); font-size: 12.5px; }
.foot-copy a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-copy a:hover { color: var(--brick); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
