/* =========================================================================
   OFLIGHT.CLUB — Parent Home
   Monument design DNA (Hall of Liberty + Timeline inspired)
   - White canvas, warm near-black text, shadow-as-border
   - Playfair Display Black 900 for the hero (English monument)
   - Noto Serif KR for Korean serif manifesto passage
   - Pretendard for Korean UI/labels/descriptions
   - Geist Mono for stats / domain labels
   - Single accent: blue link (#0072f5)
   - Museum-label effects: hairline ink rules fading at both ends
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-tint: #fafafa;
  --border-soft: #ebebeb;
  --border-shadow: rgba(0, 0, 0, 0.08);
  --border-shadow-strong: rgba(0, 0, 0, 0.16);
  --text: #171717;
  --text-secondary: #4d4d4d;
  --text-tertiary: #666666;
  --text-muted: #808080;
  --text-disabled: #b3b3b3;
  --link: #0072f5;
  --link-hover: #0056b3;
  --focus: hsla(212, 100%, 48%, 1);
  --focus-ring: rgba(147, 197, 253, 0.5);
  --accent: #171717;
  --accent-text: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-sans: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;
  --font-serif-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-serif-body: 'Noto Serif KR', 'Playfair Display', Georgia,
    'Times New Roman', serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular,
    Menlo, Monaco, Consolas, monospace;

  /* Spacing (4px 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;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 9999px;

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 350ms ease;

  /* Shadows */
  --shadow-border: 0px 0px 0px 1px rgba(0, 0, 0, 0.08);
  --shadow-ring-light: 0px 0px 0px 1px #ebebeb;
  --shadow-card-rest: 0px 0px 0px 1px rgba(0, 0, 0, 0.06),
    0px 2px 2px rgba(0, 0, 0, 0.03),
    0px 8px 12px -8px rgba(0, 0, 0, 0.04),
    0px 0px 0px 1px #fafafa;
  --shadow-card-hover: 0px 0px 0px 1px rgba(0, 0, 0, 0.06),
    0px 4px 8px rgba(0, 0, 0, 0.04),
    0px 16px 20px -12px rgba(0, 0, 0, 0.06),
    0px 0px 0px 1px #fafafa;
}

/* ---------- Reset & base ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "liga" 1, "tnum" 1;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Page layout ---------- */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 20px 48px;
}

/* ---------- Header ---------- */
.header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.kicker {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin: 0 0 28px;
  line-height: 1;
}

.title {
  font-family: var(--font-serif-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 24px;
  font-feature-settings: "liga" 1, "kern" 1, "dlig" 1;
  color: var(--text);
}

@media (max-width: 768px) {
  .title {
    font-size: 3rem;
  }
}

.tagline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- Manifesto (Korean serif body) ---------- */
.manifesto {
  font-family: var(--font-serif-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 480px;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- Ink rules ---------- */
.ink-rule {
  height: 1px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(23, 23, 23, 0.18) 20%,
    rgba(23, 23, 23, 0.18) 80%,
    transparent 100%
  );
}

.ink-rule--top {
  margin-bottom: 48px;
  max-width: 720px;
}

.ink-rule--mid {
  margin-top: 32px;
  margin-bottom: 32px;
  max-width: 360px;
}

.ink-rule--bottom {
  margin-top: 32px;
  margin-bottom: 0;
  max-width: 240px;
}

@media (max-width: 768px) {
  .ink-rule--top { margin-bottom: 32px; }
}

/* ---------- Network section ---------- */
.network-section {
  margin-bottom: 64px;
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 24px;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.stats-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}

.stats-dot {
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.stats-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.stats-sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(23, 23, 23, 0.12);
  margin: 0 8px;
}

@media (max-width: 480px) {
  .stats-sep { display: none; }
  .stats-bar { gap: 6px; }
}

/* ---------- Wing grid ---------- */
.wing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

@media (max-width: 700px) {
  .wing-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Wing card ---------- */
.wing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card-rest);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.wing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.wing-card:active {
  transform: translateY(-1px);
}

/* Wing card header */
.wing-card__header {
  margin-bottom: 24px;
}

.wing-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* Wing title (English serif) */
.wing-title {
  font-family: var(--font-serif-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--text);
}

/* Wing Korean tagline */
.wing-title-ko {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 20px;
  color: var(--text);
  word-break: keep-all;
}

/* Wing description */
.wing-description {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 32px;
  flex: 1 0 auto;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Wing card footer */
.wing-card__footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.wing-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--link);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.wing-card:hover .wing-link {
  color: var(--link-hover);
}

.wing-arrow {
  color: var(--link);
  transition: color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.wing-card:hover .wing-arrow {
  color: var(--link-hover);
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0 0;
}

.footer p {
  font-size: 0.8125rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.04em;
}