:root {
  --bg: #110e0d;
  --surface: #1b1514;
  --surface-2: #251d1a;
  --ink: #fff8ef;
  --muted: #c1b4a9;
  --faint: #8e8178;
  --line: rgba(255,239,220,.15);
  --blush: #f0b0a7;
  --cream: #ffe0af;
  --redbean: #9b2a2c;
  --redbean-soft: #d86e71;
  --matcha: #b7ba6b;
  --matcha-soft: #dce09c;
  --active: var(--redbean);
  --active-soft: var(--redbean-soft);
  --on-active: #fff8f8;
  --display: "Archivo Black", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --header-h: 82px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .18s ease both; }
::view-transition-new(root) { animation: page-in .42s cubic-bezier(.2,.75,.2,1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; overscroll-behavior-x: none; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 79% 12%, color-mix(in srgb, var(--blush) 9%, transparent), transparent 33rem),
    radial-gradient(circle at 8% 86%, color-mix(in srgb, var(--matcha) 9%, transparent), transparent 28rem),
    var(--bg);
  font-family: var(--sans);
  overflow-x: clip;
  overscroll-behavior-x: none;
  transition: background .6s ease;
}
body.matcha-mode {
  --active: var(--matcha);
  --active-soft: var(--matcha-soft);
  --on-active: #111208;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.content-width { width: min(100% - 48px, 1280px); margin-inline: auto; }
.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  left: var(--mouse-x, 75vw);
  top: var(--mouse-y, 20vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--active) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.noise {
  position: fixed;
  z-index: 50;
  inset: 0;
  opacity: .04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* Shared navigation */
.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: var(--header-h);
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(17,14,13,.84);
  backdrop-filter: blur(18px) saturate(1.3);
}
.logo { display: flex; align-items: center; gap: 11px; width: max-content; }
.logo-mark {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--active) 0 52%, var(--matcha) 52% 100%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--active) 35%, transparent);
  transform: rotate(-8deg);
  transition: background .5s ease, box-shadow .5s ease;
}
.logo-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--on-active);
  border-radius: 50%;
  opacity: .9;
}
.logo-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: var(--on-active);
  box-shadow: 0 -9px 0 -2px var(--on-active), 0 9px 0 -2px var(--on-active), 9px 0 0 -2px var(--on-active), -9px 0 0 -2px var(--on-active);
  transform: translate(-50%, -50%);
}
.logo-type { font-size: .75rem; font-weight: 700; line-height: 1.15; letter-spacing: .13em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); }
.desktop-nav a {
  position: relative;
  padding: 30px 0;
  color: var(--muted);
  font-size: .86rem;
  transition: color .2s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--active);
  transition: right .25s ease;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { right: 0; }
.light-switch {
  justify-self: end;
  min-height: 40px;
  padding: 8px 14px 8px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  font-size: .78rem;
}
.switch-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--active); box-shadow: 0 0 15px var(--active); }
.mobile-nav { display: none; }

/* Home */
.home-hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(30px, 7vw, 105px);
  padding: 54px 0 34px;
}
.home-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--active-soft);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .2em;
}
.eyebrow > span:first-child { width: 38px; height: 1px; background: currentColor; flex: 0 0 38px; }
.home-copy h1 { margin: 0; }
.home-copy h1 > span {
  display: block;
  font-size: clamp(4rem, 7.3vw, 7.8rem);
  line-height: .92;
  letter-spacing: -.08em;
}
.home-copy h1 > b {
  display: block;
  margin-top: 22px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.46);
  font: 400 clamp(3.1rem, 6vw, 6.4rem)/.75 var(--display);
  letter-spacing: -.08em;
}
.hero-statement { margin: 38px 0 0; color: #d0cad8; font-size: 1.08rem; line-height: 1.95; }
.hero-actions { margin-top: 37px; display: flex; align-items: center; gap: 28px; }
.primary-action {
  width: min(100%, 250px);
  min-height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--on-active);
  background: var(--active);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .5s ease;
}
.primary-action:hover { transform: translateY(-3px); box-shadow: 0 18px 50px color-mix(in srgb, var(--active) 25%, transparent); }
.text-action { color: var(--muted); font-size: .88rem; }
.text-action span { margin-left: 9px; color: var(--active-soft); }

