/*
Theme Name: Barista K Editorial AI
Theme URI: https://baristak.com/
Author: Barista K
Description: Mobile-first warm editorial homepage for Barista K AI practical education.
Version: 1.3.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: barista-k
*/

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Serif+TC:wght@500;600;700;900&display=swap");

:root {
  --ivory: #fff9f0;
  --paper: #fffdf8;
  --espresso: #2b211b;
  --orange: #c45f2a;
  --orange-dark: #a74920;
  --moss: #626b43;
  --moss-dark: #4b5332;
  --sand: #eadcc5;
  --line: #cbbba4;
  --yellow: #e3af43;
  --max: 1180px;
  --serif: "Noto Serif TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--espresso); font-family: var(--sans); font-size: 17px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
main { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { max-width: var(--max); margin: 0 auto; height: 90px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--espresso); color: var(--ivory); display: grid; place-items: center; font: 700 22px/1 var(--serif); }
.brand strong { display: block; font: 700 19px/1.2 var(--serif); letter-spacing: .01em; }
.brand small { display: block; margin-top: 3px; color: #75695e; font-size: 10px; letter-spacing: .18em; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.desktop-nav > a:not(.nav-cta) { position: relative; }
.desktop-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--orange); transition: right .25s ease; }
.desktop-nav > a:hover::after { right: 0; }
.nav-cta { background: var(--espresso); color: var(--paper); padding: 10px 18px; border-radius: 12px; }
.mobile-menu { display: none; }

