/* Slumbra website — "quiet luxury night" (2026-11-21). Serif display, hairlines, photographic art. */
:root {
  --navy: #0B1020; --navy-2: #0F1629; --navy-3: #151E36;
  --line: rgba(237, 241, 245, .12); --line-2: rgba(237, 241, 245, .2);
  --mint: #5FD4C4; --ink: #EDF1F5; --muted: #A3ADC2; --faint: #6F7A93;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --sans: -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--ink); font: 17px/1.8 var(--sans); letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
a { color: var(--mint); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
::selection { background: rgba(95, 212, 196, .3); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.22; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; }
h3 { font-size: 21px; line-height: 1.45; }
p { margin: 0 0 1em; }
.kicker { font: 600 12px/1.6 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--mint); margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.more { font-size: 15px; text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(11, 16, 32, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.home .site-head { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(11,16,32,.65), rgba(11,16,32,0)); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 34px; height: 12px; color: var(--mint); overflow: visible; }
.brand .word { font: 600 22px/1 var(--serif); letter-spacing: .02em; }
.brand .word-zh { font: 500 14px/1 var(--serif); color: var(--muted); letter-spacing: .2em; }
.site-head nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }
.site-head nav .lang { font-size: 13px; letter-spacing: .08em; }
.soon { font-size: 13px; color: var(--navy); background: var(--mint); border-radius: 999px; padding: 6px 14px; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 760px) {
  .site-head .wrap { flex-wrap: nowrap; min-height: 60px; }
  .site-head nav { gap: 13px; font-size: 13px; white-space: nowrap; }
  .soon { display: none; }
  .brand .word-zh { display: none; }
  .brand .word { font-size: 19px; }
  .brand .mark { width: 26px; }
}

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,16,32,.96) 0%, rgba(11,16,32,.82) 34%, rgba(11,16,32,.2) 70%, rgba(11,16,32,.35) 100%),
              linear-gradient(0deg, var(--navy) 0%, rgba(11,16,32,0) 22%); }
.hero-in { width: 100%; padding-top: 120px; padding-bottom: 80px; }
.hero h1 { max-width: 11em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-sub { font: italic 400 clamp(17px, 1.6vw, 21px)/1.6 Georgia, "Times New Roman", var(--serif); color: var(--ink); opacity: .85; margin: 18px 0 22px; letter-spacing: .02em; }
.hero .lead { max-width: 30em; }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--mint); color: var(--navy); font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.cta-note { color: var(--muted); font-size: 14px; padding-left: 20px; border-left: 1px solid var(--line-2); }
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: flex-end; }
  .hero-bg { object-position: 72% 50%; }
  .hero::before { background: linear-gradient(0deg, var(--navy) 8%, rgba(11,16,32,.75) 55%, rgba(11,16,32,.35) 100%); }
  .hero-in { padding-top: 46vh; padding-bottom: 40px; }
  .cta-note { border-left: 0; padding-left: 0; }
}

/* Sections */
.block { padding-top: 112px; }
.block-head { margin-bottom: 44px; max-width: 760px; }
.block-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
@media (max-width: 760px) { .block { padding-top: 76px; } .block-head { margin-bottom: 30px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 28px 8px; border-right: 1px solid var(--line); }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; padding-right: 0; }
.step-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.num { font: 400 56px/0.9 var(--serif); color: var(--ink); opacity: .9; }
.step-head .kicker { margin: 4px 0 4px; font-size: 11px; color: var(--muted); }
.step-img { border-radius: 4px; overflow: hidden; margin-bottom: 20px; aspect-ratio: 4 / 3; }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.step:hover .step-img img { transform: scale(1.03); }
.step p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:last-child { padding: 28px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
}

