/* ============================================================
   WellPaged — "Absolute Boss" — TypeUI "paper" design
   Monochrome ink on warm cream, soft rounded surfaces, subtle
   diagonal paper hairlines. Single grotesque sans (Inter).
   Minimal-editorial — no accent color beyond near-black ink.
   ============================================================ */

:root {
  /* ---- recolorable palette (the creator overrides these live) ---- */
  --wp-bg: #F4F2EC;        /* page background — warm cream */
  --wp-surface: #FBFAF6;   /* lifted card / section surface */
  --wp-text: #2A2723;      /* primary body text */
  --wp-muted: #6F6A60;     /* secondary text / captions */
  --wp-accent: #15140F;    /* near-black ink — CTAs, headlines */

  /* ---- design tokens derived from the palette ---- */
  --ink: var(--wp-accent);
  --text: var(--wp-text);
  --muted: var(--wp-muted);
  --paper: var(--wp-bg);
  --sheet: var(--wp-surface);

  /* deeper / crisper surfaces (secondary tints of the palette) */
  --paper-2: #ECE9E0;
  --sheet-2: #FFFFFF;
  --on-ink: #FAF8F2;       /* text on ink surfaces */

  /* hairlines */
  --line: #E1DDD2;
  --line-strong: #D2CCBE;

  /* radii — soft & rounded */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* soft, diffuse shadows */
  --shadow-1: 0 1px 2px rgba(21, 20, 15, 0.04), 0 2px 8px rgba(21, 20, 15, 0.04);
  --shadow-2: 0 2px 6px rgba(21, 20, 15, 0.05), 0 14px 34px rgba(21, 20, 15, 0.08);
  --shadow-lift: 0 6px 14px rgba(21, 20, 15, 0.07), 0 22px 50px rgba(21, 20, 15, 0.12);

  --maxw: 1120px;
  --gut: clamp(20px, 5vw, 56px);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(21, 20, 15, 0.022) 0,
      rgba(21, 20, 15, 0.022) 1px,
      transparent 1px,
      transparent 11px
    );
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.55), transparent 60%);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 2;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
  font-weight: 600;
}

a { color: inherit; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ---------- Buttons (soft pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--sheet-2);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn--solid {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}
.btn--ghost {
  background: var(--sheet-2);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn--solid:hover { filter: brightness(0.85); box-shadow: var(--shadow-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__stamp {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--on-ink);
  background: var(--ink);
  border-radius: 9px;
}
.brand__name { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.topbar__nav { margin-left: auto; display: flex; gap: 26px; }
.topbar__nav a {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__cta { padding: 9px 18px; font-size: 0.875rem; }
@media (max-width: 760px) {
  .topbar__nav { display: none; }
  .topbar__cta { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
.kicker__rule { width: 32px; height: 1px; background: var(--line-strong); display: inline-block; }
.hero__title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero__tagline {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--muted);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero__intro { font-size: 1.0625rem; color: var(--muted); max-width: 46ch; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 32px;
  list-style: none; margin: 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--text);
}
.hero__meta-k {
  display: block; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 3px;
}
.hero__visual { position: relative; }

/* ---------- Photo frames ---------- */
.photo {
  margin: 0;
  background: var(--sheet-2);
  padding: 10px 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.photo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.photo__cap {
  font-size: 0.75rem; color: var(--muted); text-align: center;
  padding: 10px 4px 12px; letter-spacing: 0.01em;
}
.photo__tape { display: none; }

/* ---------- Image placeholders ---------- */
.wp-img {
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background-color: var(--paper-2);
  background-image:
    repeating-linear-gradient(135deg, rgba(21,20,15,0.02) 0 1px, transparent 1px 11px);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  color: var(--muted);
  position: relative;
}
.wp-img::after {
  content: "＋ Add photo";
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.7);
}
/* hide the "Add photo" hint once a real image is set */
.wp-img[data-wp-has-img]::before,
.wp-img[data-wp-has-img]::after { display: none; }
.wp-img[data-wp-has-img] { background-image: none; border-color: transparent; }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.lede { font-size: 1.1875rem; line-height: 1.7; color: var(--text); max-width: 52ch; }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.tag {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: -0.005em;
  padding: 7px 15px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--sheet); color: var(--text);
}
.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about__media .photo:nth-child(2) { margin-top: 28px; }

/* ---------- Links ---------- */
.links__grid { display: grid; gap: 14px; max-width: 720px; margin-inline: auto; }
.link-card {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-1);
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--ink);
  background: var(--sheet-2);
}
.link-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.link-card__icon {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  flex: none;
}
.link-card__icon svg { width: 22px; height: 22px; fill: var(--ink); }
.link-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-card__label { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; color: var(--ink); letter-spacing: -0.015em; }
.link-card__host { font-size: 0.8125rem; color: var(--muted); }
.link-card__arrow { font-size: 1.25rem; color: var(--ink); transition: transform 0.16s ease; }
.link-card:hover .link-card__arrow { transform: translateX(4px); }

.link-card--feat {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-2);
}
.link-card--feat:hover { filter: brightness(0.9); box-shadow: var(--shadow-lift); }
.link-card--feat .link-card__icon { background: rgba(250, 248, 242, 0.12); border-color: rgba(250, 248, 242, 0.22); }
.link-card--feat .link-card__icon svg { fill: var(--on-ink); }
.link-card--feat .link-card__label { color: var(--on-ink); }
.link-card--feat .link-card__host { color: rgba(250, 248, 242, 0.6); }
.link-card--feat .link-card__arrow { color: var(--on-ink); }
.link-card__badge {
  position: absolute; top: -11px; left: 20px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--on-ink); color: var(--ink);
  padding: 4px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--ink);
}
.link-card--contact { border-style: dashed; }

