:root {
  color-scheme: light;
  --paper: #F6F2E9;
  --paper-rgb: 246, 242, 233;
  --paper-light: #FFFCF5;
  --landscape-paper: #F4E6D5;
  --landscape-paper-rgb: 244, 230, 213;
  --paper-texture: url('/img/paper.svg');
  --ink: #292722;
  --muted: #756C60;
  --accent: #B5362D;
  --accent-deep: #932920;
  --seal: #8C3430;
  --interaction: #6F6746;
  --interaction-wash: #EDEBDD;
  --interaction-line: #B8AF95;
  --line: #DED6C8;
  --line-strong: #DED6C8;
  --footer-line: #DDDDDD;
  --brand-weight: 700;
  --serif: 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; border-radius: 0; }
button:enabled { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, input, a { touch-action: manipulation; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, figure, blockquote { margin: 0; }
::selection { background: var(--interaction-wash); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--interaction); outline-offset: 5px; }
.container { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 10; padding: 14px 22px; background: var(--accent); color: var(--paper-light); }
.skip-link:focus { top: 12px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
.hero-art { position: absolute; inset: 0; z-index: -1; background: var(--landscape-paper); }
.hero-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; opacity: .86; }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(180deg, var(--landscape-paper), rgba(var(--landscape-paper-rgb), 0) 64px), linear-gradient(90deg, rgba(var(--paper-rgb), .38), rgba(var(--paper-rgb), 0) 75%), linear-gradient(0deg, var(--paper), rgba(var(--paper-rgb), 0) 42%); }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; min-height: 620px; padding-block: 90px 76px; }
.hero-brand { color: var(--ink); font: var(--brand-weight) clamp(64px, 7vw, 96px) / 1.4 var(--serif); letter-spacing: .08em; white-space: nowrap; }
.hero-tagline { color: var(--ink); font: 400 clamp(24px, 2.3vw, 32px) / 1.9 var(--serif); letter-spacing: .06em; }
.hero-tagline em { font-style: normal; color: var(--seal); }
.hero-code { width: 96px; height: auto; }
.hero-open { display: none; align-items: center; justify-content: center; min-width: 164px; min-height: 48px; padding: 12px 28px; border: 0; border-radius: 3px; background: var(--seal); color: var(--paper-light); font: 500 16px / 1.5 var(--sans); letter-spacing: .08em; }
.hero-open:disabled { color: var(--muted); background: transparent; }
.hero-open[href]:hover { filter: brightness(.9); }
.primary-link { display: inline-flex; justify-content: center; align-items: center; gap: 28px; padding: 17px 23px; min-height: 54px; border: 1px solid transparent; background: var(--accent); color: var(--paper-light); font-size: 14px; line-height: 1.5; letter-spacing: .05em; transition: background .18s, transform .18s; white-space: nowrap; }
.primary-link:hover, button.primary-link:enabled:hover { background: var(--accent-deep); }
.primary-link:active { transform: translateY(1px); }