.home-portrait { position: relative; width: min(100%, 610px); aspect-ratio: 1 / .92; justify-self: center; display: grid; place-items: center; }
.portrait-halo {
  position: absolute;
  inset: 15% 3% 3% 15%;
  border: 1px solid color-mix(in srgb, var(--active) 45%, transparent);
  border-radius: 50%;
  transform: rotate(-13deg);
  animation: orbit 18s linear infinite;
}
.portrait-halo::after { content: ""; position: absolute; top: 13%; left: 12%; width: 9px; height: 9px; border-radius: 50%; background: var(--active); box-shadow: 0 0 18px var(--active); }
@keyframes orbit { to { transform: rotate(347deg); } }
.portrait-card {
  position: relative;
  width: 68%;
  height: 91%;
  overflow: hidden;
  background: var(--surface-2);
  clip-path: polygon(12% 0,100% 0,88% 100%,0 100%);
  box-shadow: 0 35px 90px rgba(0,0,0,.35);
}
.portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.92) contrast(1.05); }
.portrait-card.no-photo::before { content: "WANG\AANNI"; white-space: pre; position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); font: 400 4rem/.8 var(--display); }
.portrait-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,14,13,.96), transparent 38%), linear-gradient(125deg, color-mix(in srgb, var(--active) 18%, transparent), transparent 50%); }
.portrait-caption { position: absolute; left: 14%; right: 12%; bottom: 8%; }
.portrait-caption span { display: block; margin-bottom: 5px; color: var(--active-soft); font-size: .75rem; letter-spacing: .14em; }
.portrait-caption strong { font-size: 1rem; }
.color-ticket { position: absolute; z-index: 3; min-width: 142px; padding: 13px 15px; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.18); }
.color-ticket span { display: block; font-size: .75rem; letter-spacing: .12em; }
.color-ticket b { display: block; margin-top: 4px; font: 400 .86rem var(--display); }
.red-ticket { left: 3%; bottom: 17%; color: #fff; background: rgba(155,42,44,.78); }
.green-ticket { right: 0; top: 15%; color: #151609; background: rgba(183,186,107,.86); }
.hero-facts {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hero-facts div { padding: 17px 22px; display: flex; justify-content: space-between; gap: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-facts dt { color: var(--faint); font-size: .78rem; }
.hero-facts dd { margin: 0; font-size: .88rem; font-weight: 700; }

.portal-section { padding: 115px 0 64px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(240px, .55fr); gap: 50px; align-items: end; margin-bottom: 44px; }
.section-heading span { color: var(--active-soft); font-size: .75rem; font-weight: 900; letter-spacing: .16em; }
.section-heading h2 { margin: 11px 0 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.15; letter-spacing: -.05em; }
.section-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.portal-card {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  padding: 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: end;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  transition: transform .25s ease, background .25s ease;
}
.portal-card::after { content: "♡"; position: absolute; top: 17px; right: 22px; color: var(--blush); font-size: 1.15rem; opacity: .72; transform: rotate(12deg); }
.portal-card:hover { z-index: 2; transform: translateY(-5px); background: color-mix(in srgb, var(--active) 9%, var(--surface)); }
.portal-card.featured { background: color-mix(in srgb, var(--active) 10%, transparent); }
.portal-index { align-self: start; color: var(--faint); font: 400 .75rem var(--display); }
.portal-card p { margin: 0 0 8px; color: var(--active-soft); font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.portal-card h3 { margin: 0 0 12px; font-size: 1.8rem; }
.portal-card div > span { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.portal-card > b { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--active-soft); }
/* Shared inner pages */
.inner-main { min-height: 100svh; }
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, .52fr);
  align-items: end;
  gap: clamp(30px, 5vw, 70px);
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-hero::after { content: "✿"; position: absolute; right: 4%; top: 22%; color: var(--blush); font-size: clamp(2.4rem,5vw,5rem); opacity: .48; animation: kawaii-drift 5s ease-in-out infinite; }
@keyframes kawaii-drift { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(10px) rotate(8deg); } }
.page-index { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.26); font: 400 clamp(3.5rem, 7vw, 7rem)/.8 var(--display); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { margin: 0; font-size: clamp(3.5rem, 7vw, 7.4rem); line-height: .92; letter-spacing: -.08em; }
.page-hero > p { margin: 0 0 2px; color: var(--muted); font-size: 1rem; line-height: 1.9; }

/* Profile */
.profile-layout { padding: 94px 0 125px; display: grid; grid-template-columns: minmax(320px,.8fr) minmax(420px,1.2fr); gap: clamp(50px, 9vw, 130px); align-items: start; }
.profile-visual { position: sticky; top: calc(var(--header-h) + 32px); min-height: 650px; display: grid; place-items: start center; }
.profile-photo { position: relative; z-index: 2; width: 73%; aspect-ratio: .72; overflow: hidden; clip-path: polygon(10% 0,100% 0,90% 100%,0 100%); background: var(--surface-2); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-photo.no-photo::before { content: "王安妮"; position: absolute; inset: 0; display: grid; place-items: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); font: 400 3rem var(--display); }
.profile-monogram { position: absolute; left: 2%; bottom: 8%; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); font: 400 clamp(4rem, 8vw, 8rem)/1 var(--display); letter-spacing: -.08em; transform: rotate(-90deg); transform-origin: left bottom; }
.source-chip { position: absolute; z-index: 3; right: 0; bottom: 8%; padding: 15px 18px; color: var(--on-active); background: var(--active); font-size: .82rem; font-weight: 900; }
.profile-content { padding-top: 34px; }
.profile-overline { margin: 0 0 19px; color: var(--active-soft); font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.profile-content h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: 1; letter-spacing: -.06em; }
.profile-content h2 span { display: block; margin-top: 14px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.38); font: 400 .62em var(--display); letter-spacing: -.04em; }
.profile-intro { margin: 40px 0 46px; color: #c9c3d1; font-size: 1.04rem; line-height: 2; }
.fact-table { margin: 0; border-top: 1px solid var(--line); }
.fact-table div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact-table dt { color: var(--faint); font-size: .82rem; }
.fact-table dd { margin: 0; font-weight: 700; }
.fact-table small { display: block; margin-top: 8px; color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.7; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; box-shadow: 0 0 14px currentColor; }
.swatch.red { color: var(--redbean); background: var(--redbean); }
.swatch.green { color: var(--matcha); background: var(--matcha); }
.social-section { padding: 0 0 125px; }
.social-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.social-grid a { min-height: 170px; padding: 25px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.social-grid a:hover { background: color-mix(in srgb, var(--active) 10%, transparent); }
.social-grid span { color: var(--faint); font-size: .75rem; letter-spacing: .14em; }
.social-grid strong { margin-top: auto; font-size: 1.4rem; }
.social-grid b { align-self: end; color: var(--active-soft); }

/* Diary */
.diary-section { padding: 54px 0 125px; }
.filter-bar { min-height: 64px; padding: 10px 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.filter-bar > span { margin-right: 12px; color: var(--faint); font-size: .82rem; }
.filter-bar button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font-size: .82rem; }
.filter-bar button.active { color: var(--on-active); border-color: var(--active); background: var(--active); }
.diary-list { border-left: 1px solid var(--line); }
.diary-entry { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); animation: entry-in .35s ease both; }
@keyframes entry-in { from { opacity: 0; transform: translateY(10px); } }
.entry-date { padding: 46px 34px; border-right: 1px solid var(--line); }
.entry-date time { color: var(--faint); font: 400 1rem/1.45 var(--display); }
.entry-date time b { color: var(--ink); font-size: 1.6rem; }
.entry-date span { display: block; width: max-content; margin-top: 20px; padding: 6px 9px; border: 1px solid var(--line); color: var(--active-soft); font-size: .75rem; }
.entry-copy { padding: clamp(38px, 6vw, 76px); background: rgba(255,255,255,.015); }
.featured-entry .entry-copy { background: linear-gradient(135deg,color-mix(in srgb,var(--active) 10%,transparent),transparent 55%); }
.entry-tag { margin: 0 0 20px; color: var(--active-soft); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.entry-copy h2 { max-width: 780px; margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.2; letter-spacing: -.05em; }
.entry-copy > p:not(.entry-tag) { max-width: 800px; margin: 30px 0 0; color: #bdb7c7; font-size: 1rem; line-height: 2; }
.entry-copy blockquote { margin: 30px 0 0; padding-left: 18px; border-left: 2px solid var(--active); color: #e6e0ea; font-family: var(--serif); font-size: 1.08rem; line-height: 1.8; }
.entry-copy a { display: block; width: max-content; margin-top: 34px; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: var(--active-soft); font-size: .82rem; font-weight: 700; }
.source-note { margin: 24px 0 0; color: var(--faint); font-size: .78rem; line-height: 1.7; }

/* Notices / bulletin board */
.notices-main { background: linear-gradient(135deg,rgba(183,186,107,.035),transparent 42%); }
.notice-board { padding: 54px 0 125px; }
.month-index { display: grid; grid-template-columns: minmax(145px,.8fr) repeat(5,1fr); gap: 12px; margin-bottom: 25px; }
.month-index-heading { min-height: 92px; padding: 15px 17px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,231,197,.2); color: #f5dfc2; background: rgba(58,36,29,.7); }
.month-index-heading span { color: #d7b99b; font-size: .68rem; letter-spacing: .12em; }
.month-index-heading strong { font: 900 1.2rem var(--sans); }
.month-card { position: relative; min-width: 0; min-height: 92px; padding: 13px 10px 11px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; border: 1px solid rgba(89,56,43,.22); color: #5b4033; background: #f1dfbd; cursor: pointer; text-align: left; transform: rotate(var(--month-tilt, 0deg)); transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease; }
.month-card:nth-child(3) { --month-tilt: 1.2deg; background: #d9dca6; }
.month-card:nth-child(4) { --month-tilt: -1deg; background: #e8c2be; }
.month-card:nth-child(5) { --month-tilt: 1.4deg; background: #d9cbe0; }
.month-card:nth-child(6) { --month-tilt: -1.2deg; background: #eadfcf; }
.month-card::before { content: ""; position: absolute; top: 8px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #9b2a2c; box-shadow: 0 1px 2px rgba(0,0,0,.25); transform: translateX(-50%); }
.month-card b { margin-top: 10px; font: 400 clamp(1.35rem,2.4vw,2.2rem)/1 var(--display); letter-spacing: -.08em; }
.month-card span { font-size: .68rem; }
.month-card:hover, .month-card.active { color: #fff7eb; background: #9b2a2c; box-shadow: 0 9px 18px rgba(39,17,12,.2); transform: translateY(-4px) rotate(0deg); }
.month-card.active::before { background: #f8e7c6; }
.notice-card[hidden] { display: none; }
.board-frame { position: relative; padding: clamp(22px,4vw,52px); border: 12px solid #3a241d; background: #76513d; box-shadow: 0 26px 70px rgba(0,0,0,.3), inset 0 0 0 3px rgba(255,220,172,.1); }
.board-frame::before { content: ""; position: absolute; inset: 12px; pointer-events: none; border: 1px solid rgba(255,226,185,.14); box-shadow: inset 0 0 50px rgba(35,17,12,.22); }
.board-header, .board-grid, .board-footer { position: relative; z-index: 1; }
.board-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; padding: 0 5px 23px; border-bottom: 1px solid rgba(255,231,197,.3); color: #f8e8d2; }
.board-header span { color: #d7b99b; font: 400 .72rem var(--display); letter-spacing: .16em; }
.board-header h2 { margin: 8px 0 0; color: #fff3df; font-size: clamp(2.2rem,5vw,4.8rem); line-height: .95; letter-spacing: -.08em; }
.board-header p { margin: 0; color: #ddc5aa; font-size: .78rem; line-height: 1.8; text-align: right; }
.board-header p b { color: #fff0d7; font-size: .9rem; }
.board-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: clamp(17px,2.5vw,32px); align-items: start; }
.notice-card { position: relative; min-height: 245px; padding: 28px 27px 25px; color: #33251f; cursor: default; box-shadow: 8px 13px 17px rgba(38,20,14,.22); transform: rotate(0deg); transition: transform .25s ease, box-shadow .25s ease; }
.notice-card:hover { z-index: 3; box-shadow: 12px 20px 26px rgba(38,20,14,.3); transform: translateY(-6px) rotate(0deg); }
.notice-card--wide { grid-column: span 4; min-height: 305px; }
.notice-card--small { grid-column: span 2; min-height: 210px; }
.notice-card--cream, .notice-card--matcha { grid-column: span 2; }
.notice-card--tilt-left { transform: rotate(-1.4deg); }
.notice-card--tilt-right { transform: rotate(1.2deg); }
.notice-card--red { background: #d97972; }
.notice-card--cream { background: #f3dfae; }
.notice-card--matcha { background: #c5c888; }
.notice-card--lilac { background: #f1c5b8; }
.notice-card--paper { background: #f1e9d8; }
.pushpin { position: absolute; z-index: 2; top: 10px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--redbean); box-shadow: 2px 3px 4px rgba(35,15,10,.35), inset 3px 2px 3px rgba(255,255,255,.45); transform: translateX(-50%); }
.pushpin::after { content: ""; position: absolute; left: 7px; top: 14px; width: 2px; height: 13px; background: rgba(50,25,18,.42); transform: rotate(18deg); transform-origin: top; }
.notice-card--matcha .pushpin { background: #9b2a2c; }
.notice-card--lilac .pushpin { background: #a34b49; }
.notice-card-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 15px; border-bottom: 1px dashed rgba(59,37,29,.35); color: rgba(52,35,29,.7); font-size: .7rem; }
.notice-label { font-weight: 900; letter-spacing: .1em; }
.notice-card time { font: 400 .72rem var(--display); }
.notice-card h3 { margin: 24px 0 13px; font-size: clamp(1.25rem,2vw,2rem); line-height: 1.35; letter-spacing: -.05em; }
.notice-card p { margin: 0; color: rgba(52,37,31,.78); font-size: .88rem; line-height: 1.85; }
.notice-card a { display: inline-block; margin-top: 22px; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: #4d5a25; cursor: pointer; font-size: .8rem; font-weight: 900; }
.notice-signature { display: block; margin-top: 25px; color: rgba(52,37,31,.68); font-size: .75rem; text-align: right; }
.notice-stamp { position: absolute; right: 24px; bottom: 21px; padding: 6px 8px; border: 2px solid rgba(155,42,44,.65); color: rgba(155,42,44,.78); font-size: .68rem; font-weight: 900; letter-spacing: .12em; transform: rotate(-8deg); }
.notice-doodle { position: absolute; right: 22px; bottom: 13px; color: var(--redbean); font-size: 2.8rem; line-height: 1; transform: rotate(12deg); }
.board-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 19px 5px 0; border-top: 1px solid rgba(255,231,197,.24); color: #d7b99b; font-size: .72rem; letter-spacing: .08em; }

/* Colors */
.color-stage { display: grid; grid-template-columns: 1fr 1fr; min-height: 700px; }
.support-color { min-height: 700px; padding: clamp(34px,5vw,72px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.red-support { color: #fffafa; background: var(--redbean); }
.green-support { color: #151609; background: var(--matcha); }
.support-color::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%,rgba(255,255,255,.75),transparent 27%); opacity: .42; }
.support-color > * { position: relative; z-index: 1; }
.color-topline { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; letter-spacing: .13em; }
.color-topline i { font-style: normal; font-weight: 900; }
.color-center p { margin: 0 0 28px; font-size: clamp(1.5rem,2.5vw,2.5rem); line-height: 1.45; font-weight: 900; letter-spacing: -.04em; }
.color-center strong { display: block; color: transparent; -webkit-text-stroke: 1px currentColor; font: 400 clamp(7rem,15vw,15rem)/.73 var(--display); letter-spacing: -.08em; opacity: .47; }
.copy-color { width: min(100%,320px); min-height: 58px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border: 1px solid currentColor; color: inherit; background: rgba(255,255,255,.08); cursor: pointer; }
.copy-color span { font: 400 .94rem var(--display); }
.copy-color b { font-size: .82rem; }
.color-guide { padding: 115px 0 125px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-grid article { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-sample { display: block; height: 105px; margin-bottom: 27px; }
.guide-sample.split { background: linear-gradient(90deg,var(--redbean) 0 50%,var(--matcha) 50%); }
.guide-sample.red-focus { background: linear-gradient(90deg,var(--redbean) 0 78%,var(--matcha) 78%); }
.guide-sample.green-focus { background: linear-gradient(90deg,var(--redbean) 0 22%,var(--matcha) 22%); }
.guide-grid h3 { margin: 0 0 10px; font-size: 1.25rem; }
.guide-grid p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.official-reference { margin-top: 28px; padding: 22px 24px; display: grid; grid-template-columns: 130px 1fr auto; gap: 22px; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.official-reference span { color: var(--faint); font-size: .78rem; }
.official-reference strong { font-size: .95rem; }
.official-reference b { color: var(--active-soft); }

/* Literary column */
.hymn-main { background: linear-gradient(135deg,rgba(155,42,44,.035),transparent 45%); }
.literary-stage { padding: 54px 0 125px; }
.literary-tabs { display: flex; border-bottom: 1px solid var(--line); }
.literary-tabs button { min-width: 210px; padding: 17px 22px; display: flex; gap: 16px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.literary-tabs button span { color: var(--faint); font: 400 .75rem var(--display); }
.literary-tabs button.active { color: var(--ink); border-bottom-color: var(--active); }
.literary-panel { min-height: 720px; padding: clamp(38px,7vw,92px); border: 1px solid var(--line); border-top: 0; background: linear-gradient(145deg,color-mix(in srgb,var(--active) 8%,transparent),transparent 55%),rgba(255,255,255,.018); animation: entry-in .4s ease both; }
.work-meta { display: flex; justify-content: space-between; gap: 30px; color: var(--faint); font-size: .75rem; letter-spacing: .14em; }
.work-meta span { color: var(--active-soft); font-weight: 900; }
.literary-panel h2 { max-width: 850px; margin: 42px 0 60px; font-size: clamp(2.7rem,6vw,6.2rem); line-height: 1.08; letter-spacing: -.07em; }
.poem-layout { display: grid; grid-template-columns: .42fr 1fr; gap: clamp(34px,7vw,100px); align-items: start; }
.bangs-panel .poem-layout { display: block; }
.drop-mark { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb,var(--active) 72%,transparent); font: 400 clamp(10rem,22vw,20rem)/.75 var(--display); opacity: .5; }
.poem-text p { margin: 0 0 31px; color: #ddd6e2; font-family: var(--serif); font-size: 1.08rem; line-height: 2.05; }
.genre-note { max-width: 680px; margin: -38px 0 54px; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.prose-text { max-width: 900px; padding-left: clamp(0px,8vw,120px); }
.prose-text p { margin: 0 0 22px; color: #ddd6e2; font-family: var(--serif); font-size: 1.12rem; line-height: 2.2; letter-spacing: .04em; }
.inspiration { margin: 55px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .78rem; line-height: 1.8; }
.inspiration a { color: var(--active-soft); }
.cheer-button { position: relative; overflow: hidden; width: 100%; min-height: 180px; margin-top: 34px; padding: 30px; display: flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid color-mix(in srgb, var(--cream) 32%, transparent); color: var(--on-active); background: linear-gradient(110deg, var(--active) 0%, color-mix(in srgb, var(--active) 72%, #351c18) 52%, #5d2929 100%); box-shadow: 0 18px 50px color-mix(in srgb, var(--active) 20%, transparent); cursor: pointer; font-size: clamp(1.35rem,3vw,2.4rem); font-weight: 900; isolation: isolate; letter-spacing: .06em; }
.cheer-button::after { content: "ANNIE CHEER · 紅豆妮"; position: absolute; top: 17px; right: 23px; color: var(--cream); font: 400 .68rem var(--display); letter-spacing: .14em; opacity: .78; }
.cheer-button::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 10px; height: 10px; border: 1px solid var(--cream); border-radius: 50%; opacity: 0; transform: translate(-50%,-50%) scale(1); }
.cheer-button.is-sent { animation: cheer-pop .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 0 5px color-mix(in srgb, var(--active-soft) 16%, transparent), 0 16px 45px color-mix(in srgb, var(--active) 36%, transparent); }
.cheer-button.is-sent::before { animation: cheer-ring .75s ease-out both; }
.cheer-button > b { color: var(--cream); font-size: 1.15rem; animation: cheer-twinkle 1.2s ease-in-out infinite; }
.cheer-particle { position: absolute; z-index: 2; left: 50%; top: 50%; color: var(--particle-color, var(--cream)); font-style: normal; font-size: var(--particle-size, 1.1rem); pointer-events: none; animation: cheer-burst .8s cubic-bezier(.15,.75,.25,1) forwards; }
@keyframes cheer-pop { 0% { transform: scale(1); } 35% { transform: scale(1.035); } 100% { transform: scale(1); } }
@keyframes cheer-ring { 0% { opacity: .8; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(28); } }
@keyframes cheer-twinkle { 0%,100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(18deg) scale(1.28); } }
@keyframes cheer-burst { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.35) rotate(0deg); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--particle-x)), calc(-50% + var(--particle-y))) scale(1) rotate(var(--particle-rotate)); } }

/* Footer */
.site-footer { min-height: 230px; padding: 55px max(24px,calc((100vw - 1280px)/2)); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 35px; border-top: 1px solid var(--line); }
.site-footer > div:first-child { display: flex; flex-direction: column; gap: 9px; }
.site-footer strong { font: 400 clamp(2.7rem,6vw,6.2rem)/.9 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); letter-spacing: -.06em; }
.site-footer span, .site-footer a { color: var(--faint); font-size: .75rem; letter-spacing: .1em; }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-meta span { color: var(--faint); font-size: .68rem; line-height: 1.8; letter-spacing: .03em; }
.footer-meta span:last-child { text-align: right; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .mobile-nav {
    position: fixed;
    z-index: 45;
    left: 14px;
    right: 14px;
    bottom: 12px;
    min-height: 66px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(29,22,19,.94);
    backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 15px 50px rgba(0,0,0,.45);
  }
  .mobile-nav a { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; color: var(--faint); }
  .mobile-nav a.active { color: var(--ink); background: color-mix(in srgb,var(--active) 22%,transparent); }
  .mobile-nav b { min-height: 17px; color: var(--active-soft); font: 400 1.05rem/1 var(--sans); }
  .mobile-nav a.active b { color: var(--cream); }
  .mobile-nav span { font-size: .75rem; white-space: nowrap; }
  body { padding-bottom: 88px; }
  .home-hero { grid-template-columns: .85fr 1.15fr; }
  .page-hero { grid-template-columns: 1fr minmax(240px,.65fr); }
  .page-hero > p { grid-column: 2; max-width: 680px; }
  .profile-layout { grid-template-columns: .85fr 1.15fr; gap: 45px; }
  .social-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .content-width { width: min(100% - 32px,1280px); }
  .site-header { padding-inline: 16px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-type { font-size: .75rem; }
  .light-switch { width: 40px; padding: 0; justify-content: center; }
  .switch-text { display: none; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 28px; padding: 50px 0 28px; }
  .home-copy h1 > span { font-size: clamp(4rem,20vw,6.3rem); }
  .home-copy h1 > b { font-size: clamp(3rem,16vw,5rem); }
  .hero-statement { margin-top: 30px; }
  .hero-actions { flex-wrap: wrap; gap: 20px; }
  .home-portrait { width: 100%; max-width: 100%; max-height: 570px; }
  .hero-facts { grid-column: 1; grid-template-columns: repeat(2,1fr); }
  .hero-facts div { flex-direction: column; }
  .portal-section { padding-top: 82px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 215px; padding: 27px 22px; gap: 18px; }
  .page-hero { min-height: 330px; grid-template-columns: 1fr; align-items: start; gap: 18px; padding: 65px 0 42px; }
  .page-index { font-size: 3.5rem; }
  .page-hero > p { grid-column: 1; }
  .page-hero h1 { font-size: clamp(3.4rem,18vw,5.5rem); }
  .profile-layout { grid-template-columns: 1fr; padding: 62px 0 90px; }
  .profile-visual { position: relative; top: auto; min-height: 580px; }
  .profile-photo { width: 76%; }
  .profile-content { padding-top: 0; }
  .fact-table div { grid-template-columns: 90px 1fr; }
  .social-section { padding-bottom: 90px; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .social-grid a { min-height: 145px; padding: 20px; }
  .diary-section { padding: 35px 0 90px; }
  .filter-bar { overflow-x: auto; }
  .diary-entry { grid-template-columns: 1fr; }
  .entry-date { padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .entry-date time br { display: none; }
  .entry-date time b { margin-left: 8px; }
  .entry-date span { margin-top: 0; }
  .entry-copy { padding: 36px 24px 46px; }
  .notice-board { padding: 35px 0 90px; }
  .month-index { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .month-index-heading { grid-column: 1 / -1; min-height: 68px; }
  .month-card { min-height: 82px; }
  .board-frame { border-width: 8px; padding: 18px; }
  .board-frame::before { inset: 8px; }
  .board-header { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 27px; }
  .board-header p { text-align: left; }
  .board-grid { grid-template-columns: 1fr 1fr; gap: 17px; }
  .notice-card, .notice-card--wide, .notice-card--small { grid-column: span 2; min-height: 0; padding: 27px 21px 23px; }
  .notice-card--small { grid-column: span 1; }
  .notice-card h3 { font-size: 1.25rem; }
  .notice-card p { font-size: .82rem; }
  .board-footer { flex-direction: column; gap: 7px; }
  .color-stage { grid-template-columns: 1fr; }
  .support-color { min-height: 590px; }
  .color-center strong { font-size: clamp(7rem,38vw,12rem); }
  .color-guide { padding: 82px 0 90px; }
  .guide-grid { grid-template-columns: 1fr; }
  .official-reference { grid-template-columns: 1fr auto; }
  .official-reference span { grid-column: 1 / -1; }
  .literary-stage { padding: 35px 0 90px; }
  .literary-tabs button { min-width: 0; flex: 1; padding: 16px 12px; }
  .literary-panel { min-height: 660px; padding: 34px 22px; }
  .literary-panel h2 { margin: 38px 0 46px; }
  .poem-layout { grid-template-columns: 1fr; gap: 12px; }
  .drop-mark { font-size: 9rem; }
  .genre-note { margin-top: -28px; }
  .prose-text { padding-left: 0; }
  .cheer-button { min-height: 145px; padding: 28px 18px; gap: 14px; }
  .cheer-button::after { top: 13px; right: 14px; font-size: .58rem; }
  .site-footer { min-height: 215px; grid-template-columns: 1fr; padding-bottom: 90px; }
  .footer-meta { grid-column: 1; flex-direction: column; gap: 8px; }
  .footer-meta span:last-child { text-align: left; }
}

/* Custom cursor icons */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url("./assets/icons/cursors/pointer-pressed.png") 4 44, auto;
  }

  a:hover,
  button:hover:not(:disabled),
  [role="button"]:hover:not([aria-disabled="true"]),
  input[type="button"]:hover:not(:disabled),
  input[type="submit"]:hover:not(:disabled),
  summary:hover {
    cursor: url("./assets/icons/cursors/pointer.png") 4 44, pointer;
  }

  a:hover:active,
  button:hover:not(:disabled):active,
  [role="button"]:hover:not([aria-disabled="true"]):active,
  input[type="button"]:hover:not(:disabled):active,
  input[type="submit"]:hover:not(:disabled):active,
  summary:hover:active {
    cursor: url("./assets/icons/cursors/pointer-pressed.png") 4 44, pointer;
  }
}

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