/* ============================================================
   TORIPPI DESIGN SYSTEM — v1.0
   Brand: 三上康明 Official Website
   Authored following Apple Human Interface Guidelines principles
   ============================================================ */

/* ── GOOGLE FONTS ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Color — Primitive */
  --ink-0:   #0D0C0B;
  --ink-10:  #1A1916;
  --ink-20:  #2C2A26;
  --ink-40:  #4A4740;
  --ink-60:  #7A7670;
  --ink-80:  #ADAAA4;
  --ink-90:  #D4D1CB;
  --ink-95:  #EDEAE4;
  --ink-99:  #F8F6F2;
  --ink-100: #FDFCFA;

  --amber-10: #0D2A1E;
  --amber-30: #1A6647;
  --amber-50: #28916A;
  --amber-60: #38b48b;
  --amber-70: #52C8A0;
  --amber-80: #8ADBBE;
  --amber-90: #C0EEE0;
  --amber-95: #E8F8F3;

  --crimson-50: #C0392B;
  --jade-50:    #28916A;

  /* Color — Semantic */
  --bg-primary:     var(--ink-100);
  --bg-secondary:   var(--ink-99);
  --bg-tertiary:    var(--ink-95);
  --bg-inverse:     var(--ink-0);
  --surface:        var(--ink-100);
  --surface-raised: var(--ink-99);
  --border:         var(--ink-90);
  --border-strong:  var(--ink-80);
  --text-1:         var(--ink-10);
  --text-2:         var(--ink-40);
  --text-3:         var(--ink-60);
  --text-dis:       var(--ink-80);
  --text-inv:       var(--ink-100);
  --accent:         var(--amber-60);
  --accent-h:       var(--amber-70);
  --accent-sub:     var(--amber-95);
  --error:          var(--crimson-50);
  --success:        var(--jade-50);

  /* Typography */
  --font-display: 'Shippori Mincho', 'Noto Serif JP', Georgia, serif;
  --font-body:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-latin:   'Cormorant Garamond', Georgia, serif;

  /* Type Scale */
  --text-2xs: 11px;
  --text-xs:  13px;
  --text-sm:  14px;
  --text-md:  16px;
  --text-lg:  18px;
  --text-xl:  22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 56px;

  /* Spacing (8px base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;
  --sp-40: 160px;

  /* Radius */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(13,12,11,0.06), 0 1px 2px rgba(13,12,11,0.04);
  --shadow-md: 0 4px 12px rgba(13,12,11,0.08), 0 2px 4px rgba(13,12,11,0.04);
  --shadow-lg: 0 16px 40px rgba(13,12,11,0.10), 0 4px 8px rgba(13,12,11,0.04);

  /* Animation */
  --dur-fast:   150ms;
  --dur-base:   240ms;
  --dur-slow:   400ms;
  --dur-slower: 600ms;
  --ease-std:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spr:   cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Grid */
  --gutter: 24px;
  --max-w:  1200px;
  --col-w: calc((var(--max-w) - 11 * var(--gutter)) / 12);
}

/* ── DARK MODE ──────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary:     var(--ink-0);
    --bg-secondary:   var(--ink-10);
    --bg-tertiary:    var(--ink-20);
    --bg-inverse:     var(--ink-95);
    --surface:        var(--ink-10);
    --surface-raised: var(--ink-20);
    --border:         var(--ink-20);
    --border-strong:  var(--ink-40);
    --text-1:         var(--ink-95);
    --text-2:         var(--ink-80);
    --text-3:         var(--ink-60);
    --accent:         var(--amber-70);
    --accent-sub:     rgba(13,42,30,0.5);
  }
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--text-1);
  background: var(--bg-primary);
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── TYPOGRAPHY COMPONENTS ──────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.t-h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.5;
}
.t-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.t-caption { font-size: var(--text-xs); color: var(--text-3); }

/* ── LAYOUT GRID ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-4); }
  .grid-12   { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(253,252,250,0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-std);
}

@media (prefers-color-scheme: dark) {
  .nav { background: rgba(13,12,11,0.85); }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

.nav__logo {
  font-family: var(--font-latin);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-1);
  transition: opacity var(--dur-fast);
}
.nav__logo:hover { opacity: 0.65; }

.nav__links {
  display: flex;
  gap: var(--sp-8);
  align-items: center;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--dur-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--dur-base) var(--ease-out);
}
.nav__link:hover { color: var(--text-1); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--text-1); }

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px; height: 20px;
  justify-content: center;
}
.nav__menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--text-1);
  transition: all var(--dur-base) var(--ease-std);
  transform-origin: center;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-6) var(--sp-8);
    gap: var(--sp-6);
  }
  .nav__menu-btn { display: flex; }
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 64px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(56,180,139,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(56,180,139,0.04) 0%, transparent 60%),
    var(--bg-primary);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-20) 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: var(--sp-6);
}

.hero__title em {
  font-style: italic;
  font-family: var(--font-latin);
  color: var(--accent);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: var(--sp-10);
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--r-sm);
  padding: 12px 28px;
  transition: all var(--dur-fast) var(--ease-std);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(56,180,139,0.30);
}
.btn--primary:hover {
  background: var(--accent-h);
  box-shadow: 0 4px 16px rgba(56,180,139,0.40);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--text-1);
  transform: translateY(-1px);
}

.btn--text {
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  gap: var(--sp-1);
}
.btn--text:hover { color: var(--accent-h); }
.btn--text svg { transition: transform var(--dur-fast) var(--ease-spr); }
.btn--text:hover svg { transform: translateX(3px); }

/* ── SECTION ────────────────────────────────────────────────── */
.section { padding: var(--sp-24) 0; }
.section--alt { background: var(--bg-secondary); }
.section--dark {
  background: var(--bg-inverse);
  color: var(--text-inv);
}

