/*
Theme Name: 食內譜
Theme URI: https://shineipu.tw
Author: 食內譜
Description: 為食內譜官網與料理誌打造的 WordPress 區塊佈景主題。
Version: 0.3.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: shineipu
*/

:root {
	--color-paper: #fbf8f1;
	--color-paper-deep: #f1eadc;
	--color-ink: #29291f;
	--color-olive: #596c3c;
	--color-olive-dark: #3f4e2b;
	--color-tomato: #b65b43;
	--color-sand: #ded5c5;
	--font-body: "Noto Sans TC", "PingFang TC", sans-serif;
	--font-display: "Noto Serif TC", "Songti TC", serif;
	--page-width: 1200px;
	--ease-silk: cubic-bezier(.2,.75,.2,1);
	--ease-orbit: cubic-bezier(.77,0,.18,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--color-paper); }
body { margin: 0; color: var(--color-ink); background: var(--color-paper); font-family: var(--font-body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-tomato); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--color-tomato); outline-offset: 4px; }
.site-shell { overflow-x: clip; overflow-y: visible; }
.site-header { position: absolute; z-index: 30; inset: 18px 0 auto; padding: 0 24px; transition: inset .45s var(--ease-silk), transform .45s var(--ease-silk); }
.header-inner { width: min(100%, 1180px); min-height: 66px; margin: 0 auto; padding: 8px 10px 8px 22px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid rgba(41,41,31,.08); border-radius: 999px; background: rgba(251,248,241,.9); box-shadow: 0 10px 35px rgba(41,41,31,.08); backdrop-filter: blur(16px); }
.site-header.is-scrolled { position: fixed; inset: 10px 0 auto; animation: header-dock .48s var(--ease-silk) both; }
.site-header.is-scrolled .header-inner { min-height: 58px; background: rgba(251,248,241,.96); box-shadow: 0 12px 35px rgba(41,41,31,.14); }
.site-header.is-scrolled .brand { font-size: 21px; }
.site-header.is-scrolled .brand-mark { width: 28px; height: 28px; }
.scroll-progress { position: fixed; z-index: 50; inset: 0 0 auto; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--color-tomato); transform: scaleX(var(--scroll-progress,0)); transform-origin: left center; }
.primary-nav a[aria-current="location"]:not(.nav-cta) { color: var(--color-tomato); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-olive-dark); font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50% 50% 46% 54%; color: var(--color-paper); background: var(--color-olive); transform: rotate(-8deg); }
.brand-mark svg { width: 18px; height: 18px; transform: rotate(8deg); }
.primary-nav { display: flex; align-items: center; gap: clamp(18px,3vw,40px); font-size: 14px; }
.primary-nav a { padding: 8px 0; transition: color .2s ease; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; color: #fffdf7; background: var(--color-olive); font-size: 14px; font-weight: 600; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; box-shadow: 0 4px 12px rgba(63,78,43,.16); }
.nav-cta:hover, .button:hover { color: #fffdf7; background: var(--color-olive-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(63,78,43,.2); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--color-paper-deep); color: var(--color-ink); }
.hero { --glow-x: 76%; --glow-y: 48%; position: relative; min-height: min(850px,100svh); display: grid; align-items: center; padding: 140px 24px 92px; isolation: isolate; overflow: hidden; background: #e9dfc9; }
.hero-art { position: absolute; z-index: -2; inset: -4% -2%; overflow: hidden; animation: hero-settle 1.4s var(--ease-silk) both; }
.has-gsap .hero-art { animation: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; transform: translate3d(var(--hero-x,0px),calc(var(--hero-y,0px) + var(--hero-scroll,0px)),0) scale(1.045); will-change: transform; }
.hero-char { display: inline-block; will-change: transform,opacity,filter; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: radial-gradient(ellipse at var(--glow-x) var(--glow-y),rgba(255,249,224,.17),transparent 34%),linear-gradient(90deg,rgba(251,248,241,.92) 0%,rgba(251,248,241,.76) 36%,rgba(251,248,241,.08) 72%),linear-gradient(0deg,rgba(41,41,31,.2),transparent 34%); pointer-events: none; }
.hero::after { position: absolute; z-index: 0; right: 8%; bottom: 9%; width: clamp(150px,20vw,270px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.72); border-radius: 46% 54% 55% 45%; content: ""; opacity: .8; transform: translate3d(var(--ring-x,0px),var(--ring-y,0px),0); animation: orbit 22s ease-in-out infinite alternate; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: min(100%,var(--page-width)); margin: 0 auto; }
.hero-copy { width: min(650px,65%); }
.hero-title-line { display: block; }
.hero-title-line em { display: inline-block; }
.motion-ready [data-intro] { opacity: 0; transform: translate3d(0,20px,0); filter: blur(5px); }
.motion-ready.intro-ready [data-intro] { animation: intro-rise .82s var(--intro-delay,0ms) var(--ease-silk) both; }
.hero .eyebrow { will-change: opacity,transform; }
.hero-glow { position: absolute; z-index: 1; top: 19%; left: 52%; width: clamp(180px,31vw,420px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; opacity: .55; transform: translate3d(var(--ring-x,0px),var(--ring-y,0px),0) rotate(-14deg); pointer-events: none; }
.hero-glow::before,.hero-glow::after { position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; content: ""; }
.hero-glow::after { inset: 26%; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 6px 13px; border: 1px solid rgba(89,108,60,.2); border-radius: 999px; color: var(--color-olive-dark); background: rgba(251,248,241,.78); font-size: 12px; letter-spacing: .08em; }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--color-tomato); content: ""; }
.hero h1 { max-width: 650px; margin: 0; font-family: var(--font-display); font-size: clamp(42px,7vw,88px); font-weight: 600; letter-spacing: -.045em; line-height: 1.22; }
.hero h1 em { color: var(--color-olive); font-style: normal; }
.hero-description { max-width: 440px; margin: 23px 0 30px; color: #545246; font-size: clamp(15px,1.5vw,18px); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button-secondary { color: var(--color-ink); background: rgba(251,248,241,.75); box-shadow: inset 0 0 0 1px rgba(41,41,31,.15); }
.button-secondary:hover { color: var(--color-ink); background: #fffdf8; }
.hero-note { margin: 22px 0 0; color: #6b695e; font-size: 12px; }
.hero-scroll { position: absolute; right: max(24px,calc((100vw - var(--page-width))/2)); bottom: 25px; display: flex; align-items: center; gap: 10px; color: #fffdf7; font-size: 11px; letter-spacing: .12em; text-shadow: 0 1px 8px rgba(0,0,0,.35); writing-mode: vertical-rl; }
.hero-scroll::after { width: 1px; height: 46px; background: currentColor; content: ""; animation: scroll-line 1.6s ease-in-out infinite alternate; }
.section { padding: clamp(78px,10vw,132px) 24px; }
.section-inner { width: min(100%,var(--page-width)); margin: 0 auto; }
.section-heading { max-width: 710px; margin: 0 auto 48px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading h2, .closing h2 { margin: 0; font-family: var(--font-display); font-size: clamp(32px,4.5vw,56px); font-weight: 600; letter-spacing: -.035em; line-height: 1.35; }
.section-heading p { margin: 16px auto 0; color: #6b695e; }
.story-section { background: var(--color-paper); }
.story-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px,8vw,108px); }
.story-image { position: relative; min-height: 440px; overflow: hidden; border-radius: 48% 48% 18px 18px; background: var(--color-paper-deep); isolation: isolate; }
.story-photo { position: absolute; inset: -4% 0; width: 100%; height: 108%; object-fit: cover; object-position: 68% center; transform: translate3d(0,var(--story-y,0px),0) scale(1.04); transition: transform .9s var(--ease-silk),filter .7s ease; will-change: transform; }
.story-image::after { position: absolute; z-index: 0; inset: 35% 0 0; background: linear-gradient(0deg,rgba(32,34,25,.32),transparent); content: ""; pointer-events: none; }
.story-image:hover .story-photo { filter: saturate(1.08); transform: translate3d(0,var(--story-y,0px),0) scale(1.09); }
.story-photo-caption { position: absolute; z-index: 1; bottom: 23px; left: 24px; color: #fffdf7; font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.story-sticker { position: absolute; right: -14px; bottom: 32px; width: 130px; aspect-ratio: 1; display: grid; place-items: center; padding: 15px; border-radius: 50%; color: #fffdf7; background: var(--color-tomato); font-family: var(--font-display); font-size: 16px; line-height: 1.6; text-align: center; transform: rotate(9deg); }
.story-image .story-sticker { z-index: 2; animation: sticker-drift 5.5s ease-in-out infinite alternate; }
.story-copy .eyebrow { margin-bottom: 16px; }
.story-copy h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(32px,4vw,50px); font-weight: 600; line-height: 1.4; letter-spacing: -.03em; }
.story-copy p { color: #666458; }
.story-list { display: grid; gap: 0; margin: 28px 0 32px; padding: 0; list-style: none; }
.story-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--color-sand); }
.story-list li b { transition: transform .45s var(--ease-silk),color .3s ease; }
.story-list li:hover b { color: var(--color-olive); transform: translateX(6px) rotate(-5deg); }
.story-list b { color: var(--color-tomato); font-family: var(--font-display); font-size: 20px; }
.story-list strong { display: block; font-size: 15px; }
.story-list span { color: #777467; font-size: 13px; }
.steps-section { position: relative; overflow: visible; background: var(--color-paper-deep); }
.steps-section::before { position: absolute; top: -170px; right: -90px; width: 430px; aspect-ratio: 1; border: 1px solid rgba(89,108,60,.16); border-radius: 50%; box-shadow: 0 0 0 32px rgba(89,108,60,.035),0 0 0 64px rgba(89,108,60,.025); content: ""; }
.step-tabs { position: relative; z-index: 1; display: flex; height: clamp(320px,46vh,470px); border-top: 1px solid #d8cebd; }
.step-tab { position: relative; display: flex; flex: .11 1 clamp(92px,12vw,160px); flex-direction: column; justify-content: flex-end; min-width: 0; min-height: 0; height: 100%; overflow: hidden; padding: 24px clamp(16px,3vw,40px); border: 0; border-right: 1px solid #d8cebd; background: transparent; color: var(--color-ink); cursor: pointer; text-align: left; transition: flex-grow .9s var(--ease-orbit), background .45s ease, transform .55s var(--ease-silk), box-shadow .4s ease; }
.step-tab:last-child { border-right: 0; }
.step-tab:hover, .step-tab[aria-selected="true"] { background: rgba(251,248,241,.66); }
.step-tab[aria-selected="true"] { z-index: 1; flex-grow: 1; transform: translateY(-8px); box-shadow: 0 14px 30px rgba(63,78,43,.07); }
.step-tab::after { position: absolute; right: 24px; bottom: 0; left: 24px; height: 2px; background: var(--color-olive); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .65s var(--ease-silk); }
.step-tab[aria-selected="true"]::after { transform: scaleX(1); }
.step-num { display: block; margin: 0 0 auto; color: var(--color-olive); font-family: var(--font-display); font-size: clamp(64px,8vw,108px); line-height: .9; transition: color .5s ease,font-size .65s var(--ease-silk); }
.step-tab[aria-selected="true"] .step-num { font-size: clamp(130px,22vw,270px); }
.step-tab[aria-selected="true"] .step-num { animation: number-arrive .55s var(--ease-silk) both; }
.step-tab:nth-child(2) .step-num { color: var(--color-tomato); }
.step-tab:nth-child(3) .step-num { color: #9b9a63; }
.step-title { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: clamp(19px,2.3vw,26px); }
.step-tab:not([aria-selected="true"]) .step-title { align-self: center; margin: 20px 0 0; font-size: 15px; writing-mode: vertical-rl; }
.step-detail { display: block; max-width: 300px; color: #706e61; font-size: 14px; line-height: 1.8; opacity: 0; transform: translateY(14px); visibility: hidden; transition: opacity .45s ease,transform .55s var(--ease-silk),visibility .45s; }
.step-tab[aria-selected="true"] .step-detail { opacity: 1; transform: translateY(0); visibility: visible; transition-delay: .25s; }
.step-progress { width: 100%; height: 2px; margin-top: 14px; overflow: hidden; background: rgba(89,108,60,.16); }
.step-progress span { display: block; width: 100%; height: 100%; background: var(--color-tomato); transform: scaleX(var(--step-progress,.3333)); transform-origin: left; transition: transform .75s var(--ease-silk); }
.steps-footnote { margin: 22px 0 0; color: #777467; font-size: 12px; text-align: center; transition: opacity .2s ease,transform .3s var(--ease-silk); }
.steps-footnote.is-changing { opacity: 0; transform: translateY(6px); }
.journal-section { background: #fffdf8; }
.journal-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.journal-top .section-heading { margin: 0; text-align: left; }
.journal-top .section-heading .eyebrow { margin-bottom: 12px; }
.journal-top .section-heading h2 { font-size: clamp(34px,4vw,52px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--color-olive-dark); font-size: 14px; font-weight: 600; white-space: nowrap; }
.text-link::after { content: "↗"; transition: transform .2s ease; }
.text-link:hover::after { transform: translate(3px,-3px); }
.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.post-card { min-width: 0; transition: transform .55s var(--ease-silk); }
.post-card:hover { transform: translateY(-7px); }
.post-cover { position: relative; display: block; aspect-ratio: 1.35; overflow: hidden; border-radius: 12px; background: var(--color-paper-deep); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.2,1); }
.post-card:hover .post-cover img { transform: scale(1.06); }
.post-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--color-olive); font-family: var(--font-display); font-size: 38px; background: radial-gradient(ellipse at 65% 35%,#eee3cd,transparent 60%),#e7eadc; }
.post-meta { display: flex; gap: 12px; margin: 18px 0 9px; color: #777467; font-size: 12px; }
.post-category { color: var(--color-tomato); }
.post-card h3 { margin: 0; font-family: var(--font-display); font-size: clamp(19px,2vw,24px); font-weight: 600; line-height: 1.55; }
.post-card p { margin: 9px 0 0; color: #706e61; font-size: 14px; line-height: 1.8; }
.empty-posts { grid-column: 1/-1; padding: 36px; border: 1px dashed var(--color-sand); border-radius: 12px; color: #706e61; text-align: center; }
.closing-section { min-height: 88svh; display: grid; align-items: center; padding: 76px 24px; overflow: hidden; background: #fffdf8; }
.closing { position: relative; display: flex; align-items: center; width: min(100%,var(--page-width)); min-height: clamp(520px,72svh,740px); margin: 0 auto; overflow: hidden; padding: clamp(42px,7vw,78px); border-radius: 24px; color: #fffdf7; background: var(--color-olive-dark); isolation: isolate; }
.closing-art { position: absolute; z-index: -2; inset: -6% 0; overflow: hidden; }
.closing-art img { width: 100%; height: 112%; object-fit: cover; object-position: 60% 60%; opacity: .7; }
.closing::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg,rgba(38,50,30,.95) 0%,rgba(48,59,39,.83) 48%,rgba(45,54,34,.28) 100%),linear-gradient(0deg,rgba(22,29,19,.35),transparent 65%); }
.closing::before { position: absolute; z-index: 0; top: -100px; right: -55px; width: 390px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.05),0 0 0 70px rgba(255,255,255,.035); content: ""; }
.closing::before { animation: orbit 18s ease-in-out infinite alternate; }
.closing-content { position: relative; z-index: 2; width: min(100%,700px); }
.closing-leaves { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.closing-leaf { position: absolute; top: -8%; left: var(--leaf-left); width: var(--leaf-size); height: calc(var(--leaf-size) * .68); border-radius: 85% 0 85% 0; background: var(--leaf-color,var(--color-paper-deep)); opacity: .82; animation: leaf-fall var(--leaf-duration) linear var(--leaf-delay) infinite; }
.closing .eyebrow { color: #fffdf7; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.closing h2 { max-width: 700px; }
.closing p { max-width: 550px; color: rgba(255,253,247,.76); }
.closing .button { color: var(--color-ink); background: #f2e5c9; }
.site-footer { padding: 32px 24px; border-top: 1px solid var(--color-sand); background: var(--color-paper); }
.footer-inner { width: min(100%,var(--page-width)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-note { color: #777467; font-size: 12px; }
.footer-nav { display: flex; gap: 22px; font-size: 13px; }
.page-main { min-height: 60vh; padding: 150px 24px 100px; }
.page-main > * { width: min(100%,var(--page-width)); margin-right: auto; margin-left: auto; }
.journal-header { margin-bottom: 45px; }
.journal-header .eyebrow { margin-bottom: 10px; }
.journal-header h1, .article-header h1 { margin: 0; font-family: var(--font-display); font-size: clamp(38px,6vw,70px); font-weight: 600; letter-spacing: -.04em; line-height: 1.3; }
.journal-header p { max-width: 560px; color: #706e61; }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 42px 22px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination .page-numbers { min-width: 42px; padding: 8px 12px; border: 1px solid var(--color-sand); border-radius: 999px; text-align: center; }
.pagination .current { color: #fffdf7; border-color: var(--color-olive); background: var(--color-olive); }
.article { width: min(100%,800px); margin: 0 auto; }
.article-header { margin: 0 auto 36px; text-align: center; }
.article-header .post-meta { justify-content: center; margin: 0 0 18px; }
.article-lede { max-width: 650px; margin: 20px auto 0; color: #706e61; font-size: 18px; }
.article-featured { width: 100%; max-height: 540px; margin: 0 0 42px; border-radius: 14px; object-fit: cover; }
.article-content { color: #403f35; font-size: 17px; line-height: 2; }
.article-content h2, .article-content h3 { margin: 1.8em 0 .55em; color: var(--color-ink); font-family: var(--font-display); line-height: 1.5; }
.article-content h2 { font-size: 32px; }
.article-content h3 { font-size: 24px; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote { margin: 0 0 1.4em; }
.article-content blockquote { padding: 8px 0 8px 24px; border-left: 3px solid var(--color-tomato); color: var(--color-olive-dark); font-family: var(--font-display); font-size: 21px; }
.article-content img { border-radius: 10px; }
.article-back { display: inline-flex; margin-top: 44px; color: var(--color-olive); font-size: 14px; font-weight: 600; }
.not-found { text-align: center; }
.not-found h1 { font-family: var(--font-display); font-size: 56px; }
.has-motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s var(--ease-silk); transition-delay: var(--reveal-delay,0ms); }
.has-motion [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.has-motion [data-reveal="left"] { transform: translateX(-28px); }
.has-motion [data-reveal="left"].is-visible { transform: translateX(0); }
.has-motion [data-reveal="right"] { transform: translateX(28px); }
.has-motion [data-reveal="right"].is-visible { transform: translateX(0); }
@keyframes hero-settle { from { transform: scale(1.08); filter: saturate(.78); } to { transform: scale(1.035); filter: saturate(1); } }
@keyframes intro-rise { from { opacity: 0; transform: translate3d(0,20px,0); filter: blur(5px); } to { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); } }
@keyframes header-dock { from { opacity: .7; transform: translateY(-16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sticker-drift { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes number-arrive { from { opacity: .55; transform: translateY(9px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes leaf-fall { to { transform: translate3d(var(--leaf-drift),110svh,0) rotate(540deg); } }
@keyframes orbit { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-30px,-16px) rotate(18deg); } }
@keyframes scroll-line { to { transform: scaleY(.45); transform-origin: top; opacity: .55; } }
@media (max-width: 800px) {
	.site-header { top: 12px; padding: 0 14px; }
	.header-inner { min-height: 58px; padding-left: 15px; }
	.brand { font-size: 21px; }
	.menu-toggle { display: grid; place-items: center; }
	.primary-nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 90px 24px 30px; background: var(--color-paper); font-family: var(--font-display); font-size: 25px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
	.primary-nav.is-open { z-index: -1; opacity: 1; visibility: visible; transform: translateY(0); }
	.nav-cta { min-height: 50px; margin-top: 10px; font-family: var(--font-body); font-size: 15px; }
	.hero { min-height: 790px; min-height: max(700px,100svh); padding: 125px 22px 110px; align-items: start; }
	.hero-art { inset: -2% -12%; }
	.hero-art img { object-position: 63% center; }
	.hero::before { background: radial-gradient(ellipse at var(--glow-x) var(--glow-y),rgba(255,249,224,.12),transparent 36%),linear-gradient(90deg,rgba(251,248,241,.86),rgba(251,248,241,.47) 76%,rgba(251,248,241,.16)),linear-gradient(0deg,rgba(41,41,31,.22),transparent 34%); }
	.hero::after { right: -45px; bottom: 8%; width: 190px; }
	.hero-glow { top: 31%; left: 55%; width: 220px; }
	.hero-copy { width: min(100%,570px); }
	.hero h1 { font-size: clamp(46px,11vw,72px); }
	.hero-scroll { right: 19px; bottom: 20px; }
	.story-layout { grid-template-columns: 1fr; gap: 44px; }
	.story-image { min-height: auto; aspect-ratio: 1.25; border-radius: 44% 44% 14px 14px; }
	.story-copy { max-width: 620px; }
	.step-tabs { display: grid; height: auto; grid-template-columns: 1fr; border-top: 0; }
	.step-tab { min-height: auto; display: grid; flex: initial; grid-template-columns: 64px 1fr; column-gap: 18px; padding: 22px 18px; border-right: 0; border-top: 1px solid #d8cebd; }
	.step-tab[aria-selected="true"] { transform: translateX(6px); }
	.step-tab::after { right: 18px; left: 18px; }
	.step-num,.step-tab[aria-selected="true"] .step-num { grid-row: span 2; margin: 0; font-size: 52px; }
	.step-title,.step-tab:not([aria-selected="true"]) .step-title { align-self: end; margin: 0 0 8px; font-size: 19px; writing-mode: horizontal-tb; }
	.step-detail,.step-tab:not([aria-selected="true"]) .step-detail { grid-column: 2; max-width: 280px; opacity: 1; transform: none; visibility: visible; }
	.step-progress { margin-top: 20px; }
	.post-grid, .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.closing-section { min-height: auto; }
}
@media (max-width: 540px) {
	.section { padding: 76px 20px; }
	.hero { min-height: 760px; padding-right: 20px; padding-left: 20px; }
	.hero-description { max-width: 340px; }
	.hero-actions { align-items: stretch; flex-direction: column; max-width: 245px; }
	.hero-actions .button { width: 100%; }
	.hero-note { max-width: 300px; }
	.story-image { aspect-ratio: 1; }
	.story-sticker { right: -6px; bottom: 18px; width: 104px; font-size: 13px; }
	.journal-top { align-items: start; flex-direction: column; }
	.post-grid, .archive-grid { grid-template-columns: 1fr; gap: 32px; }
	.post-cover { aspect-ratio: 1.5; }
	.closing-section { min-height: 720px; padding: 12px 14px 72px; }
	.closing { min-height: 620px; padding: 40px 24px; }
	.closing::after { background: linear-gradient(90deg,rgba(38,50,30,.92),rgba(48,59,39,.72)),linear-gradient(0deg,rgba(22,29,19,.25),transparent 70%); }
	.closing-art img { object-position: 67% center; }
	.footer-inner { align-items: flex-start; flex-direction: column; }
	.footer-nav { flex-wrap: wrap; gap: 10px 18px; }
	.page-main { padding: 120px 20px 72px; }
	.article-content { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
	.has-motion [data-reveal] { opacity: 1; transform: none; }
	.motion-ready [data-intro], .motion-ready.intro-ready [data-intro] { opacity: 1; transform: none; filter: none; animation: none; }
	.site-header.is-scrolled { animation: none; }
	.closing-leaf { animation: none; }
}
