/* Alice Lim — personal site
   Palette from her footage: ink-navy shirt, porcelain wall, teh amber, one lipstick-red seal. */

:root {
  --ink: #1F2A44;
  --ink-deep: #16203A;
  --porcelain: #F3F2ED;
  --paper: #FBFAF7;
  --tan: #EADFCB;
  --amber: #C4893A;
  --amber-deep: #A26E2A;
  --gold-on-ink: #E3B86E;
  --red: #B5322E;
  --text: #1F2A44;
  --text-soft: #4B5569;
  --line: #D9D4C7;
  --wa: #1E7F4F;
  --wa-deep: #176640;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px; --s-5: 64px; --s-6: 96px; --s-7: 144px;
  --radius: 6px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: .02em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* placeholders: impossible to miss in review */
mark[data-placeholder] { background: #FFF1A8; color: #5A4300; padding: 0 .25em; border-radius: 3px; }

/* ---------- Seal ---------- */
.seal {
  display: inline-grid; place-items: center;
  width: 1.55em; height: 1.55em;
  background: var(--red); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: .72em; line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55), inset 0 0 0 3px var(--red);
  flex: none;
}
.seal-lg { font-size: .4em; vertical-align: .3em; margin-left: .2em; transform: rotate(-4deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--porcelain) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--s-3); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.brand .seal { font-size: 15px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle .bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: var(--s-2) var(--gutter) var(--s-3);
  flex-direction: column; gap: 4px;
}
.site-nav.is-open { display: flex; }
.site-nav a { text-decoration: none; padding: 12px 8px; font-weight: 500; border-radius: var(--radius); }
.site-nav a:hover { background: var(--tan); }
.site-nav .btn-nav { margin-top: var(--s-1); justify-content: center; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 6px; background: transparent; border: 0; padding: 0; }
  .site-nav a { padding: 8px 12px; }
  .site-nav .btn-nav { margin: 0 0 0 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-deep); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-quiet:hover { background: var(--tan); }
.btn-nav { background: var(--amber); color: var(--ink-deep); min-height: 40px; padding: 6px 16px; }
.btn-nav:hover { background: var(--gold-on-ink); }
.btn-wa { background: var(--wa); color: #fff; font-size: 18px; min-height: 56px; padding: 12px 28px; }
.btn-wa:hover { background: var(--wa-deep); }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: var(--s-4);
  padding-block: var(--s-5) var(--s-5);
}
.hero-hello { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); color: var(--text-soft); margin: 0 0 var(--s-1); }
.hero-name { font-size: clamp(52px, 9.5vw, 112px); line-height: .98; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.hero-lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.75; max-width: 30em; margin: var(--s-3) 0 var(--s-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.hero-figure { margin: 0; justify-self: center; width: min(100%, 420px); }
.hero-figure picture, .story-figure picture, .tea-figure picture { display: block; }
.hero-figure img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  border-radius: 999px 999px 10px 10px;   /* a doorway: she's the one who opens it */
  box-shadow: 0 30px 60px -30px rgba(31,42,68,.45);
  background: var(--tan);
}
.hero-figure figcaption { font-size: 14px; color: var(--text-soft); margin-top: var(--s-2); text-align: center; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.25fr .9fr; align-items: end; padding-block: var(--s-6) var(--s-6); }
  .hero-figure { justify-self: end; width: 100%; max-width: 440px; }
}

/* page-load reveal: the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { opacity: 0; transform: translateY(14px); animation: rise .55s var(--ease) forwards; }
  .hero-hello { animation-delay: 0s; }
  .hero-name { animation-delay: .08s; }
  .hero-lead { animation-delay: .18s; }
  .hero-actions { animation-delay: .26s; }
  .hero-figure { opacity: 0; transform: translateY(10px); animation: rise .7s var(--ease) .15s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Intro ---------- */
.intro { background: var(--paper); border-block: 1px solid var(--line); padding-block: var(--s-5); }
.intro-grid { display: grid; gap: var(--s-3); }
.intro-title { font-size: clamp(22px, 2.8vw, 28px); color: var(--ink); max-width: 14em; }
.intro-body { max-width: 38em; font-size: 17.5px; }
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1.6fr; gap: var(--s-5); }
}

/* ---------- Story / timeline ---------- */
.story { padding-block: var(--s-6); }
.story-head { max-width: 36em; margin-bottom: var(--s-5); }
.story-sub { color: var(--text-soft); margin-top: var(--s-2); font-size: 18px; }
.story-grid { display: grid; gap: var(--s-5); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 38em; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: var(--s-4); padding-bottom: var(--s-4); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--porcelain); border: 3px solid var(--amber);
}
.timeline h3 { margin-bottom: var(--s-1); }