.section__header {
  margin-bottom: var(--sp-16);
}
.section__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.section__label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--accent);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.section__lead {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 600px;
  margin-top: var(--sp-4);
  line-height: 1.75;
}

/* ── CARD ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-std);
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-3);
}

.card__body { padding: var(--sp-6); }

.card__series {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: var(--sp-2);
  color: var(--text-1);
}

.card__meta {
  font-size: var(--text-xs);
  color: var(--text-3);
  display: flex;
  gap: var(--sp-3);
}

.card__badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
}

/* ── BOOK COVER (placeholder art) ──────────────────────────── */
.book-cover {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  text-align: center;
}
.book-cover--amber { background: linear-gradient(135deg, #38b48b 0%, #C0EEE0 100%); }
.book-cover--ink   { background: linear-gradient(135deg, #1A1916 0%, #4A4740 100%); }
.book-cover--jade  { background: linear-gradient(135deg, #2A7A52 0%, #7BC4A0 100%); }
.book-cover--rose  { background: linear-gradient(135deg, #8B2635 0%, #D4829A 100%); }
.book-cover--slate { background: linear-gradient(135deg, #3A4A5C 0%, #8A9EBD 100%); }
.book-cover__num {
  font-family: var(--font-latin);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,0.2);
}
.book-cover__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}
.book-cover__sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

/* ── PROFILE BLOCK ──────────────────────────────────────────── */
.profile-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 768px) {
  .profile-block { grid-template-columns: 1fr; }
}

.profile-image-wrap {
  position: sticky;
  top: 80px;
}

.profile-image {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.profile-image__placeholder {
  font-family: var(--font-display);
  font-size: 80px;
  opacity: 0.15;
  user-select: none;
}

.profile-image__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-8);
  background: linear-gradient(to top, rgba(13,12,11,0.7), transparent);
}

.profile-image__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
}

.profile-image__name-en {
  font-family: var(--font-latin);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

.profile-content .t-h1 { margin-bottom: var(--sp-6); }
.profile-content p { margin-bottom: var(--sp-5); color: var(--text-2); }
.profile-content p:first-of-type { color: var(--text-1); font-size: var(--text-lg); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-8) 0;
}

.stat-item {
  text-align: center;
  padding: var(--sp-5);
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.stat-item__num {
  font-family: var(--font-latin);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: var(--sp-2);
}

/* ── TAG / BADGE ────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--accent-sub);
  color: var(--amber-30);
  border: 1px solid rgba(56,180,139,0.25);
}

@media (prefers-color-scheme: dark) {
  .tag { color: var(--amber-80); }
}

/* ── DIVIDER ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

.divider--ornament {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-12) 0;
  color: var(--border);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
}
.divider--ornament::before,
.divider--ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── FORM ───────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--sp-6); }

.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
}
.form-label span { color: var(--error); margin-left: 2px; }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-1);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dis); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,180,139,0.15);
}
.form-input.is-error,
.form-textarea.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.form-textarea { resize: vertical; min-height: 160px; line-height: 1.7; }

.form-hint  { font-size: var(--text-xs); color: var(--text-3); margin-top: var(--sp-1); }
.form-error { font-size: var(--text-xs); color: var(--error); margin-top: var(--sp-1); }

/* ── ALERT ──────────────────────────────────────────────────── */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  border: 1px solid;
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.alert--success {
  background: rgba(42,122,82,0.08);
  border-color: rgba(42,122,82,0.3);
  color: var(--jade-50);
}
.alert--error {
  background: rgba(192,57,43,0.08);
  border-color: rgba(192,57,43,0.3);
  color: var(--crimson-50);
}
.alert--info {
  background: var(--accent-sub);
  border-color: rgba(56,180,139,0.3);
  color: var(--amber-30);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-inverse);
  color: rgba(255,255,255,0.5);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--sp-8);
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-8); }
}

.footer__brand-name {
  font-family: var(--font-latin);
  font-size: 22px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 280px;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast);
}
.footer__link:hover { color: rgba(255,255,255,0.9); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ── SCROLL ANIMATIONS ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slower) var(--ease-out),
              transform var(--dur-slower) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* ── UTILITY ────────────────────────────────────────────────── */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--sp-4); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mt-16 { margin-top: var(--sp-16); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-8  { margin-bottom: var(--sp-8); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.font-display { font-family: var(--font-display); }

/* ── PAGE TRANSITIONS ───────────────────────────────────────── */
.page-wrapper {
  animation: pageFadeIn var(--dur-slow) var(--ease-out) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SKIP LINK (ACCESSIBILITY) ──────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--sp-4);
  background: var(--accent);
  color: white;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* ── FOCUS VISIBLE ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ── SELECTION ──────────────────────────────────────────────── */
::selection {
  background: rgba(56,180,139,0.2);
  color: var(--text-1);
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
