/*
Theme Name: TokyoWaltz
Theme URI: https://tokyowaltz.com/
Author: TokyoWaltz
Description: A gentle, editorial WordPress theme for TokyoWaltz stories, challenges, and social links.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tokyowaltz
*/

:root {
  --ink: #2d2736;
  --muted: #6e6579;
  --paper: #fffdf9;
  --cream: #fff5e7;
  --lilac: #d9c9f4;
  --lilac-deep: #8d68c5;
  --mint: #dff2cf;
  --coral: #f39b91;
  --sun: #f7cf62;
  --line: rgba(45, 39, 54, 0.12);
  --shadow: 0 20px 60px rgba(66, 45, 83, 0.13);
  --radius: 28px;
  --wrap: min(1160px, calc(100% - 36px));
  --font-brand: Futura, "Futura PT", "Century Gothic", Avenir, Montserrat, sans-serif;
  --font-body: "Noto Sans", "Noto Sans JP", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: var(--wrap);
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 1.23rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fffaf2;
  box-shadow: 0 0 0 1px rgba(22, 42, 76, .1);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.58);
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { color: var(--ink); }
.nav-cta {
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: white !important;
}
.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
}

.hero {
  width: var(--wrap);
  min-height: min(780px, calc(100svh - 76px));
  margin: auto;
  padding: 70px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--lilac-deep);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.055em;
}
.hero h1 em { color: var(--lilac-deep); font-weight: inherit; }
.hero-copy { max-width: 600px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 21px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .button:focus { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45,39,54,.12); }
.button-primary { background: var(--ink); color: #fff; }
.button-soft { border-color: transparent; background: var(--cream); }

.hero-art {
  position: relative;
  min-height: 520px;
  border-radius: 44% 44% 34% 34% / 34% 34% 45% 45%;
  overflow: hidden;
  background: linear-gradient(155deg, var(--lilac) 0 48%, var(--mint) 48% 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  left: -40px;
  bottom: 40px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 290px -340px 0 70px rgba(255,255,255,.58);
}
.hero-art::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 120px;
  right: -45px;
  bottom: 60px;
  border-radius: 70% 40% 65% 35%;
  background: var(--coral);
  transform: rotate(-22deg);
}
.hero-art img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; position: relative; z-index: 2; }
.art-note {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  max-width: 245px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,253,249,.88);
  box-shadow: 0 10px 30px rgba(45,39,54,.1);
  backdrop-filter: blur(10px);
  font-family: var(--font-brand);
  font-size: 1.04rem;
  line-height: 1.35;
}

.section { padding: 104px 0; }
.section-tint { background: var(--cream); }
.section-lilac { background: #f2ecfb; }
.section-inner { width: var(--wrap); margin: auto; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 46px;
}
.section-title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}
.section-lead { margin: 0; color: var(--muted); }

.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.journey-card {
  min-height: 340px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 0 var(--line);
}
.journey-card:nth-child(2) { background: var(--lilac); }
.journey-card:nth-child(3) { background: var(--mint); }
.journey-number { font-size: .78rem; font-weight: 850; letter-spacing: .14em; }
.journey-card h3 { margin: 0 0 10px; font-family: var(--font-brand); font-size: 2rem; font-weight: 500; }
.journey-card p { margin: 0; color: rgba(45,39,54,.72); }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: white;
  transition: transform .2s ease, box-shadow .2s ease;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--lilac), var(--cream)); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-placeholder { font-family: var(--font-brand); font-size: 3rem; opacity: .55; }
.story-body { padding: 24px; }
.story-meta { margin: 0 0 10px; color: var(--lilac-deep); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-card h3 { margin: 0; font-family: var(--font-brand); font-size: 1.55rem; line-height: 1.2; }
.story-card h3 a { text-decoration: none; }
.story-card p { color: var(--muted); }

.link-list { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 8px 24px rgba(66,45,83,.06);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.link-card:hover, .link-card:focus { transform: translateY(-3px); border-color: var(--lilac-deep); box-shadow: var(--shadow); }
.link-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--cream);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .06em;
}
.link-title { display: block; font-weight: 820; }
.link-subtitle { display: block; color: var(--muted); font-size: .9rem; }
.link-arrow { color: var(--muted); font-size: 1.25rem; }
.all-links { margin-top: 28px; text-align: center; }
.home-link-list { max-width: 700px; }
.home-link-list .link-card {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(45, 39, 54, .09);
}
.home-link-list .link-card:hover, .home-link-list .link-card:focus { transform: translateY(-2px) scale(1.005); border-color: transparent; box-shadow: 0 12px 28px rgba(45, 39, 54, .14); }
.home-link-list button.link-card { width: 100%; color: inherit; font: inherit; text-align: inherit; appearance: none; cursor: pointer; }
.home-link-list .link-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #f7eff1; }
.home-link-list .link-icon .social-icon-image { width: 25px; height: 25px; }
.home-link-list .link-icon img[src$="/lemon8.svg"] { width: 34px; }
.home-link-list .link-title { color: var(--ink); font-size: .98rem; font-weight: 650; text-align: center; }
.home-link-list .link-arrow { width: 44px; height: 44px; display: grid; place-items: center; color: rgba(45, 39, 54, .58); font-size: 1rem; }
.home-link-list .social-inline-preview { margin: -4px 8px 8px; }