.hero { max-width: var(--max); min-height: 730px; margin: 0 auto; padding: 88px 32px 110px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 68px; }
.eyebrow, .section-label { margin: 0 0 23px; font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 30px; height: 1px; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font: 700 clamp(54px, 6vw, 78px)/1.15 var(--serif); letter-spacing: -.04em; }
h1 em { color: var(--orange); font-style: normal; }
.hero-intro { max-width: 590px; margin-bottom: 30px; color: #5d5148; font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.button { min-height: 54px; padding: 14px 22px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; font-weight: 700; line-height: 1.35; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--orange); color: white; box-shadow: 0 10px 28px rgba(196,95,42,.22); }
.button--primary:hover { background: var(--orange-dark); }
.button--light { background: var(--ivory); color: var(--espresso); }
.text-link { font-weight: 700; border-bottom: 1px solid currentColor; }
.microcopy { margin: 18px 0 0; color: #776b61; font-size: 12px; }
.microcopy i { display: inline-block; width: 3px; height: 3px; margin: 0 7px 3px; border-radius: 50%; background: var(--orange); }

.hero-art { height: 540px; position: relative; background: var(--sand); border-radius: 54% 46% 42% 58% / 42% 44% 56% 58%; }
.coffee-ring { position: absolute; border: 2px solid rgba(43,33,27,.18); border-radius: 50%; }
.coffee-ring--one { width: 240px; height: 240px; right: 30px; top: 34px; }
.coffee-ring--two { width: 160px; height: 160px; left: 18px; bottom: 52px; border-color: rgba(196,95,42,.25); }
.prompt-card { position: absolute; padding: 25px; border: 1px solid var(--espresso); background: var(--paper); box-shadow: 9px 11px 0 var(--espresso); }
.prompt-card--front { width: 305px; right: 42px; top: 90px; transform: rotate(2deg); }
.prompt-card--front small { font-size: 10px; letter-spacing: .17em; }
.prompt-card--front p { margin: 20px 0 8px; font: 600 19px/1.65 var(--serif); }
.prompt-card--back { width: 205px; height: 120px; right: 5px; top: 60px; transform: rotate(9deg); background: var(--yellow); }
.prompt-card--back span { display: block; width: 75%; height: 4px; margin-bottom: 12px; background: rgba(43,33,27,.45); }
.prompt-card--back span:nth-child(2) { width: 50%; }
.cursor, .sample-cursor { display: inline-block; width: 2px; height: 20px; background: var(--orange); animation: blink 1s steps(2,end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dripper { position: absolute; left: 70px; bottom: 145px; width: 150px; height: 105px; background: var(--orange); clip-path: polygon(5% 0,95% 0,72% 78%,28% 78%); transform: rotate(-4deg); }
.dripper::before { content: ""; position: absolute; left: 24px; right: 24px; top: 15px; height: 36px; border: 2px solid var(--espresso); border-radius: 50%; }
.dripper span { position: absolute; left: 50%; bottom: -25px; width: 2px; height: 40px; background: var(--espresso); }
.cup { position: absolute; left: 83px; bottom: 50px; width: 125px; height: 88px; border: 3px solid var(--espresso); border-radius: 8px 8px 50px 50px; background: var(--ivory); }
.cup::after { content: ""; position: absolute; right: -33px; top: 12px; width: 40px; height: 46px; border: 3px solid var(--espresso); border-left: 0; border-radius: 0 40px 40px 0; }
.cup span { position: absolute; left: 13px; right: 13px; top: 9px; height: 12px; border-radius: 50%; background: var(--espresso); }
.art-note { position: absolute; right: 28px; bottom: 40px; margin: 0; font: 600 13px/1.65 var(--serif); transform: rotate(-5deg); }

.section { max-width: var(--max); margin: 0 auto; padding: 120px 32px; }
.section-heading { max-width: 610px; margin-bottom: 58px; }
.section-heading h2, .kit-copy h2, .about h2, .newsletter h2 { margin-bottom: 20px; font: 700 clamp(38px, 4vw, 58px)/1.25 var(--serif); letter-spacing: -.035em; }
.section-heading > p { color: #665a50; }
.route-list { border-top: 1px solid var(--line); }
.route-row { min-height: 142px; display: grid; grid-template-columns: 58px 78px 1fr 48px; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.route-row:hover { padding: 0 18px; background: rgba(234,220,197,.45); }
.route-row--soon { color: #76695e; cursor: default; }
.route-row--soon:hover { padding: 0; background: transparent; }
.soon-label, .soon-tag { justify-self: end; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: #75685e; font-size: 10px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.route-number { color: #897b6e; font-size: 12px; }
.route-icon { width: 56px; height: 56px; border: 1px solid var(--espresso); border-radius: 50%; display: grid; place-items: center; font: 500 25px/1 var(--serif); }
.route-copy strong { display: block; margin-bottom: 6px; font: 700 25px/1.4 var(--serif); }
.route-copy small { color: #6b5f55; font-size: 15px; }
.route-arrow { justify-self: end; font-size: 24px; }

.featured { background: var(--moss); color: var(--ivory); }
.featured-inner { max-width: var(--max); min-height: 720px; margin: 0 auto; padding: 120px 32px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 92px; }
.featured-copy h2 { max-width: 660px; margin-bottom: 24px; font: 700 clamp(39px, 4.3vw, 61px)/1.3 var(--serif); letter-spacing: -.035em; }
.featured-copy > p:not(.section-label) { margin-bottom: 34px; color: #e8e0d1; }
.prompt-sample { padding: 34px; color: var(--espresso); background: var(--paper); border-radius: 5px; box-shadow: 15px 18px 0 #30391f; transform: rotate(1.5deg); }
.prompt-top { display: flex; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.prompt-top button { border: 0; background: var(--sand); padding: 5px 10px; border-radius: 6px; color: var(--espresso); cursor: pointer; }
.prompt-sample > p { margin: 26px 0 15px; font-weight: 700; }
.prompt-sample dl { margin: 0; }
.prompt-sample dl div { display: grid; grid-template-columns: 70px 1fr; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.prompt-sample dt { color: var(--orange); font-weight: 700; }
.prompt-sample dd { margin: 0; }
.sample-cursor { margin-top: 20px; }

.kit { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 110px; }
.kit-cover-wrap { min-height: 580px; display: grid; place-items: center; position: relative; }
.kit-cover { width: min(355px, 78vw); aspect-ratio: .72; padding: 37px 34px; position: relative; z-index: 2; display: flex; flex-direction: column; background: var(--orange); color: var(--ivory); border: 2px solid var(--espresso); box-shadow: 15px 18px 0 var(--espresso); transform: rotate(-2deg); }
.kit-cover > p { font-size: 9px; letter-spacing: .2em; }
.kit-line { height: 1px; background: rgba(255,255,255,.65); }
.kit-cover h3 { margin: 38px 0 0; font: 700 42px/1.2 var(--serif); letter-spacing: -.04em; }
.kit-symbol { margin: auto 0; display: flex; align-items: flex-start; gap: 7px; font: 900 115px/.85 var(--serif); }
.kit-symbol span { margin-top: 8px; font: 400 25px/1 var(--sans); }
.kit-cover > small { font-size: 8px; letter-spacing: .13em; }
.cover-shadow { position: absolute; width: 320px; height: 430px; background: var(--sand); transform: rotate(7deg) translate(25px,18px); }
.kit-copy { max-width: 570px; }
.kit-copy > p:not(.section-label):not(.privacy) { color: #62564d; }
.kit-copy ul { display: grid; grid-template-columns: repeat(3,1fr); padding: 22px 0; margin: 0 0 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.kit-copy li { padding: 0 15px; font-size: 13px; font-weight: 700; text-align: center; border-right: 1px solid var(--line); }
.kit-copy li:first-child { padding-left: 0; }
.kit-copy li:last-child { padding-right: 0; border-right: 0; }
.email-form { display: flex; gap: 10px; }
.email-form input { min-width: 0; flex: 1; height: 56px; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--espresso); }
.email-form input:focus { outline: 3px solid rgba(196,95,42,.22); border-color: var(--orange); }
.email-form button { min-width: 142px; height: 56px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--espresso); color: white; font-weight: 700; cursor: pointer; }
.email-form button:disabled, .email-form input:disabled { opacity: .68; cursor: not-allowed; }
.baristak-form-embed { width: 100%; }
.baristak-form-embed form { margin: 0 !important; }
.form-consent { display: flex; align-items: flex-start; gap: 9px; margin: 11px 0 0; color: #6e6157; font-size: 11px; line-height: 1.55; }
.form-consent input { width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--orange); }
.form-consent a { text-decoration: underline; }
.form-notice { margin: 0 0 12px; padding: 10px 13px; border-radius: 9px; background: #edf1e2; color: #364020; font-size: 13px; font-weight: 600; }
.form-notice--error { background: #f7e5dc; color: #7d2e18; }
.mailerlite-wrap { width: 100%; min-height: 76px; }
.mailerlite-wrap .ml-form-embedContainer,
.mailerlite-wrap .ml-form-embedWrapper,
.mailerlite-wrap .ml-form-embedBody { width: 100% !important; max-width: none !important; margin: 0 !important; background: transparent !important; }
.mailerlite-wrap .ml-form-embedBody { padding: 0 !important; }
.mailerlite-wrap .ml-form-fieldRow input { min-height: 56px !important; border: 1px solid var(--line) !important; border-radius: 12px !important; font-family: var(--sans) !important; font-size: 16px !important; }
.mailerlite-wrap .ml-form-embedSubmit button { min-height: 56px !important; border-radius: 12px !important; background: var(--espresso) !important; font-family: var(--sans) !important; font-weight: 700 !important; }
.newsletter .mailerlite-wrap .ml-form-fieldRow input { background: rgba(255,255,255,.96) !important; }
.newsletter .mailerlite-wrap .ml-form-embedSubmit button { background: var(--espresso) !important; }
.privacy { margin: 9px 0 0; color: #7d7065; font-size: 11px; }

.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 110px; border-top: 1px solid var(--line); }
.about-copy > p:not(.section-label) { max-width: 610px; color: #62564d; }
.principles { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.principles li { min-height: 124px; display: grid; grid-template-columns: 48px 1fr; align-content: center; column-gap: 12px; border-bottom: 1px solid var(--line); }
.principles span { grid-row: 1 / 3; color: var(--orange); font-size: 12px; }
.principles strong { font: 700 22px/1.4 var(--serif); }
.principles small { color: #75685e; }

.articles { padding-top: 80px; }
.section-heading--wide { max-width: none; }
.article-list { border-top: 1px solid var(--espresso); }
.article-row { min-height: 176px; display: grid; grid-template-columns: 95px 1fr 55px; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.article-number { color: var(--orange); font: 700 20px/1 var(--serif); }
.article-row p { margin-bottom: 8px; color: #776b61; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.article-row h3 { max-width: 760px; margin: 0; font: 700 28px/1.45 var(--serif); }
.article-row > a { width: 48px; height: 48px; border: 1px solid var(--espresso); border-radius: 50%; display: grid; place-items: center; font-size: 19px; transition: background .2s, color .2s; }
.article-row > a:hover { background: var(--espresso); color: white; }
.article-row--soon { color: #76695e; }

.newsletter { min-height: 610px; padding: 100px max(32px, calc((100vw - var(--max))/2 + 32px)); display: grid; grid-template-columns: .65fr 1.35fr; align-items: center; gap: 110px; background: var(--orange); color: var(--paper); }
.newsletter > div:last-child { max-width: 700px; }
.newsletter p { color: #fff1e7; }
.newsletter-mark { width: 300px; height: 300px; position: relative; border: 2px solid var(--espresso); border-radius: 50%; display: grid; place-items: center; }
.newsletter-mark::before, .newsletter-mark::after { content: ""; position: absolute; border: 2px solid rgba(43,33,27,.5); border-radius: 50%; }
.newsletter-mark::before { width: 235px; height: 235px; }
.newsletter-mark::after { width: 165px; height: 165px; }
.newsletter-mark span { position: relative; z-index: 2; font: 900 105px/1 var(--serif); }
.newsletter-mark i { width: 2px; height: 100px; position: absolute; right: 48px; top: -26px; background: var(--espresso); transform: rotate(38deg); }
.email-form--inverse { max-width: 590px; }
.email-form--inverse input { background: rgba(255,255,255,.95); border-color: transparent; }
.email-form--inverse button { background: var(--espresso); }
.newsletter small { display: block; margin-top: 10px; color: #ffe0d0; font-size: 11px; }

footer { min-height: 390px; padding: 82px max(32px, calc((100vw - var(--max))/2 + 32px)) 30px; display: grid; grid-template-columns: 1fr 1fr; background: var(--espresso); color: var(--ivory); }
.footer-brand strong { font: 700 35px/1.2 var(--serif); }
.footer-brand p { margin-top: 20px; color: #cfc3b9; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 12px 42px; font-size: 14px; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { grid-column: 1 / -1; align-self: end; padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid #574a40; color: #aa9e94; font-size: 11px; }

/* Prompt Library — CPT UI + ACF */
.prompt-main { overflow: visible; }
.library-hero { max-width: var(--max); min-height: 510px; margin: 0 auto; padding: 100px 32px 90px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 70px; border-bottom: 1px solid var(--line); }
.library-hero > div:first-child { max-width: 800px; }
.library-hero h1 { margin-bottom: 24px; font: 700 clamp(52px, 7vw, 88px)/1.12 var(--serif); letter-spacing: -.05em; }
.library-hero > div:first-child > p:last-child { max-width: 680px; color: #66594f; font-size: 18px; }
.library-count { width: 150px; height: 150px; border: 1px solid var(--espresso); border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(4deg); }
.library-count strong { display: block; color: var(--orange); font: 700 48px/1 var(--serif); }
.library-count span { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.library-content { max-width: var(--max); margin: 0 auto; padding: 68px 32px 120px; }
.library-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.library-filters a { min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); font-size: 13px; font-weight: 700; }
.library-filters a:hover, .library-filters a.is-active { border-color: var(--espresso); background: var(--espresso); color: var(--ivory); }
.library-filters small { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: rgba(196,95,42,.18); color: currentColor; font-size: 9px; }
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.library-card { min-height: 390px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; background: var(--paper); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.library-card:hover { border-color: var(--espresso); transform: translateY(-5px); box-shadow: 9px 11px 0 var(--sand); }
.library-card__meta { display: flex; gap: 7px; }
.library-card__meta span { padding: 4px 8px; border-radius: 999px; background: var(--sand); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.library-card__category { margin: 28px 0 10px; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.library-card h2 { margin-bottom: 16px; font: 700 24px/1.45 var(--serif); letter-spacing: -.02em; }
.library-card__excerpt { color: #675a50; font-size: 14px; line-height: 1.7; }
.library-card__link { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--sand); display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.library-empty { padding: 80px 20px; text-align: center; border: 1px dashed var(--line); }
.library-empty h2 { font: 700 32px/1.35 var(--serif); }
.navigation.pagination { margin-top: 50px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.nav-links .page-numbers { min-width: 42px; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-size: 13px; }
.nav-links .current { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }

.prompt-single__hero { max-width: 980px; margin: 0 auto; padding: 72px 32px 88px; text-align: center; }
.breadcrumbs { margin-bottom: 48px; display: flex; justify-content: center; gap: 9px; color: #786b60; font-size: 12px; }
.breadcrumbs a:hover { color: var(--orange); }
.prompt-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.prompt-badges a, .prompt-badges span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.prompt-badges a { border-color: var(--orange); color: var(--orange); }
.prompt-single__hero h1 { margin-bottom: 25px; font: 700 clamp(46px, 6vw, 72px)/1.2 var(--serif); letter-spacing: -.045em; }
.prompt-single__hero > p { max-width: 760px; margin: 0 auto 23px; color: #66594f; font-size: 18px; }
.prompt-version { display: flex; justify-content: center; gap: 18px; color: #887b70; font-size: 10px; letter-spacing: .08em; }
.prompt-single__body { max-width: var(--max); margin: 0 auto; padding: 0 32px 120px; display: grid; grid-template-columns: 210px 1fr; align-items: start; gap: 60px; }
.prompt-toc { padding: 22px 0; position: sticky; top: 20px; border-top: 1px solid var(--espresso); border-bottom: 1px solid var(--line); display: grid; }
.prompt-toc p { margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.prompt-toc a { padding: 7px 0; color: #75685d; font-size: 13px; }
.prompt-toc a:hover { color: var(--orange); }
.prompt-sections { min-width: 0; }
.prompt-block { padding: 35px; border-radius: 18px; background: var(--moss); color: var(--ivory); }
.prompt-block__heading { margin-bottom: 25px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.prompt-block__heading .section-label { margin-bottom: 9px; }
.prompt-block h2, .prompt-detail h2 { margin: 0; font: 700 34px/1.35 var(--serif); }
.prompt-block__heading button { min-height: 46px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--ivory); color: var(--espresso); font-weight: 700; cursor: pointer; }
.prompt-block pre { max-height: 620px; margin: 0; padding: 26px; overflow: auto; white-space: pre-wrap; word-break: break-word; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: #424a2e; color: #fffdf8; font: 14px/1.8 var(--sans); }
.prompt-fallback { padding: 24px; border-radius: 10px; background: #424a2e; }
.prompt-detail { padding: 75px 0; border-bottom: 1px solid var(--line); }
.prompt-detail > h2 { margin-bottom: 30px; }
.variable-list { display: flex; flex-wrap: wrap; gap: 10px; }
.variable-list code { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--orange-dark); font: 600 12px/1.4 var(--sans); }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.example-grid > div { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.example-grid h3 { margin-bottom: 16px; font: 700 19px/1.4 var(--serif); }
.example-grid pre { max-height: 480px; margin: 0; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #5f5349; font: 13px/1.75 var(--sans); }
.prompt-tips > div { padding: 25px 30px; border-left: 4px solid var(--orange); background: var(--sand); }
.prompt-tips ul { margin: 0; padding-left: 22px; }
.prompt-tips li + li { margin-top: 9px; }
.related-prompts { max-width: var(--max); margin: 0 auto; padding: 30px 32px 120px; }
.related-prompts__heading { margin-bottom: 38px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.related-prompts__heading h2 { margin: 0; font: 700 42px/1.3 var(--serif); }

@media (max-width: 980px) {
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .prompt-single__body { grid-template-columns: 1fr; gap: 30px; }
  .prompt-toc { position: static; grid-template-columns: repeat(4, auto); gap: 8px 18px; overflow-x: auto; }
  .prompt-toc p { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { width: 46px; height: 46px; border: 1px solid var(--espresso); border-radius: 50%; display: grid; place-content: center; gap: 6px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 19px; height: 1px; background: var(--espresso); }
  .mobile-menu nav { width: 230px; padding: 14px; position: absolute; right: 0; top: 54px; display: grid; background: var(--paper); border: 1px solid var(--line); box-shadow: 8px 8px 0 var(--espresso); }
  .mobile-menu nav a { padding: 10px; border-bottom: 1px solid var(--sand); font-size: 14px; font-weight: 600; }
  .mobile-menu nav a:last-child { border: 0; background: var(--orange); color: white; text-align: center; margin-top: 8px; }
  .hero { grid-template-columns: 1fr; padding-top: 62px; gap: 70px; }
  .hero-copy { max-width: 680px; }
  .hero-art { width: min(620px, 100%); justify-self: center; }
  .featured-inner, .kit, .about { grid-template-columns: 1fr; }
  .featured-inner { gap: 65px; }
  .featured-copy { max-width: 680px; }
  .prompt-sample { width: min(580px, 95%); justify-self: center; }
  .kit { gap: 50px; }
  .kit-copy { max-width: 650px; }
  .about { gap: 55px; }
  .newsletter { grid-template-columns: 1fr; gap: 55px; }
  .newsletter-mark { width: 220px; height: 220px; }
  .newsletter-mark::before { width: 165px; height: 165px; }
  .newsletter-mark::after { width: 110px; height: 110px; }
  .newsletter-mark span { font-size: 78px; }
  .library-hero { min-height: 430px; padding-top: 70px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { height: 78px; padding: 0 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 17px; }
  .hero { min-height: auto; padding: 62px 20px 76px; }
  h1 { margin-bottom: 24px; font-size: clamp(43px, 13vw, 55px); }
  .hero-intro { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 17px; }
  .button--primary { width: 100%; }
  .hero-actions .text-link { align-self: center; }
  .microcopy { text-align: center; }
  .hero-art { height: 440px; border-radius: 45% 55% 45% 55% / 38% 42% 58% 62%; }
  .prompt-card--front { width: 258px; right: 18px; top: 66px; padding: 20px; }
  .prompt-card--front p { font-size: 16px; }
  .prompt-card--back { right: -2px; top: 42px; }
  .coffee-ring--one { width: 195px; height: 195px; }
  .coffee-ring--two { width: 130px; height: 130px; }
  .dripper { left: 42px; bottom: 122px; width: 125px; }
  .cup { left: 50px; bottom: 34px; width: 105px; height: 76px; }
  .art-note { right: 18px; bottom: 22px; }
  .section { padding: 76px 20px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2, .kit-copy h2, .about h2, .newsletter h2 { font-size: 35px; }
  .route-row { min-height: 132px; grid-template-columns: 36px 52px 1fr 25px; gap: 11px; }
  .route-icon { width: 46px; height: 46px; font-size: 21px; }
  .route-copy strong { font-size: 20px; }
  .route-copy small { font-size: 13px; line-height: 1.5; }
  .route-arrow { font-size: 18px; }
  .featured-inner { min-height: auto; padding: 78px 20px 92px; gap: 55px; }
  .featured-copy h2 { font-size: 37px; }
  .featured-copy .button { width: 100%; }
  .prompt-sample { width: 94%; padding: 25px 21px; box-shadow: 10px 12px 0 #30391f; }
  .kit-cover-wrap { min-height: 505px; }
  .kit-cover { width: min(310px, 82vw); padding: 30px 28px; }
  .kit-cover h3 { font-size: 36px; }
  .kit-symbol { font-size: 95px; }
  .cover-shadow { width: 270px; height: 380px; }
  .kit-copy ul { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
  .kit-copy li { padding: 8px 0; border-right: 0; border-bottom: 1px solid rgba(203,187,164,.6); text-align: left; }
  .kit-copy li:last-child { border-bottom: 0; }
  .email-form { flex-direction: column; }
  .email-form button { width: 100%; }
  .principles li { min-height: 112px; }
  .article-row { min-height: 160px; grid-template-columns: 50px 1fr 38px; gap: 12px; }
  .article-row h3 { font-size: 21px; }
  .article-row > a { width: 36px; height: 36px; }
  .newsletter { min-height: auto; padding: 76px 20px 82px; }
  .newsletter-mark { width: 160px; height: 160px; }
  .newsletter-mark::before { width: 120px; height: 120px; }
  .newsletter-mark::after { width: 76px; height: 76px; }
  .newsletter-mark span { font-size: 58px; }
  footer { min-height: 520px; padding: 70px 20px 26px; grid-template-columns: 1fr; gap: 50px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-column: 1; }
  .library-hero { min-height: auto; padding: 70px 20px 65px; grid-template-columns: 1fr; gap: 30px; }
  .library-hero h1 { font-size: 46px; }
  .library-count { width: 112px; height: 112px; }
  .library-count strong { font-size: 38px; }
  .library-content { padding: 48px 20px 80px; }
  .library-filters { flex-wrap: nowrap; margin-right: -20px; padding-right: 20px; overflow-x: auto; }
  .library-filters a { flex: 0 0 auto; }
  .library-grid { grid-template-columns: 1fr; }
  .library-card { min-height: 330px; }
  .prompt-single__hero { padding: 55px 20px 65px; text-align: left; }
  .breadcrumbs, .prompt-badges, .prompt-version { justify-content: flex-start; }
  .prompt-single__hero h1 { font-size: 42px; }
  .prompt-single__hero > p { font-size: 16px; }
  .prompt-single__body { padding: 0 20px 85px; }
  .prompt-toc { grid-template-columns: repeat(4, max-content); }
  .prompt-block { padding: 24px 18px; border-radius: 14px; }
  .prompt-block__heading { align-items: stretch; flex-direction: column; }
  .prompt-block__heading button { width: 100%; }
  .prompt-block h2, .prompt-detail h2 { font-size: 29px; }
  .prompt-block pre { padding: 18px; font-size: 13px; }
  .prompt-detail { padding: 58px 0; }
  .example-grid { grid-template-columns: 1fr; }
  .related-prompts { padding: 10px 20px 85px; }
  .related-prompts__heading { align-items: flex-start; flex-direction: column; }
  .related-prompts__heading h2 { font-size: 34px; }
}

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