h2 { color: var(--accent); font: 400 33px / 1.6 var(--serif); letter-spacing: .045em; }
/* Preserve the existing featured section independently of the new page theme. */
.inspiration-section { --line: #ddded3; --line-strong: #bcc3b4; --interaction: #6f603e; --interaction-wash: #f5ead3; --interaction-line: #cfbd95; padding-block: 50px 54px; }
.inspiration-section h2 { margin-bottom: 30px; color: var(--ink); }
.featured-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.featured-card { --card-paper: #e3e9dd; --card-ink: #426853; position: relative; min-width: 0; min-height: 278px; padding: 19px 21px 25px; border: 1px solid var(--line); background-color: var(--card-paper); background-image: var(--paper-texture); color: var(--card-ink); }
.featured-card:nth-child(5n + 2) { --card-paper: #e7e8d8; --card-ink: #696c48; }
.featured-card:nth-child(5n + 3) { --card-paper: #dee7e2; --card-ink: #476564; }
.featured-card:nth-child(5n + 4) { --card-paper: #ebe2d3; --card-ink: #83634a; }
.featured-card:nth-child(5n + 5) { --card-paper: #e5e1e4; --card-ink: #6c6472; }
.featured-top { display: flex; align-items: center; justify-content: flex-end; }
.mini-landscape { position: relative; width: 44px; height: 22px; border-bottom: 1px solid var(--line-strong); }
.mini-landscape::before, .mini-landscape::after { position: absolute; content: ''; bottom: 2px; background: currentColor; clip-path: polygon(0 100%, 21% 55%, 38% 9%, 48% 0, 61% 25%, 72% 58%, 100% 100%); }
.mini-landscape::before { left: 0; width: 30px; height: 18px; opacity: .28; }
.mini-landscape::after { right: 0; width: 25px; height: 13px; opacity: .17; }
.featured-name { display: flex; align-items: center; gap: 6px; padding: 0; margin: 30px 0 18px; border: 0; background: none; color: inherit; font: 500 34px / 1.4 var(--serif); letter-spacing: .11em; white-space: nowrap; }
.featured-name svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.1; opacity: 0; transition: opacity .18s; }
.featured-name:enabled:hover svg, .featured-name:focus-visible svg, .featured-name[data-copied] svg { opacity: .7; }
.featured-card blockquote { min-height: 65px; color: inherit; font: 15px / 2.05 var(--serif); letter-spacing: .035em; }
.featured-rule { display: block; margin-top: 22px; width: 28px; height: 2px; background: currentColor; opacity: .35; clip-path: polygon(0 30%, 42% 0, 100% 25%, 94% 80%, 31% 100%, 0 65%); }
mark { padding-bottom: 2px; color: inherit; background: transparent; border-bottom: 1px solid var(--line-strong); }

.names-section { padding-block: 62px 68px; }
.names-section > h2 { margin-bottom: 28px; color: var(--ink); font-weight: 400; letter-spacing: .045em; }
.name-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; list-style: none; padding: 0; margin: 0; }
.name-item { min-width: 0; }
.name-button { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 82px; padding: 21px 25px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: center; transition: background .18s, border-color .18s; }
.name-button:enabled:hover { background: var(--interaction-wash); border-color: var(--interaction-line); }
.name-word { color: var(--ink); font: 400 26px / 1.5 var(--serif); letter-spacing: .11em; white-space: nowrap; }
.name-surname { color: var(--seal); }
.name-copy svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.2; }
.name-copy { position: absolute; right: 10px; color: var(--interaction); opacity: 0; transition: opacity .18s; }
.name-button:enabled:hover .name-copy, .name-button:focus-visible .name-copy, .name-button[data-copied] .name-copy { opacity: 1; }
.name-button[data-copied] { border-color: var(--interaction-line); background: var(--interaction-wash); }
.mini-program-section { display: grid; grid-template-columns: minmax(0, 440px) 320px; align-items: center; justify-content: center; justify-items: center; gap: 80px; padding-block: 96px 104px; }
.mini-program-copy { min-width: 0; width: 100%; }
.mini-program-copy h2 { margin-bottom: 20px; color: var(--ink); font: var(--brand-weight) clamp(36px, 3.5vw, 48px) / 1.5 var(--serif); letter-spacing: .08em; }
.mini-program-description { max-width: 20em; color: var(--ink); font: 400 22px / 1.9 var(--serif); letter-spacing: .045em; }
.mini-program-prompt { margin-top: 24px; color: var(--seal); font-size: 14px; line-height: 1.8; letter-spacing: .08em; }
.mini-program-code { width: 320px; height: auto; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 34px 40px; border-top: 1px solid var(--footer-line); color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-main > span { white-space: nowrap; }
.footer-links { display: flex; gap: 16px; white-space: nowrap; }
.footer-links a { padding-block: 4px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; text-align: right; }

.legal-main { max-width: 820px; padding-block: 48px 80px; }
.legal-heading h1 { margin: 0; color: var(--ink); font: 500 40px / 1.5 var(--serif); letter-spacing: .05em; }
.legal-date { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.legal-intro { margin-top: 24px; font-size: 16px; line-height: 2; }
.legal-toc { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.legal-toc summary { color: var(--muted); cursor: pointer; }
.legal-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 18px; }
.legal-toc a { color: var(--muted); }
.legal-section { margin-top: 40px; scroll-margin-top: 24px; }
.legal-section h2, .legal-contact h2 { color: var(--ink); font: 500 23px / 1.7 var(--serif); letter-spacing: .025em; }
.legal-section p { margin-top: 14px; font-size: 16px; line-height: 2.05; overflow-wrap: anywhere; }
.legal-contact { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-contact p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.legal-contact a { color: var(--seal); overflow-wrap: anywhere; }
.legal-main a:hover { color: var(--seal); text-decoration: underline; text-underline-offset: 4px; }

.toast { position: fixed; z-index: 20; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 15px 24px; border: 1px solid var(--line-strong); background: var(--interaction); color: var(--paper-light); box-shadow: 0 5px 25px rgb(55 46 40 / 9%); font-size: 13px; line-height: 1.7; text-align: center; }
.copy-dialog { position: fixed; width: min(430px, calc(100% - 36px)); padding: 42px 30px 30px; color: var(--ink); background-color: var(--paper); background-image: var(--paper-texture); border: 1px solid var(--line-strong); }
.copy-dialog::backdrop { background: rgb(55 46 40 / 25%); backdrop-filter: blur(3px); }
.copy-dialog h2 { font-size: 27px; }
.dialog-close { position: absolute; top: 8px; right: 10px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); font-size: 27px; }
.copy-dialog input { width: 100%; margin-block: 24px 18px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper-light); color: var(--ink); text-align: center; font: 28px var(--serif); }
.dialog-hint { color: var(--muted); font-size: 12px; }
.not-found { display: grid; place-items: center; min-height: 100vh; padding: 30px; }
.not-found .wordmark { display: block; margin-bottom: 55px; font: 24px var(--serif); }
.not-found h1 { font: 500 clamp(30px, 6vw, 48px) / 1.4 var(--serif); white-space: normal; }
.not-found .primary-link { margin-top: 30px; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .hero-content { min-height: 560px; padding-block: 76px 64px; }
  .hero-code { display: none; }
  .hero-open { display: inline-flex; }
  .hero-landscape { object-position: 72% center; }
  .featured-grid { gap: 15px; }
  .featured-card { padding-inline: 17px; }
  .featured-name { font-size: 30px; }
  .featured-card blockquote { font-size: 14px; }
  .name-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-card { min-height: 244px; }
  .featured-card:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding-inline: 25px; }
  .featured-card:first-child .featured-top { position: absolute; top: 20px; left: 25px; right: 25px; }
  .name-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-program-section { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .mini-program-code { width: 280px; }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 40px); }
  .hero-content { min-height: 300px; padding-block: 56px 64px; }
  .hero-brand { font-size: clamp(44px, 13.5vw, 68px); }
  .hero-tagline { font-size: clamp(17px, 4.8vw, 23px); }
  .primary-link { font-size: 13px; min-height: 51px; padding: 15px 20px; gap: 23px; }
  .inspiration-section { padding-block: 34px 38px; }
  .inspiration-section h2 { font-size: clamp(20px, 5.7vw, 25px); letter-spacing: .025em; margin-bottom: 24px; }
  h2 { font-size: 27px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .featured-card { min-height: 246px; padding: 18px 19px 22px; }
  .featured-card:first-child { grid-row: auto; grid-column: span 2; min-height: 214px; padding: 20px 26px; display: block; }
  .featured-card:first-child .featured-top { position: static; }
  .featured-card:first-child .featured-name { margin: 20px 0 12px; font-size: 36px; }
  .featured-card:first-child blockquote { min-height: 0; }
  .featured-card:first-child .featured-rule { margin-top: 18px; }
  .featured-name { font-size: 30px; margin: 26px 0 16px; }
  .featured-card blockquote { font-size: 14px; }
  .names-section { padding-block: 42px 48px; }
  .names-section > h2 { font-size: clamp(18px, 5.3vw, 26px); margin-bottom: 22px; }
  .name-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .name-button { min-height: 76px; padding: 18px 23px; }
  .name-copy { right: 7px; }
  .name-word { font-size: 25px; letter-spacing: .08em; }
  .name-copy svg { width: 13px; height: 13px; }
  .mini-program-section { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 64px 72px; text-align: center; }
  .mini-program-copy h2 { margin-bottom: 16px; font-size: 34px; }
  .mini-program-description { margin-inline: auto; font-size: clamp(17px, 4.8vw, 20px); }
  .mini-program-prompt { margin-top: 18px; font-size: 13px; }
  .mini-program-code { width: 260px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding-block: 26px 30px; gap: 12px; font-size: 11px; }
  .footer-main { gap: 8px 20px; }
  .footer-details { justify-content: flex-start; text-align: left; }
  .legal-main { padding-block: 32px 56px; }
  .legal-heading h1 { font-size: 32px; }
  .legal-intro { margin-top: 20px; font-size: 15px; }
  .legal-toc { padding: 16px; }
  .legal-toc nav { grid-template-columns: minmax(0, 1fr); }
  .legal-section { margin-top: 32px; }
  .legal-section h2, .legal-contact h2 { font-size: 21px; }
  .legal-section p { font-size: 15px; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 32px); }
  .primary-link { padding-inline: 16px; gap: 20px; }
  .featured-card { padding-inline: 14px; }
  .featured-name { font-size: 28px; }
  .name-word { font-size: 22px; }
  .name-button { padding-inline: 21px; }
  .name-copy { right: 4px; }
}
@media (hover: none) {
  .name-copy { opacity: .45; }
  .featured-name svg { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
