@font-face {
  font-family: "Yurari Script";
  src: url("assets/fonts/lobster.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yurari JP";
  src: url("assets/fonts/zen-maru-gothic-jp.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/*
Theme Name: YURARI
Theme URI: https://yurarilife.com/
Author: YURARI
Description: A gentle, mood-led editorial theme for YURARI.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: yurari
*/

:root {
  --ink: #24181a;
  --paper: #fffaf5;
  --cream: #f8ede1;
  --pink: #f8a6b5;
  --pink-dark: #ef7892;
  --blue: #a8caf4;
  --blue-dark: #659bdd;
  --yellow: #ecee83;
  --coral: #f18e82;
  --aqua: #8bd5dc;
  --lilac: #d1a0e6;
  --green: #afe98c;
  --muted: #725f62;
  --line: #2c2022;
  --soft-shadow: 0 12px 28px rgba(58, 35, 39, .09), 0 3px 8px rgba(58, 35, 39, .05);
  --radius: 14px;
  --page: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #5b89d1; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.script-title { margin: 0; font-family: "Yurari Script", cursive; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: .92; letter-spacing: -.02em; }
.quiet-english { margin: 0 0 15px; color: #a85d6d; font-family: "Yurari Script", cursive; font-size: 1.08rem; line-height: 1; letter-spacing: .01em; }
h1, h2, h3, .brand-jp { font-family: "Yurari JP", "Hiragino Maru Gothic ProN", sans-serif; font-weight: 400; }

.site-header {
  width: var(--page);
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid rgba(44, 32, 34, .22);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: baseline; gap: 12px; width: fit-content; }
.brand-roman { font-size: .72rem; letter-spacing: .22em; font-weight: 800; }
.brand-jp { font-size: 2rem; font-weight: 800; letter-spacing: .08em; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(22px, 4vw, 48px); font-size: .86rem; font-weight: 700; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 3px; background: var(--pink-dark); border-radius: 99px; transition: right .25s ease; }
.desktop-nav a:hover::after { right: 0; }
.menu-button { display: none; width: 48px; height: 48px; padding: 13px 11px; border: 0; background: transparent; cursor: pointer; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu { position: absolute; top: 92px; right: 0; min-width: 220px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.mobile-menu a { display: block; padding: 10px 12px; font-weight: 700; }

.home-hero {
  width: var(--page);
  min-height: 520px;
  margin: 54px auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 42px 16px 16px 16px;
  background: var(--ink);
}
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(45,28,24,.68) 0%, rgba(45,28,24,.32) 46%, rgba(45,28,24,.04) 72%); pointer-events: none; }
.home-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-copy { position: relative; z-index: 2; max-width: 510px; padding: clamp(58px, 8vw, 96px) clamp(28px, 6vw, 76px); color: #fff; text-shadow: 0 2px 14px rgba(36, 24, 26, .32); }
.hero-kicker { margin: 0 0 20px; font-family: "Yurari Script", cursive; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: .92; }
.hero-copy h1 { margin: 0 0 22px; font-size: clamp(2.2rem, 3.2vw, 3.2rem); line-height: 1.25; letter-spacing: -.04em; }
.hero-copy p:last-child { max-width: 20rem; margin: 0; font-size: .98rem; line-height: 1.85; }

.mood-directory {
  width: var(--page);
  margin: 132px auto 0;
  display: grid;
  grid-template-columns: .9fr 1.3fr;
  gap: clamp(42px, 6vw, 84px);
  align-items: center;
}
.directory-intro h2 { margin: 0 0 24px; font-size: clamp(2rem, 2.8vw, 3rem); line-height: 1.3; letter-spacing: -.035em; }
.intro-copy { max-width: 35rem; color: #574649; font-size: .98rem; }
.hello-note { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; font-size: .78rem; font-weight: 700; }
.hello-note svg { width: 20px; fill: var(--pink-dark); }
.folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 30px; align-items: start; justify-items: center; }
.mood-folder { width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: center; font-weight: 700; font-size: .82rem; line-height: 1.5; }
.folder-shape {
  display: block;
  width: clamp(118px, 10vw, 148px);
  max-width: 100%;
  aspect-ratio: 1.18;
  margin: 0 auto 13px;
  position: relative;
  background: var(--folder-dark);
  border-radius: 10px 12px 12px 12px;
  isolation: isolate;
  box-shadow: 0 10px 22px rgba(58, 35, 39, .09);
  transform-origin: bottom center;
  transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease;
}
.folder-shape::before { content: ""; position: absolute; z-index: 1; left: 0; top: -10%; width: 38%; height: 27%; background: var(--folder-dark); border-radius: 11px 13px 0 0; }
.folder-shape::after { content: ""; position: absolute; z-index: 2; inset: 9% 0 0; background: color-mix(in srgb, var(--folder) 84%, #fff 16%); border-radius: 10px 12px 12px 12px; box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(44,32,34,.08); pointer-events: none; }
.mood-folder:hover .folder-shape { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 14px 22px rgba(58, 35, 39, .16); }
.mood-folder.is-active .folder-shape { transform: translateY(-3px); box-shadow: 0 13px 21px rgba(58, 35, 39, .16); }
.mood-folder:focus-visible { outline: 2px solid var(--focus-blue); outline-offset: 7px; border-radius: 7px; }
.mood-folder.is-active > span:last-child { color: var(--ink); text-decoration: underline 3px var(--folder-dark); text-underline-offset: 6px; }

.mood-result { width: var(--page); margin: 106px auto 150px; padding: clamp(30px, 5vw, 58px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(42px, 7vw, 88px); background: #f8ede4; border-radius: 28px; }
.result-window { background: transparent; padding: 0; border: 0; border-radius: 16px; box-shadow: none; transform: none; }
.window-bar { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; height: 34px; border-bottom: 1px solid rgba(44,32,34,.24); }
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; margin-right: 5px; }
.window-bar span:nth-child(2) { background: var(--yellow); margin-left: -30px; }
.window-bar span:nth-child(3) { background: var(--aqua); margin-left: -15px; }
.window-bar p { grid-column: 2; grid-row: 1; margin: 0; text-align: center; font-size: .65rem; letter-spacing: .14em; text-transform: lowercase; }
.result-image-wrap { position: relative; margin: 0; overflow: hidden; border-radius: 14px; aspect-ratio: 4/3; background: var(--cream); }
.result-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease, transform .5s ease; }
.result-window:hover img { transform: scale(1.025); }
.image-sticker { position: absolute; right: 20px; top: 18px; padding: 6px 13px; background: var(--yellow); border-radius: 99px; font-family: "Yurari Script", cursive; transform: rotate(5deg); }
.result-copy h2 { margin: 0 0 20px; font-size: clamp(1.9rem, 3.5vw, 3.25rem); line-height: 1.35; letter-spacing: -.035em; }
.result-copy > p:not(.result-label) { color: #574649; max-width: 32rem; }
.arrow-link { display: inline-flex; gap: 22px; align-items: center; margin-top: 15px; padding-bottom: 7px; border-bottom: 2px solid var(--ink); font-weight: 800; }
.link-arrow { width: 28px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; transition: transform .2s ease; }
.arrow-link:hover .link-arrow, .quote-note a:hover .link-arrow { transform: translateX(6px); }

.new-section { width: var(--page); margin: 0 auto 150px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 52px; }
.section-heading .script-title, .ranking-heading .script-title, .shelf-copy .script-title, .letter-copy .script-title { font-size: clamp(2.8rem, 5vw, 4.8rem); }
.section-heading h2, .ranking-heading h2 { margin: 15px 0 0; font-size: clamp(1.4rem, 2vw, 2rem); }
.section-heading .quiet-english { margin-bottom: 14px; }
.section-heading .quiet-english + h2 { margin: 0; font-size: clamp(2rem, 3vw, 3rem); }
.outline-link { padding: 12px 19px; border: 1px solid var(--line); border-radius: 99px; font-size: .8rem; font-weight: 700; transition: background .2s ease, color .2s ease; }
.outline-link:hover { background: var(--ink); color: #fff; }
.editorial-layout { display: grid; grid-template-columns: 1.15fr .72fr .65fr; gap: 32px; align-items: start; }
.photo-frame { padding: 14px; border-radius: var(--radius); position: relative; }
.blue-mat { background: #dceaff; }
.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.tape { position: absolute; top: -10px; left: 50%; width: 72px; height: 27px; background: rgba(255,239,160,.78); transform: translateX(-50%) rotate(-2deg); }
.story-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 17px; font-size: .72rem; color: var(--muted); }
.story-meta span { color: #376aa8; font-weight: 800; }
.feature-story h3 { margin: 9px 0 0; font-size: 1.35rem; line-height: 1.6; }
.story-stack { display: grid; gap: 22px; }
.paper-story { padding: 28px; border-radius: var(--radius); min-height: 228px; box-shadow: 0 9px 19px rgba(58,35,39,.1); }
.pink-paper { background: #ffd9e0; transform: rotate(1deg); }
.yellow-paper { background: #f4f5ab; transform: rotate(-1deg); }
.paper-tag { font-size: .7rem; font-weight: 800; }
.paper-story h3 { margin: 16px 0 12px; font-size: 1.08rem; line-height: 1.65; }
.paper-story p, .paper-story time { margin: 0; font-size: .75rem; color: #5e4b4e; }
.paper-story time { display: block; margin-top: 18px; }
.quote-note { margin-top: 70px; padding: 30px 25px 26px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; background: #fff; }
.quote-note::after { content: ""; position: absolute; inset: 9px -9px -9px 9px; border: 1px solid var(--pink-dark); border-radius: var(--radius); z-index: -1; }
.quote-note svg { width: 42px; fill: var(--pink-dark); }
.quote-note p { font-size: 1.15rem; font-weight: 700; line-height: 1.9; }
.quote-note a { font-size: .72rem; text-decoration: underline; text-underline-offset: 5px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 58px; }
.mini-story { padding-top: 18px; border-top: 1px solid var(--line); }
.mini-story img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.mini-story .story-meta { margin-top: 14px; }
.mini-story h3 { margin: 9px 0 0; font-size: 1.08rem; line-height: 1.6; }

.latest-feature { border-top: 1px solid rgba(44,32,34,.2); border-bottom: 1px solid rgba(44,32,34,.2); padding: 34px 0; }
.latest-feature-link { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 86px); align-items: center; }
.latest-feature picture { overflow: hidden; border-radius: 16px; }
.latest-feature img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.latest-feature-link:hover img { transform: scale(1.018); }
.latest-feature-copy { max-width: 34rem; }
.latest-feature-copy .story-meta { margin: 0 0 20px; }
.latest-feature-copy h3 { margin: 0 0 18px; font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.5; letter-spacing: -.025em; }
.latest-feature-copy > p { margin: 0; color: #665255; max-width: 31rem; }
.text-link { display: inline-block; margin-top: 25px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: .82rem; font-weight: 700; }

.about-section { width: var(--page); margin: 0 auto 120px; padding: clamp(52px, 7vw, 84px); background: #f4e8dd; border-radius: 16px; }
.about-section h2 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.4; letter-spacing: -.035em; }
.about-section > p:last-child { max-width: 42rem; margin: 0; color: #625054; font-size: 1rem; line-height: 1.95; }

.ranking-section { width: var(--page); margin: 0 auto 130px; padding: clamp(42px, 6vw, 76px); background: var(--cream); border-radius: 42px; position: relative; }
.ranking-section::before, .letter-section::before { content: ""; position: absolute; left: 24px; right: 24px; top: -17px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='18' viewBox='0 0 64 18'%3E%3Cpath d='M0 9C8 1 16 1 24 9s16 8 24 0 16-8 24 0' fill='none' stroke='%2324181a' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left top / 64px 18px; }
.ranking-heading { display: flex; align-items: end; gap: 30px; flex-wrap: wrap; }
.ranking-heading h2 { margin-bottom: 5px; }
.rank-tabs { margin: 40px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rank-tab { border: 0; background: #fff; padding: 13px 16px; border-radius: 99px; cursor: pointer; box-shadow: 0 7px 14px rgba(58,35,39,.09); font-size: .78rem; font-weight: 700; }
.rank-tab.is-active { background: var(--pink); }
.ranking-list { display: grid; gap: 0; }
.rank-item { display: grid; grid-template-columns: 70px 150px 1fr; gap: 24px; align-items: center; padding: 24px 0; border-top: 1px solid rgba(44,32,34,.22); }
.rank-item:last-child { border-bottom: 1px solid rgba(44,32,34,.22); }
.rank-item[hidden] { display: none; }
.rank-number { font-family: "Yurari Script", cursive; font-size: 4.4rem; line-height: 1; }
.rank-thumb, .rank-cover { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 15px rgba(58,35,39,.1); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-cover { display: grid; place-items: center; padding: 12px; text-align: center; border: 1px solid rgba(44,32,34,.3); }
.rank-cover span { font-family: "Yurari Script", cursive; font-size: .9rem; line-height: 1.05; transform: rotate(-4deg); }
.rank-cover.blue { background: var(--blue); }
.rank-cover.lilac { background: var(--lilac); }
.rank-category { color: #ad4962; font-size: .68rem; font-weight: 800; }
.rank-item h3 { margin: 6px 0; font-size: 1.1rem; line-height: 1.55; }
.rank-item p { margin: 0; font-size: .7rem; color: var(--muted); }

.shelf-section { width: var(--page); margin: 0 auto 140px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: center; }
.shelf-copy h2 { margin: 23px 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.35; letter-spacing: -.04em; }
.shelf-copy > p:last-child { color: #574649; }
.desktop-scene { min-height: 430px; position: relative; background: #e9f3ff; border-radius: 42% 16px 16px 16px; box-shadow: inset 0 -20px 0 #90b4e4, inset 0 -22px 0 rgba(44,32,34,.2); }
.book-object, .little-box, .tv-object { position: absolute; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.book-object:hover, .little-box:hover, .tv-object:hover { transform: translateY(-8px) rotate(1deg); }
.book-object { left: 10%; bottom: 25px; width: 185px; height: 260px; background: #f897aa; border: 1px solid var(--line); border-radius: 5px 13px 13px 5px; padding: 35px 25px 25px 48px; box-shadow: var(--soft-shadow); z-index: 1; }
.book-object::before { content: ""; position: absolute; z-index: -1; left: -13px; top: 10px; width: 100%; height: 100%; background: #f6d66e; border: 1px solid rgba(44,32,34,.45); border-radius: 5px 11px 11px 5px; box-shadow: 0 8px 15px rgba(58,35,39,.11); }
.book-spine { position: absolute; left: 13px; top: 22px; bottom: 22px; writing-mode: vertical-rl; letter-spacing: .14em; border-right: 1px solid var(--line); padding-right: 8px; font-size: .65rem; }
.book-object strong { display: block; margin-top: 35px; font-size: 1.35rem; line-height: 1.7; }
.book-object small { position: absolute; bottom: 20px; font-size: .55rem; letter-spacing: .12em; }
.tv-object { right: 6%; top: 38px; width: 220px; text-align: center; }
.tv-object svg { width: 100%; stroke: var(--line); stroke-width: 3; fill: none; }
.tv-object .tv-body { fill: #a690df; }
.tv-object .tv-screen { fill: #fff9ed; }
.tv-object span { display: inline-block; margin-top: -6px; font-size: .8rem; font-weight: 800; }
.little-box { right: 10%; bottom: 28px; width: 190px; height: 115px; padding: 34px 20px 15px; background: var(--yellow); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--soft-shadow); }
.box-handle { position: absolute; top: -25px; left: 50%; width: 78px; height: 32px; transform: translateX(-50%); border: 8px solid #efcc64; border-bottom: 0; border-radius: 16px 16px 0 0; }
.little-box strong, .little-box small { display: block; }
.little-box small { margin-top: 4px; font-size: .58rem; }

.letter-section { width: var(--page); margin: 0 auto 90px; padding: clamp(36px, 6vw, 70px); background: #ffdce3; border-radius: 44px 44px 12px 12px; display: grid; grid-template-columns: 150px 1fr 1.1fr; gap: 42px; align-items: center; position: relative; }
.envelope { width: 140px; aspect-ratio: 1.35; background: #fff9ed; border: 1px solid var(--line); border-radius: 8px; position: relative; box-shadow: var(--soft-shadow); transform: rotate(-4deg); }
.envelope::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0,50% 58%,100% 0); background: #f6f0e1; border-radius: 8px; }
.envelope::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 100%,0 30%,50% 69%,100% 30%,100% 100%); background: #fffdf6; }
.envelope-heart { position: absolute; z-index: 2; left: 50%; top: 55%; width: 25px; height: 22px; background: var(--pink-dark); clip-path: polygon(50% 92%, 5% 48%, 4% 27%, 16% 8%, 35% 5%, 50% 19%, 65% 5%, 84% 8%, 96% 27%, 95% 48%); transform: translate(-50%,-50%); }
.letter-copy h2 { margin: 14px 0 8px; font-size: 1.6rem; }
.letter-copy p:last-child { margin: 0; font-size: .82rem; color: #654e52; }
.letter-form label { display: block; font-size: .72rem; font-weight: 800; margin-bottom: 8px; }
.input-row { display: grid; grid-template-columns: 1fr auto; }
.input-row input { min-width: 0; border: 1px solid var(--line); border-right: 0; background: #fff; padding: 14px 15px; border-radius: 99px 0 0 99px; }
.input-row button { border: 1px solid var(--line); background: var(--ink); color: #fff; padding: 13px 19px; border-radius: 0 99px 99px 0; cursor: pointer; font-size: .75rem; font-weight: 800; }
.input-row button:hover { background: #51363b; }
.form-message { min-height: 1.5em; margin: 7px 0 0; font-size: .7rem; }

footer { width: var(--page); margin: 0 auto; padding: 55px 0 45px; border-top: 1px solid rgba(44,32,34,.22); display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: end; font-size: .75rem; }
.footer-brand span { display: block; font-size: .6rem; letter-spacing: .18em; }
.footer-brand strong { font-size: 1.8rem; }
footer p { margin: 0; color: var(--muted); }
footer nav { display: flex; gap: 22px; }
footer small { grid-column: 1/-1; color: var(--muted); }

@media (max-width: 960px) {
  :root { --page: min(100% - 34px, 760px); }
  .site-header { min-height: 88px; grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .mood-directory { margin-top: 92px; grid-template-columns: 1fr; gap: 58px; }
  .directory-intro { max-width: 620px; }
  .folder-grid { gap: 34px 18px; }
  .mood-result { grid-template-columns: 1fr; margin-top: 70px; }
  .result-window { max-width: 680px; }
  .latest-feature-link { grid-template-columns: 1fr 1fr; gap: 38px; }
  .editorial-layout { grid-template-columns: 1.2fr .8fr; }
  .article-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .quote-note { grid-column: 1/-1; margin-top: 10px; max-width: 420px; justify-self: end; }
  .shelf-section { grid-template-columns: 1fr; }
  .shelf-copy { max-width: 620px; }
  .letter-section { grid-template-columns: 120px 1fr; }
  .envelope { width: 110px; }
  .letter-form { grid-column: 1/-1; }
  footer { grid-template-columns: 1fr 1fr; }
  footer nav { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 24px); }
  .brand-jp { font-size: 1.7rem; }
  .home-hero { min-height: 540px; margin-top: 30px; border-radius: 28px 12px 12px 12px; }
  .home-hero img { object-position: 44% center; }
  .home-hero::after { background: linear-gradient(180deg, rgba(45,28,24,.2) 8%, rgba(45,28,24,.62) 100%); }
  .hero-copy { min-height: 540px; display: flex; flex-direction: column; justify-content: flex-end; padding: 42px 28px; }
  .hero-copy h1 { font-size: 2.25rem; }
  .mood-directory { margin-top: 88px; gap: 52px; }
  .directory-intro h2 { font-size: 2.15rem; }
  .folder-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 18px; }
  .mood-folder { font-size: .78rem; }
  .folder-shape { width: min(100%, 124px); }
  .mood-result { margin: 88px auto 116px; padding: 24px; gap: 32px; border-radius: 20px; }
  .result-copy h2 { font-size: 2rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .new-section { margin-bottom: 116px; }
  .section-heading { margin-bottom: 36px; }
  .latest-feature { padding: 24px 0 30px; }
  .latest-feature-link { grid-template-columns: 1fr; gap: 30px; }
  .latest-feature-copy h3 { font-size: 1.65rem; }
  .about-section { margin-bottom: 92px; padding: 42px 28px; }
  .about-section h2 { font-size: 2rem; }
  .editorial-layout { grid-template-columns: 1fr; }
  .story-stack { grid-template-columns: 1fr; }
  .quote-note { grid-column: auto; justify-self: stretch; }
  .article-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 44px; }
  .ranking-section { width: 100%; border-radius: 32px; padding: 42px 20px; }
  .ranking-heading { display: block; }
  .rank-tabs { display: flex; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
  .rank-tab { min-width: 95px; }
  .rank-item { grid-template-columns: 42px 86px 1fr; gap: 13px; }
  .rank-number { font-size: 3rem; }
  .rank-item h3 { font-size: .86rem; }
  .desktop-scene { min-height: 500px; border-radius: 90px 16px 16px 16px; }
  .book-object { left: 7%; bottom: 25px; width: 155px; height: 230px; padding-left: 40px; }
  .tv-object { right: 2%; top: 30px; width: 190px; }
  .little-box { right: 5%; bottom: 30px; width: 150px; }
  .letter-section { width: 100%; border-radius: 34px 34px 0 0; grid-template-columns: 80px 1fr; gap: 24px; padding: 40px 22px; }
  .envelope { width: 80px; }
  .input-row { grid-template-columns: 1fr; gap: 8px; }
  .input-row input, .input-row button { border: 1px solid var(--line); border-radius: 99px; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; gap: 12px 20px; }
}

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

/* Article pages keep the same paper-and-ink system, with a calmer reading rhythm. */
.article-main { width: var(--page); margin: 42px auto 110px; }
.article-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; color: var(--muted); font-size: .72rem; }
.article-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.article-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(42px, 7vw, 100px); align-items: center; padding-bottom: 72px; border-bottom: 1px solid rgba(44,32,34,.22); }
.article-kicker, .article-label { margin: 0 0 14px; color: #b45068; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-hero h1 { margin: 0; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 1.38; letter-spacing: -.045em; }
.article-title-sub { display: block; margin-top: .18em; font-size: .62em; line-height: 1.45; letter-spacing: -.02em; }
.article-lede { max-width: 37rem; margin: 27px 0 0; color: #5d4b4e; font-size: 1rem; line-height: 2; }
.article-byline { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 25px; color: var(--muted); font-size: .72rem; }
.article-byline span:first-child { color: var(--ink); font-weight: 800; }
.article-hero-image { margin: 0; transform: rotate(1.2deg); }
.article-hero-image picture, .article-inline-image picture { display: block; }
.article-hero-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 12px solid #fff; box-shadow: var(--soft-shadow); }
.article-hero-image figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: .72rem; }
.article-quick-answer { margin: 64px auto 0; max-width: 830px; padding: 34px 38px; background: var(--cream); border-radius: 30px 30px 10px 10px; box-shadow: 0 10px 20px rgba(58,35,39,.08); }
.article-quick-answer p { margin: 0; }
.article-quick-answer > p:nth-child(2) { font-size: 1.03rem; line-height: 1.95; }
.article-choice-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.article-choice-links a { padding: 8px 15px; border: 1px solid rgba(44,32,34,.35); border-radius: 99px; background: #fff; font-size: .75rem; font-weight: 800; }
.article-choice-links a:hover { background: var(--pink); }
.article-section { max-width: 880px; margin: 92px auto 0; }
.article-section > h2, .article-editor-note h2, .article-sources h2, .article-next h2 { margin: 0 0 20px; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.45; letter-spacing: -.03em; }
.article-section > p:not(.article-label), .article-editor-note p:not(.article-label), .article-sources p:not(.article-label), .article-next p:not(.article-label) { max-width: 45rem; margin: 0 0 25px; color: #5d4b4e; font-size: .95rem; line-height: 2; }
.article-table-wrap { overflow-x: auto; margin-top: 28px; }
.article-inline-image { margin: 30px 0 0; }
.article-inline-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 8px solid #fff; box-shadow: var(--soft-shadow); }
.article-inline-image figcaption { margin-top: 12px; color: var(--muted); font-size: .72rem; text-align: center; }
.article-choice-table { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; font-size: .82rem; }
.article-choice-table th, .article-choice-table td { padding: 15px 17px; border: 1px solid rgba(44,32,34,.18); text-align: left; vertical-align: top; }
.article-choice-table thead th { background: var(--blue); font-weight: 800; }
.article-choice-table tbody th { width: 24%; background: #fff5f1; font-weight: 800; }
.article-ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.article-idea { position: relative; min-height: 205px; padding: 27px 24px 22px; border: 1px solid rgba(44,32,34,.23); border-radius: 12px; background: #fff; box-shadow: 5px 6px 0 rgba(248,166,181,.28); }
.article-idea:nth-child(3n+2) { box-shadow: 5px 6px 0 rgba(168,202,244,.34); }
.article-idea:nth-child(3n) { box-shadow: 5px 6px 0 rgba(236,238,131,.44); }
.idea-number { display: block; color: var(--pink-dark); font-family: "Yurari Script", cursive; font-size: 1.6rem; line-height: 1; }
.article-idea h3 { margin: 12px 0 9px; font-size: 1.05rem; line-height: 1.5; }
.article-idea p { margin: 0; color: #654e52; font-size: .81rem; line-height: 1.85; }
.idea-note { display: inline-block; margin-top: 14px; color: var(--muted); font-size: .66rem; letter-spacing: .04em; }
.budget-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.budget-list div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; padding: 18px 20px; border-bottom: 1px solid rgba(44,32,34,.22); }
.budget-list strong { color: #ad4962; font-size: .9rem; }
.budget-list span { color: #654e52; font-size: .82rem; line-height: 1.8; }
.article-steps { display: grid; gap: 15px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: gentle-step; }
.article-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 11px; padding: 18px 20px; border-left: 4px solid var(--pink); background: #fff8f5; counter-increment: gentle-step; }
.article-steps li::before { content: counter(gentle-step); color: var(--pink-dark); font-family: "Yurari Script", cursive; font-size: 1.35rem; }
.article-steps strong, .article-steps span { grid-column: 2; }
.article-steps strong { margin-top: -27px; font-size: .92rem; }
.article-steps span { color: #654e52; font-size: .82rem; line-height: 1.8; }
.article-editor-note { max-width: 880px; margin: 92px auto 0; padding: 34px 38px; border: 1px dashed rgba(44,32,34,.35); background: #fff; }
.article-editor-note h2 { font-size: 1.5rem; }
.article-editor-note p:last-child { margin-bottom: 0; }
.article-faq { border-top: 1px solid rgba(44,32,34,.22); padding-top: 68px; }
.article-faq details { border-bottom: 1px solid rgba(44,32,34,.22); }
.article-faq summary { padding: 20px 4px; cursor: pointer; font-size: .95rem; font-weight: 800; list-style-position: inside; }
.article-faq details p { max-width: 45rem; margin: 0; padding: 0 30px 20px 28px; color: #654e52; font-size: .86rem; line-height: 1.9; }
.article-sources { max-width: 880px; margin: 88px auto 0; padding-top: 52px; border-top: 1px solid rgba(44,32,34,.22); }
.article-sources ul { margin: 20px 0 0; padding-left: 1.2em; }
.article-sources li { margin: 9px 0; color: #654e52; font-size: .78rem; line-height: 1.7; }
.article-sources a { text-decoration: underline; text-underline-offset: 3px; }
.article-next { max-width: 880px; margin: 80px auto 0; padding: 38px; background: #ffdce3; border-radius: 32px 32px 10px 10px; }
.article-next h2 { font-size: 1.65rem; }
.article-next .arrow-link { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 760px) {
  .article-main { margin-top: 28px; }
  .article-breadcrumb { margin-bottom: 28px; }
  .article-hero { grid-template-columns: 1fr; gap: 38px; padding-bottom: 50px; }
  .article-hero h1 { font-size: 2.18rem; }
  .article-lede { font-size: .9rem; line-height: 1.9; }
  .article-hero-image { max-width: 520px; }
  .article-quick-answer { margin-top: 44px; padding: 26px 22px; border-radius: 22px 22px 8px 8px; }
  .article-quick-answer > p:nth-child(2) { font-size: .91rem; }
  .article-section { margin-top: 68px; }
  .article-section > h2, .article-editor-note h2, .article-sources h2, .article-next h2 { font-size: 1.65rem; }
  .article-section > p:not(.article-label), .article-editor-note p:not(.article-label), .article-sources p:not(.article-label), .article-next p:not(.article-label) { font-size: .87rem; line-height: 1.9; }
  .article-ideas, .budget-list { grid-template-columns: 1fr; }
  .article-idea { min-height: auto; }
  .budget-list div { grid-template-columns: 95px 1fr; }
  .article-editor-note, .article-next { padding: 26px 22px; }
}