.cols3, .cols2 { display: grid; border-top: 1px solid var(--line); }
.cols3 { grid-template-columns: repeat(3, 1fr); }
.cols2 { grid-template-columns: repeat(2, 1fr); }
.col { padding: 34px 32px 28px 0; border-bottom: 1px solid var(--line); }
.cols3 .col + .col, .cols2 .col:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.col h3 { margin: 16px 0 10px; }
.col p { color: var(--muted); font-size: 16px; margin: 0; }
.icon svg { width: 30px; height: 30px; fill: none; stroke: var(--mint); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.idx { font: 600 12px/1 var(--sans); letter-spacing: .2em; color: var(--mint); }
@media (max-width: 760px) {
  .cols3, .cols2 { grid-template-columns: 1fr; }
  .col, .cols3 .col + .col, .cols2 .col:nth-child(even) { padding: 26px 0; border-left: 0; }
}

/* Journal cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.post { display: block; color: inherit; text-decoration: none; }
.post-img { aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--navy-3); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, opacity .3s; }
.post:hover .post-img img { transform: scale(1.04); }
.post-body { padding-top: 18px; }
.post-body .kicker { font-size: 11px; color: var(--faint); letter-spacing: .18em; margin-bottom: 8px; }
.post h3 { font-size: 20px; transition: color .2s; }
.post:hover h3 { color: var(--mint); }
.post p { color: var(--muted); font-size: 15px; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.posts-index .post-big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.posts-index .post-big h3 { font-size: clamp(24px, 3vw, 34px); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } .posts-index .post-big { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 18px/1.5 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font: 300 24px/1 var(--sans); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }

/* Plain pages */
.page-head { padding-top: 72px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }

/* Article */
.post-head { padding-top: 64px; padding-bottom: 32px; }
.post-head h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.3; }
.crumbs { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.meta { color: var(--faint); font-size: 14px; margin-top: 18px; }
.post-cover { margin: 0 auto 56px; }
.post-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 4px; }
@media (max-width: 600px) { .post-cover { padding: 0; } .post-cover img { aspect-ratio: 3 / 2; border-radius: 0; } }
.prose { font-size: 18px; line-height: 1.95; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 64px 0 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.prose p, .prose li { color: #D3D9E4; }
.summary { border: 1px solid var(--line-2); border-radius: 4px; padding: 26px 30px 12px; margin: 0 0 40px; background: linear-gradient(135deg, rgba(95,212,196,.07), rgba(95,212,196,0) 60%); }
.summary h2, .toc h2 { font: 600 12px/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--mint); margin: 0 0 12px; }
.toc { font-size: 16px; border-left: 1px solid var(--line-2); padding-left: 22px; margin-bottom: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--mint); }
.sources ol { font-size: 14px; line-height: 1.7; word-break: break-word; }
.sources li, .sources a { color: var(--muted); }
.app-cta { display: flex; gap: 20px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; margin: 64px 0 20px; }
.app-cta .mark { width: 64px; height: 24px; color: var(--mint); flex: none; }
.app-cta strong { font: 600 20px/1.4 var(--serif); }
.app-cta p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.disclaimer { font-size: 13px; line-height: 1.7; color: var(--faint); }

/* Footer */
.site-foot { margin-top: 140px; border-top: 1px solid var(--line); padding: 56px 0 48px; }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.site-foot .disclaimer, .site-foot .copy { grid-column: 1 / -1; margin: 0; }
.copy { font-size: 13px; color: var(--faint); letter-spacing: .04em; }
@media (max-width: 760px) { .site-foot { margin-top: 96px; } .site-foot .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Launch waitlist */
.waitlist { margin-top: 34px; max-width: 560px; }
.wl-label { display: block; font: 600 12px/1.6 var(--sans); letter-spacing: .2em; color: var(--mint); margin-bottom: 10px; text-transform: uppercase; }
.wl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-row input, .wl-row select { font: inherit; font-size: 16px; color: var(--ink); background: rgba(11,16,32,.6); border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px; }
.wl-row input { flex: 1 1 220px; min-width: 0; }
.wl-row select { flex: 0 0 auto; color-scheme: dark; }
.wl-row input:focus, .wl-row select:focus { outline: 1px solid var(--mint); outline-offset: 1px; }
.wl-row button { font: inherit; font-weight: 700; letter-spacing: .06em; border: 0; border-radius: 999px; padding: 12px 24px; background: var(--mint); color: var(--navy); cursor: pointer; }
.wl-row button:disabled { opacity: .6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-msg { min-height: 1.6em; margin: 10px 0 0; font-size: 14px; }
.wl-msg.good { color: var(--mint); } .wl-msg.bad { color: #F08A7A; }
.wl-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.wl-remove { font: inherit; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