.links-page {
  min-height: calc(100svh - 76px);
  padding: 42px 18px 64px;
  background: #b9afb3;
}
.links-panel {
  width: min(700px, 100%);
  margin: 0 auto;
  padding: 48px 30px 34px;
  border: 1px solid rgba(45, 39, 54, .08);
  border-radius: 34px;
  background: linear-gradient(180deg, #f8e9ed 0%, #f4e4e8 100%);
  box-shadow: 0 26px 80px rgba(45, 39, 54, .18);
}
.links-profile { max-width: 580px; margin: 0 auto 34px; text-align: center; }
.links-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: block;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: #fffaf2;
  box-shadow: 0 10px 30px rgba(45, 39, 54, .13);
}
.links-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 47% 47%; transform: scale(1.58); }
.links-kicker { margin: 0 0 2px; color: rgba(45, 39, 54, .56); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.links-profile h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.15rem); letter-spacing: -.03em; line-height: 1.2; }
.links-intro { max-width: 570px; margin: 10px auto 0; color: rgba(45, 39, 54, .82); font-size: .98rem; line-height: 1.52; }
.social-icon-row { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.social-icon-row a {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.social-icon-row a:hover, .social-icon-row a:focus { transform: translateY(-2px); background: rgba(255, 255, 255, .66); }
.social-icon-image { position: relative; z-index: 2; width: 28px; height: 28px; display: block; object-fit: contain; }
.social-icon-fallback { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--ink); font-size: .68rem; font-weight: 850; letter-spacing: .02em; }
.social-icon-fallback[hidden] { display: none !important; }
.links-panel .link-list { max-width: none; gap: 14px; }
.links-panel .link-card {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(45, 39, 54, .09);
}
.links-panel button.link-card { width: 100%; color: inherit; font: inherit; text-align: inherit; appearance: none; cursor: pointer; }
.links-panel .link-card:hover, .links-panel .link-card:focus { transform: translateY(-2px) scale(1.005); border-color: transparent; box-shadow: 0 12px 28px rgba(45, 39, 54, .14); }
.links-panel .link-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #f7eff1; }
.links-panel .link-icon .social-icon-image { width: 25px; height: 25px; }
.links-panel .link-icon img[src$="/lemon8.svg"] { width: 34px; }
.links-panel .link-icon.has-thumbnail { overflow: hidden; }
.links-panel .link-icon.has-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.link-label { min-width: 0; color: var(--ink); text-align: center; line-height: 1.35; }
.links-panel .link-title, .links-panel .link-subtitle { display: inline; color: inherit; font-size: .98rem; font-weight: 650; }
.links-panel .link-separator { color: rgba(45, 39, 54, .48); }
.links-panel .link-arrow { width: 44px; height: 44px; display: grid; place-items: center; color: rgba(45, 39, 54, .58); font-size: 1rem; }
.social-preview-toggle .link-arrow { transition: transform .2s ease; }
.links-panel [hidden] { display: none !important; }
.link-section-title { margin: 18px 8px 0; color: rgba(45, 39, 54, .65); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-align: left; text-transform: uppercase; }
.link-badge { display: inline-flex; margin-left: 7px; padding: 2px 7px; align-items: center; border-radius: 999px; background: var(--lilac); color: var(--ink); font-size: .63rem; font-weight: 850; letter-spacing: .04em; vertical-align: 2px; }
.links-panel .link-card.is-featured { outline: 2px solid var(--lilac-deep); outline-offset: 2px; }
.links-panel .link-card.is-spotlight { color: white; background: linear-gradient(115deg, #7353aa, #9a74cd); box-shadow: 0 14px 32px rgba(91, 63, 140, .28); }
.links-panel .link-card.is-spotlight .link-label, .links-panel .link-card.is-spotlight .link-arrow { color: white; }
.links-panel .link-card.is-spotlight .link-icon { background: rgba(255,255,255,.9); }
.links-panel .link-card.has-pulse { animation: twlhp-pulse 2.8s ease-in-out infinite; }
.links-panel .link-card.has-float { animation: twlhp-float 3.6s ease-in-out infinite; }
@keyframes twlhp-pulse { 0%,100% { box-shadow: 0 7px 18px rgba(45,39,54,.09); } 50% { box-shadow: 0 10px 28px rgba(141,104,197,.32); } }
@keyframes twlhp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.link-embed { overflow: hidden; margin: -4px 8px 6px; border-radius: 18px; background: #000; }
.link-embed iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
.social-inline-preview { min-width: 0; margin: -4px 8px 8px; padding: 10px; overflow: hidden; border-radius: 20px; background: rgba(255, 255, 255, .74); box-shadow: 0 10px 28px rgba(45, 39, 54, .1); }
.social-preview-frame { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
.social-preview-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.social-profile-frame { width: 100%; min-width: 0; overflow: hidden; border-radius: 14px; background: #fff; }
.social-profile-frame iframe { width: 100%; display: block; border: 0; }
.social-facebook-frame iframe { height: 500px; }
.social-instagram-frame iframe { height: 720px; }
.social-inline-preview-twitch .social-preview-frame { min-height: 300px; }
.social-script-embed { width: 100%; min-width: 0; overflow: hidden; border-radius: 14px; background: #fff; }
.social-script-embed iframe { width: 100% !important; max-width: 100% !important; margin: 0 auto !important; }
.tiktok-profile-embed .tiktok-embed { width: 100%; min-width: 288px; max-width: 100%; margin: 0 auto; }
.x-timeline-embed { min-height: 280px; }
.pinterest-profile-embed { min-height: 120px; text-align: center; }
.threads-post-embed, .snapchat-profile-embed { display: grid; justify-items: center; padding: 2px; }
.threads-post-embed iframe ~ blockquote { display: none; }
.snapchat-profile-embed .snapchat-embed { width: min(100%, 416px) !important; min-width: 0 !important; margin: 0 auto !important; }
.social-profile-card { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 12px; padding: 12px; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; }
.social-profile-card img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 47% 47%; }
.social-profile-card span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.social-profile-card strong { font-size: .96rem; }
.social-profile-card small { color: rgba(45, 39, 54, .64); font-size: .76rem; }
.social-profile-card > span:last-child { color: rgba(45, 39, 54, .5); }
.social-preview-label { margin: 12px 6px 8px; color: rgba(45, 39, 54, .58); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.social-feed-cards { display: grid; gap: 9px; }
.social-feed-card { min-width: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.social-feed-card:not(:has(> img)) { grid-template-columns: minmax(0, 1fr) auto; }
.social-feed-card img { width: 82px; height: 68px; border-radius: 10px; object-fit: cover; }
.social-feed-card > span { min-width: 0; display: grid; gap: 4px; }
.social-feed-card strong { display: -webkit-box; overflow: hidden; font-size: .86rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.social-feed-card small { display: -webkit-box; overflow: hidden; color: rgba(45, 39, 54, .66); font-size: .72rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.social-feed-card time { color: rgba(45, 39, 54, .5); font-size: .67rem; }
.social-feed-card .social-feed-arrow { display: block; color: rgba(45, 39, 54, .48); }
.social-empty-card, .social-representative-link { display: flex; min-height: 70px; margin: 0; padding: 14px; align-items: center; justify-content: space-between; border-radius: 14px; background: #fff; color: rgba(45, 39, 54, .7); font-size: .8rem; line-height: 1.45; text-decoration: none; }
.social-preview-loading, .social-preview-error { margin: 18px 10px; color: rgba(45, 39, 54, .68); font-size: .82rem; text-align: center; }
.social-preview-error { color: #8a2d27; }
.social-preview-actions { margin: 10px 0 2px; text-align: center; }
.social-preview-actions a { color: var(--ink); font-size: .78rem; font-weight: 800; text-decoration: none; }
.subscribe-card, .contact-card { margin: 32px 0 0; padding: 26px; border: 1px solid rgba(45,39,54,.09); border-radius: 24px; background: rgba(255,255,255,.66); text-align: left; }
.subscribe-card h2, .contact-card h2 { margin: 2px 0 8px; font-size: 1.3rem; letter-spacing: -.02em; }
.subscribe-card > p:not(.subscribe-kicker):not(.subscribe-notice), .contact-card > p:not(.subscribe-kicker):not(.subscribe-notice) { margin: 0 0 18px; color: rgba(45,39,54,.72); font-size: .9rem; }
.subscribe-kicker { margin: 0; color: var(--lilac-deep); font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.subscribe-form { display: grid; grid-template-columns: 1fr 1.35fr auto; gap: 10px; align-items: end; }
.subscribe-form label { display: grid; gap: 5px; color: rgba(45,39,54,.72); font-size: .72rem; font-weight: 750; }
.subscribe-form input[type="text"], .subscribe-form input[type="email"], .subscribe-form input[type="password"], .subscribe-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(45,39,54,.18); border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.subscribe-form textarea { min-height: 112px; resize: vertical; }
.subscribe-form button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ink); color: white; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.subscribe-consent { grid-column: 1 / -1; grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; }
.subscribe-consent input { margin-top: 3px; }
.twlhp-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.subscribe-notice { margin: 12px 0 !important; padding: 10px 12px; border-radius: 10px; font-size: .82rem; }
.subscribe-notice.is-success { background: #e7f4e4; color: #265624; }
.subscribe-notice.is-error { background: #f9e5e3; color: #8a2d27; }
.contact-form { grid-template-columns: 1fr 1fr; }
.contact-form label:nth-of-type(3), .contact-form label:nth-of-type(4) { grid-column: 1 / -1; }
.contact-form button { justify-self: start; }
.links-signoff { margin: 28px 0 0; color: rgba(45, 39, 54, .58); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-align: center; }
.links-signoff a { text-decoration: none; }
.tokyowaltz-links-page .site-footer { display: none; }

.editorial-shell { width: min(860px, calc(100% - 36px)); margin: auto; padding: 74px 0 110px; }
.editorial-shell-wide { width: var(--wrap); }
.page-header { margin-bottom: 48px; text-align: center; }
.page-header h1 { margin: 0; font-family: var(--font-brand); font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.page-header p { max-width: 660px; margin: 18px auto 0; color: var(--muted); font-size: 1.08rem; }
.entry-content { font-family: var(--font-body); font-size: 1.15rem; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content h2, .entry-content h3 { color: var(--ink); line-height: 1.2; }
.entry-content img { border-radius: 22px; }
.entry-content .alignwide { max-width: 1080px; }
.entry-content .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.empty-state { grid-column: 1 / -1; padding: 38px; border: 1px dashed rgba(45,39,54,.24); border-radius: 24px; color: var(--muted); text-align: center; }
.pagination { margin-top: 48px; }

.site-footer { padding: 64px 0 36px; background: var(--ink); color: rgba(255,255,255,.78); }
.footer-inner { width: var(--wrap); margin: auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: end; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-mark { width: 64px; height: 64px; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: #fffaf2; }
.footer-mark img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.58); }
.footer-title { margin: 0; color: white; font-family: var(--font-brand); font-size: clamp(2.3rem, 5vw, 4.5rem); font-weight: 500; line-height: 1; }
.footer-note { max-width: 520px; margin: 0; justify-self: end; }
.footer-bottom { margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.footer-bottom a { color: white; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-art { min-height: 450px; }
  .section-head { grid-template-columns: 1fr; }
  .journey-grid, .story-grid { grid-template-columns: 1fr 1fr; }
  .journey-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --wrap: min(100% - 28px, 1160px); --radius: 22px; }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .hero { min-height: auto; padding: 48px 0 68px; gap: 42px; }
  .hero h1 { font-size: clamp(3.35rem, 18vw, 5rem); }
  .hero-art, .hero-art img { min-height: 390px; }
  .section { padding: 76px 0; }
  .journey-grid, .story-grid { grid-template-columns: 1fr; }
  .journey-card:last-child { grid-column: auto; }
  .journey-card { min-height: 270px; }
  .link-card { grid-template-columns: 46px minmax(0, 1fr) auto; padding: 12px 14px; }
  .link-icon { width: 46px; height: 46px; border-radius: 15px; }
  .links-page { padding: 0; background: #f4e4e8; }
  .links-panel { padding: 38px 16px 30px; border: 0; border-radius: 0; box-shadow: none; }
  .links-avatar { width: 86px; height: 86px; }
  .links-profile { margin-bottom: 28px; }
  .links-intro { font-size: .92rem; }
  .social-icon-row { gap: 5px; }
  .social-icon-row a { width: 38px; height: 38px; }
  .links-panel .link-card { grid-template-columns: 42px minmax(0, 1fr) 42px; min-height: 68px; padding: 9px 10px; }
	.home-link-list .link-card { grid-template-columns: 42px minmax(0, 1fr) 42px; min-height: 68px; padding: 9px 10px; }
  .links-panel .link-icon, .links-panel .link-arrow { width: 42px; height: 42px; }
	.home-link-list .link-icon, .home-link-list .link-arrow { width: 42px; height: 42px; }
  .links-panel .link-title, .links-panel .link-subtitle { font-size: .9rem; }
  .subscribe-card, .contact-card { padding: 21px 17px; }
  .subscribe-form, .contact-form { grid-template-columns: 1fr; }
  .subscribe-consent, .contact-form label:nth-of-type(3), .contact-form label:nth-of-type(4) { grid-column: auto; }
  .subscribe-form button { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-note { justify-self: start; }
  .footer-bottom { flex-direction: column; }
}

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