@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans-variable/dist/web/variable/wanted-sans-variable.min.css");

/* ==========================================================================
   ALL SEEK (올식) — Design Tokens & Editorial Base Rules
   Adapted from Maengmo Design System (§§7, 8, 9, 11, 12)
   ========================================================================== */

:root {
  /* Single Typeface */
  --as-font-sans: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

  /* Responsive Fluid Shell (§7) */
  --as-shell-width: 100vw;
  --as-header-height: calc(52px + env(safe-area-inset-top, 0px));
  --as-bottom-clearance: 0px;
  --as-page-form-max: 640px;
  --as-page-reading-max: 800px;

  /* Light-First Base Surfaces */
  --as-bg: #FFFFFF;
  --as-bg-subtle: #F8FAFC;
  --as-bg-muted: #F1F5F9;
  --as-surface: #FFFFFF;
  --as-backdrop-studio: #E8E6E1;
  --as-border: #E2E8F0;
  --as-border-strong: #CBD5E1;

  /* Text Hierarchy */
  --as-ink: #0F172A;
  --as-ink-secondary: #334155;
  --as-ink-muted: #64748B;
  --as-ink-faint: #94A3B8;

  /* Strict 3-Color Restraint:
     1) Structural Slate-Navy
     2) Brand Signature Crimson
     3) Official EasyPay / CTA Accents */
  --as-navy: #0F172A;
  --as-navy-elevated: #101B33;
  --as-navy-deep: #0B1324;
  --as-navy-night: #070C18;
  --as-navy-accent: #1E3A8A;
  --as-navy-tint: rgba(15, 23, 42, 0.06);

  --as-brand: #BE123C;
  --as-brand-hover: #9F1239;
  --as-brand-rose: #FB7185;
  --as-brand-tint: rgba(190, 18, 60, 0.08);
  --as-brand-glow: rgba(190, 18, 60, 0.18);
  --as-brand-highlight-dark: rgba(251, 113, 133, 0.36);
  --as-brand-highlight-light: rgba(190, 18, 60, 0.18);

  --as-cta-primary: #BE123C;
  --as-cta-orange: #FF6B00;
  --as-cta-orange-hover: #EA580C;

  --as-kakao-bg: #FEE500;
  --as-kakao-ink: #191919;
  --as-naver-bg: #03C75A;
  --as-naver-ink: #FFFFFF;

  /* Restrained Semantic Accents */
  --as-amber-bg: rgba(254, 243, 199, 0.72);
  --as-amber-border: rgba(253, 230, 138, 0.95);
  --as-amber-ink: #78350F;
  --as-emerald: #047857;
  --as-emerald-tint: rgba(4, 120, 87, 0.08);

  /* Layered Tinted Shadows & Radii */
  --as-shadow-overlap: 0 16px 40px -12px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.03);
  --as-shadow-card: 0 2px 10px rgba(15, 23, 42, 0.04);
  --as-shadow-sticky: 0 14px 34px -6px rgba(7, 12, 24, 0.52), 0 4px 12px rgba(15, 23, 42, 0.28);
  --as-shadow-modal: 0 24px 48px -12px rgba(15, 23, 42, 0.24);

  --as-radius-xl: 24px;
  --as-radius-lg: 16px;
  --as-radius-md: 12px;
  --as-radius-sm: 8px;
  --as-radius-pill: 9999px;

  /* Timing */
  --as-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --as-ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  :root {
    --as-shell-width: min(1120px, calc(100vw - 32px));
    --as-header-height: 64px;
  }
}

/* ==========================================================================
   Global Reset, Korean Editorial Typography & Zero Focus-Ring Suppression
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--as-bg);
}

body {
  margin: 0;
  padding: 0;
  color: var(--as-ink);
  background-color: var(--as-bg);
  font-family: var(--as-font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap-style: balance;
}

/* Prevent iOS Safari auto-zoom on form focus (>= 16px) */
input,
select,
textarea {
  font-family: inherit;
  font-size: max(16px, 1em);
  line-height: 1.45;
  color: var(--as-ink);
}

/* Suppress browser default hyperlink underlines, tap rings & focus outlines */
a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

a:focus,
a:focus-visible,
a:active,
a:visited {
  outline: none;
  text-decoration: none;
}

button,
button:focus,
button:focus-visible,
input,
input:focus,
input:focus-visible,
select,
select:focus,
select:focus-visible,
textarea,
textarea:focus,
textarea:focus-visible,
summary,
summary:focus,
summary:focus-visible,
details,
details:focus,
details:focus-visible,
[role="tab"],
[role="tab"]:focus,
[role="tab"]:focus-visible,
[aria-selected="true"]:focus-visible,
[aria-pressed="true"]:focus-visible,
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

*:focus:not(:focus-visible),
*:active {
  outline: none;
}

/* Tabular numerals for stable metric/price alignment */
.tabular-nums,
time,
data,
input[type="number"] {
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--as-ink);
}

h1,
.as-title-hero {
  font-weight: 900;
  line-height: 1.2;
}

h2,
.as-title-section {
  font-weight: 800;
  line-height: 1.3;
}

h3,
.as-title-sub {
  font-weight: 700;
  line-height: 1.35;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
