/* The lychee blog: an editorial layout in the brand's colors (honey, ink, cream, night) and type (Young Serif, Bricolage). */
:root {
  --night: #1A1030; --plum: #2E1A4C; --honey: #F8B226; --gold: #FFD36A; --pink: #FF5D8F; --cream: #FFF8EC; --ink: #2B2118;
  --paper: #FFFDF8; --muted: #6E6257; --rule: #E8DCC6; --blush: #FFE3EC;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Young Serif", Georgia, serif;
  --m: clamp(20px, 5vw, 56px);
  --wide: 1180px; --text: 680px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { font-family: var(--display); font-size: 19px; line-height: 1.62; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); }

/* Bar and footer */
.bar { background: var(--night); color: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--m); padding-top: max(16px, env(safe-area-inset-top)); }
.bar img { height: 34px; width: auto; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 16px; font-weight: 600; }
.bar nav a { text-decoration: none; }
.get { display: inline-flex; align-items: center; justify-content: center; background: var(--honey); color: var(--ink); font-weight: 800; text-decoration: none; border-radius: 999px; padding: 10px 18px; transition: background-color .15s, transform .15s; }
.get:hover { background: var(--gold); }
.get:active { transform: scale(.98); }
footer { background: var(--night); color: rgba(255,248,236,.75); padding: 36px var(--m); padding-bottom: max(36px, env(safe-area-inset-bottom)); display: grid; gap: 12px; font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--cream); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* Shared bits */
.kicker { display: inline-block; font-size: 14px; font-weight: 800; line-height: 1; padding: 7px 11px 6px; border-radius: 999px; background: var(--ink); color: var(--gold); letter-spacing: .01em; }
.ph { display: block; overflow: hidden; background: #EADFCB; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a:hover .ph img { transform: scale(1.03); }

/* Index */
.index { max-width: var(--wide); margin: 0 auto; padding: clamp(36px, 6vw, 80px) var(--m) clamp(56px, 8vw, 96px); }
.mast { display: grid; gap: 18px; padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 2px solid var(--ink); }
.mast h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 9vw, 120px); line-height: .95; letter-spacing: -.025em; max-width: 11ch; }
.mast .lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.45; max-width: 40ch; color: #4C4038; }
.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(22px, 4vw, 52px); align-items: center; text-decoration: none; margin-top: clamp(28px, 4vw, 48px); }
.lead .ph { aspect-ratio: 4 / 3; border-radius: 26px; }
.lead .txt { display: grid; gap: 14px; justify-items: start; }
.lead .t { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.015em; }
.lead .d { font-size: 19px; line-height: 1.5; color: #4C4038; }
.rt { font-size: 14px; font-weight: 700; color: var(--muted); }
.grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.card { display: grid; gap: 16px; text-decoration: none; }
.card .ph { aspect-ratio: 3 / 2; border-radius: 20px; }
.card .txt { display: grid; gap: 10px; justify-items: start; }
.card .t { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 31px); line-height: 1.1; letter-spacing: -.01em; }
.card .d { font-size: 17px; line-height: 1.5; color: #4C4038; }
.card:hover .t, .lead:hover .t { text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.quizband { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; margin-top: clamp(48px, 6vw, 80px); background: var(--plum); color: var(--cream); border-radius: 30px; padding: clamp(26px, 4vw, 48px); text-decoration: none; position: relative; overflow: hidden; }
.quizband .qtxt { display: grid; gap: 16px; justify-items: start; position: relative; }
.quizband .kicker { background: var(--pink); color: var(--paper); }
.quizband .t { font-family: var(--serif); font-size: clamp(28px, 3.8vw, 48px); line-height: 1.05; max-width: 20ch; }
.quizband .go { background: var(--honey); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 12px 22px; }
.quizband img { width: clamp(120px, 18vw, 220px); transform: rotate(6deg); transition: transform .3s; }
.quizband:hover img { transform: rotate(-3deg) scale(1.04); }

/* Post */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 10; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--honey); transform-origin: 0 50%; transform: scaleX(0); }
.post { padding: clamp(32px, 6vw, 72px) var(--m) clamp(56px, 8vw, 96px); }
.post-head { max-width: 900px; margin: 0 auto; display: grid; gap: 18px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 15px; font-weight: 700; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.post h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.dek { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.42; color: #4C4038; max-width: 46ch; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; color: var(--muted); padding-top: 6px; }
.meta span:first-child { color: var(--ink); font-weight: 700; }
figure.hero { max-width: var(--wide); margin: clamp(28px, 4vw, 48px) auto 0; }
figure.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(16px, 2.4vw, 30px); background: #EADFCB; }

.layout { max-width: var(--wide); margin: clamp(36px, 5vw, 64px) auto 0; display: grid; grid-template-columns: 1fr minmax(0, var(--text)) 1fr; gap: 0 40px; }
.toc { grid-column: 1; align-self: start; position: sticky; top: 28px; font-size: 15px; line-height: 1.35; max-width: 220px; justify-self: end; }
.toc p { font-weight: 800; margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 10px; border-left: 2px solid var(--rule); }
.toc a { display: block; text-decoration: none; color: var(--muted); padding-left: 14px; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--honey); }
.body { grid-column: 2; }
.body > p, .body > ul, .body > ol { margin-top: 20px; }
.body > .answer + p::first-letter { font-family: var(--serif); float: left; font-size: 4.1em; line-height: .82; margin: 8px 12px 0 0; color: var(--plum); }
.body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.3vw, 38px); line-height: 1.1; letter-spacing: -.01em; margin-top: 56px; text-wrap: balance; }
.body h3 { font-weight: 800; font-size: 22px; line-height: 1.25; margin-top: 34px; }
.body h2 + p, .body h3 + p { margin-top: 12px; }
.body ul, .body ol { padding-left: 1.3em; }
.body li + li { margin-top: 10px; }
.body li::marker { color: var(--honey); font-weight: 800; }
.body a { color: var(--ink); text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.body a:hover { background: var(--gold); }
.body figure { margin: 44px 0 8px; }
.body figure img { width: 100%; border-radius: 18px; background: #EADFCB; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
blockquote { margin: 34px 0 0; padding-left: 22px; border-left: 4px solid var(--honey); }
blockquote p { font-family: var(--serif); font-size: 26px; line-height: 1.3; }
blockquote cite { display: block; font-style: normal; font-size: 15px; color: var(--muted); margin-top: 8px; }
.sources { margin-top: 56px; padding-top: 22px; border-top: 2px solid var(--ink); }
.sources h2 { font-family: var(--display); font-size: 16px; font-weight: 800; margin: 0; }
.sources ol { margin-top: 12px; padding-left: 1.3em; font-size: 14px; line-height: 1.5; color: var(--muted); display: grid; gap: 8px; }
.sources a { color: var(--muted); text-decoration-color: var(--rule); }
.sources a:hover { background: none; color: var(--ink); }

/* Quiz */
.quiz { display: grid; gap: 16px; margin-top: 28px; counter-reset: q; }
.quiz fieldset { border: 0; background: var(--paper); border-radius: 22px; padding: 22px; display: grid; gap: 6px; box-shadow: 0 1px 0 var(--rule); }
.quiz legend { font-family: var(--serif); font-size: 22px; line-height: 1.25; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.quiz legend b { color: var(--pink); font-weight: 400; }
.quiz label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 14px; cursor: pointer; font-size: 17px; line-height: 1.4; border: 1.5px solid transparent; transition: background-color .12s, border-color .12s; }
.quiz label:hover { background: var(--cream); }
.quiz input { accent-color: var(--ink); margin-top: 5px; flex: none; }
.quiz label:has(input:checked) { background: #FFF0C7; border-color: var(--honey); }
.quiz button { justify-self: start; border: 0; font: inherit; font-weight: 800; font-size: 18px; padding: 14px 26px; cursor: pointer; }
.results { margin-top: 32px; display: grid; gap: 14px; }
.result { background: var(--paper); border-radius: 22px; padding: 6px 22px 22px; box-shadow: 0 1px 0 var(--rule); }
.result h3 { margin-top: 18px !important; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.result p { margin-top: 10px; }
.result.yours { background: var(--plum); color: var(--cream); animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.result.yours h3::before { content: "Your result: "; color: var(--gold); }
@keyframes pop { from { transform: scale(.96); } to { transform: none; } }

/* Call to action and more */
.cta { max-width: 900px; margin: clamp(56px, 7vw, 88px) auto 0; background: var(--honey); border-radius: 30px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 32px); align-items: center; }
.cta .miso { width: clamp(88px, 12vw, 140px); transform: rotate(-6deg); }
.cta div { display: grid; gap: 10px; justify-items: start; }
.cta .big { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; }
.cta p { font-size: 17px; max-width: 46ch; }
.cta .get { background: var(--ink); color: var(--cream); margin-top: 6px; padding: 13px 22px; }
.cta .get:hover { background: var(--plum); }
.index .cta { max-width: none; }
.more { max-width: var(--wide); margin: clamp(56px, 7vw, 88px) auto 0; padding-top: 28px; border-top: 2px solid var(--ink); }
.more h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); }
.more ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 24px; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, var(--text)); justify-content: center; }
  .toc { display: none; }
  .body { grid-column: 1; }
}
@media (max-width: 760px) {
  .lead { grid-template-columns: 1fr; }
  .grid, .more ul { grid-template-columns: 1fr; }
  .quizband { grid-template-columns: 1fr; }
  .quizband img { position: absolute; right: -18px; bottom: -22px; width: 120px; opacity: .9; }
  .quizband .qtxt { padding-right: 70px; }
  figure.hero { margin-left: calc(-1 * var(--m)); margin-right: calc(-1 * var(--m)); }
  figure.hero img { border-radius: 0; aspect-ratio: 4 / 3; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bar nav a:not(.get) { display: none; }
  .bar img { height: 30px; }
  body { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; animation: none !important; }
}

/* Short answer, quick questions and the author (SEO/AEO, 2026-12-01) */
.answer { background: var(--blush); border-radius: 20px; padding: 22px 26px; margin-bottom: 36px; }
.answer .label { font-size: 14px; font-weight: 800; color: var(--plum); }
.answer p + p { margin-top: 6px; font-size: 19px; line-height: 1.5; }
.qa { margin-top: 8px; }
.qa h3 { font-size: 20px; }
.author { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding: 22px 24px; border: 2px solid var(--ink); border-radius: 20px; background: var(--paper); }
.author .av { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.author p { font-size: 16px; line-height: 1.5; }
main.index > .author { max-width: 900px; margin: clamp(56px, 7vw, 88px) auto 0; }
.meta a { color: inherit; text-decoration-color: var(--honey); text-underline-offset: 3px; }