/* ---------- Rates ---------- */
.rates__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.rate {
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-1);
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rate:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.rate__tier { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 14px; }
.rate__price { font-family: var(--sans); font-weight: 700; font-size: 2.5rem; color: var(--ink); margin: 0 0 12px; letter-spacing: -0.04em; }
.rate__desc { font-size: 0.9375rem; color: var(--muted); margin: 0 0 26px; flex: 1; }
.rate__cta { width: 100%; justify-content: center; }
.rate--feature {
  background: var(--sheet-2);
  border-color: var(--ink);
  box-shadow: var(--shadow-2);
}
.rate--feature:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.rate__flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--ink); color: var(--on-ink); padding: 5px 14px; border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ---------- Stats ---------- */
.stats__as-of {
  font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 12px 0 0;
}
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.stat {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-1);
}
.stat__label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px; }
.stat__value { font-family: var(--sans); font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.5rem); color: var(--ink); margin: 0 0 14px; letter-spacing: -0.04em; }
.stat__bar { display: block; height: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.stat__bar i { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: var(--r-pill); transform-origin: left; }

.stats__lower {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px);
  align-items: center; margin-top: 48px;
}
.socials__title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 18px; }
.socials__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.social {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 500;
  padding: 13px 18px;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.social:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--ink); }
.social svg { width: 20px; height: 20px; fill: var(--ink); flex: none; }
.social span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats__media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stats__media .photo:nth-child(2) { margin-top: 26px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer p { margin: 0; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); }
.footer__credit {
  padding-left: 16px; border-left: 1px solid var(--line-strong);
  font-weight: 500; color: var(--text);
}

/* ---------- Entrance animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; }
  .about__grid { grid-template-columns: 1fr; }
  .rates__grid { grid-template-columns: 1fr; }
  .stats__lower { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer__inner { flex-direction: column; gap: 8px; }
  .footer__credit { padding-left: 0; border-left: 0; }
  .link-card { gap: 14px; padding: 16px 18px; }
  .about__media, .stats__media { grid-template-columns: 1fr; }
  .about__media .photo:nth-child(2),
  .stats__media .photo:nth-child(2) { margin-top: 0; }
}