.pull { margin: var(--s-3) 0 0; padding: var(--s-2) var(--s-3); border-left: 3px solid var(--amber); background: var(--paper); }
.pull p { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 23px); font-weight: 600; color: var(--ink); line-height: 1.5; }

.story-figure { margin: 0; width: min(100%, 380px); justify-self: center; }
.story-figure img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; background: var(--tan); }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1.4fr .9fr; align-items: start; }
  .story-figure { justify-self: end; position: sticky; top: 96px; }
}

/* ---------- Three questions ---------- */
.questions { background: var(--ink); color: #F3F2ED; padding-block: var(--s-6); }
.questions h2 { color: #fff; max-width: 16em; }
.questions-intro { max-width: 34em; margin: var(--s-3) 0 var(--s-5); color: #D6DAE3; font-size: 18px; }
.q-list { display: grid; gap: 2px; border-top: 1px solid rgba(255,255,255,.18); }
.q { padding: var(--s-4) 0; border-bottom: 1px solid rgba(255,255,255,.18); display: grid; gap: var(--s-2); }
.q-text { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; color: var(--gold-on-ink); line-height: 1.35; margin: 0; }
.q-why { color: #D6DAE3; max-width: 32em; margin: 0; }
.questions-note { margin-top: var(--s-4); color: #D6DAE3; max-width: 34em; }
@media (min-width: 900px) {
  .q { grid-template-columns: 1.2fr 1fr; gap: var(--s-5); align-items: start; }
}

/* ---------- Tea ---------- */
.tea { padding-block: var(--s-6); }
.tea-grid {
  display: grid; gap: var(--s-4);
  background: var(--tan); border-radius: 14px;
  padding: var(--s-4) var(--s-3);
}
.tea-figure { margin: 0; width: min(100%, 320px); justify-self: center; }
.tea-figure img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px 10px 999px 999px; background: var(--porcelain); }
.tea-text h2 { color: var(--ink); max-width: 14em; }
.tea-lead { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; margin: var(--s-2) 0 var(--s-3); color: var(--amber-deep); }
.tea-text .btn-wa { margin-top: var(--s-3); }
.tea-fine { font-size: 15px; color: var(--text-soft); margin-top: var(--s-2); }
@media (min-width: 900px) {
  .tea-grid { grid-template-columns: .8fr 1.4fr; align-items: center; padding: var(--s-5); gap: var(--s-5); }
  .tea-figure { justify-self: start; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--paper); border-top: 1px solid var(--line); padding-block: var(--s-6); }
.faq-grid { display: grid; gap: var(--s-4); }
.faq-list { border-top: 1px solid var(--line); max-width: 44em; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 44px 18px 0; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list details p { padding: 0 0 20px; max-width: 40em; color: var(--text); }
.faq-list details .faq-more { padding-top: 0; margin-top: -8px; font-size: 15px; }
.intro-body a, .timeline a, .tea-fine a, .faq-more a, .prose a { color: var(--amber-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.intro-body a:hover, .timeline a:hover, .tea-fine a:hover, .faq-more a:hover, .prose a:hover { color: var(--ink); }
.questions-note a { color: var(--gold-on-ink); text-underline-offset: 3px; }
.questions-note a:hover { color: #fff; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 1fr 2fr; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #D6DAE3; padding-block: var(--s-5) var(--s-4); }
.footer-row { display: grid; gap: var(--s-4); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .seal { font-size: 18px; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff; margin: 0; }
.footer-line { margin: 0; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { color: var(--gold-on-ink); }
.copyright { font-size: 14px; margin: 0; color: #A9B0BF; }
@media (min-width: 900px) {
  .footer-row { grid-template-columns: 1fr auto; align-items: center; }
  .copyright { grid-column: 1 / -1; }
}

/* ---------- Privacy page ---------- */
.page { padding-block: var(--s-5) var(--s-6); }
.page-head { max-width: 36em; margin-bottom: var(--s-4); }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); }
.page-meta { color: var(--text-soft); margin-top: var(--s-2); }
.prose { max-width: 38em; }
.prose h2 { font-size: 24px; margin: var(--s-4) 0 var(--s-2); }
.prose ul { padding-left: 1.2em; }
.breadcrumbs { font-size: 14px; color: var(--text-soft); margin-bottom: var(--s-3); }
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--text-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
