/* =========================================================
   WellPaged · Garrett Austin Crawbuck — "flat" template
   Two-dimensional, vibrant, no 3D effects. Borders over shadows.
   ========================================================= */

:root {
  /* --- Creator-recolorable palette (live-overridable) --- */
  --wp-bg: #FFFFFF;        /* page background */
  --wp-surface: #FFFFFF;   /* card/section surfaces */
  --wp-text: #111827;      /* primary text */
  --wp-muted: #6B7280;     /* secondary text */
  --wp-accent: #F2673C;    /* accent / CTA */

  /* --- Design-system tokens (derived from "flat" spec) --- */
  --primary: var(--wp-accent);
  --primary-dark: #d9522a;
  --secondary: #8B5CF6;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --surface: var(--wp-surface);
  --text: var(--wp-text);
  --muted: var(--wp-muted);
  --line: var(--wp-text);          /* flat: hard borders */
  --line-soft: #E5E7EB;
  --bg: var(--wp-bg);
  --bg-alt: #FAFAF9;
  --bg-band: #FFF4F0;       /* primary tint band */

  --r-sm: 4px;
  --r-md: 8px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;

  --maxw: 1120px;
  --border: 2px solid var(--line);

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ---------- Typographic helpers ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--s-3);
}

.section__title {
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.section { padding: clamp(48px, 7vw, 88px) 0; }

.section__head { margin-bottom: var(--s-6); }

/* ---------- Buttons (flat: solid fills, hard borders, no shadows) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: var(--border);
  cursor: pointer;
  transition: transform .08s ease, background-color .12s ease, color .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--solid:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
}
.btn--ghost:hover { background: var(--text); color: #fff; }

.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--block { width: 100%; }

.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.dot--primary { background: var(--primary); }
.dot--secondary { background: var(--secondary); }

/* ---------- Image placeholders ---------- */
.wp-img {
  position: relative;
  background:
    repeating-linear-gradient(45deg, #fff 0 10px, #FAF6F4 10px 20px);
  border: var(--border);
  border-radius: var(--r-md);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wp-img::after {
  content: "＋ Add photo";
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 2px dashed var(--line-soft);
  border-radius: var(--r-sm);
  padding: 6px 12px;
}
.wp-img[data-wp-has-img] {
  background-size: cover;
  background-position: center;
}
.wp-img[data-wp-has-img]::before,
.wp-img[data-wp-has-img]::after { display: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--primary);
  color: #fff;
  border: var(--border);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  flex: none;
}
.brand__name { white-space: nowrap; }
.nav {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--primary); }
.nav__cta { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-band);
  border-bottom: var(--border);
  padding: clamp(40px, 7vw, 80px) 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 1.2rem + 5vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-3);
}
.hero__tagline {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.6rem);
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 var(--s-4);
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 var(--s-5);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
}
.hero__meta li { display: inline-flex; align-items: center; gap: var(--s-2); }

.hero__visual { position: relative; }
.hero__img { min-height: 380px; aspect-ratio: 4/5; }
.hero__badge {
  position: absolute;
  bottom: -14px; left: -14px;
  background: var(--secondary);
  color: #fff;
  border: var(--border);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.about__body {
  font-size: 1.1rem;
  margin: var(--s-4) 0 var(--s-5);
}
.about__facts {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.about__facts li {
  border: var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  display: grid;
  gap: 2px;
}
.about__facts-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.about__facts-val { font-weight: 600; }
.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.about__img { min-height: 180px; }
.about__img--tall { grid-row: span 2; min-height: 100%; }

/* ---------- Links (single stacked Linktree-style column) ---------- */
.links { background: var(--bg-alt); border-top: var(--border); border-bottom: var(--border); }
.links__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: 640px;
  margin: 0 auto;
}
.linkcard {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  text-decoration: none;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  transition: transform .1s ease, background-color .12s ease;
}
.linkcard:hover { transform: translate(-2px, -2px); }
.linkcard__icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border: var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-band);
}
.linkcard__icon svg { width: 24px; height: 24px; fill: var(--text); }
.linkcard__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.linkcard__label { font-size: 1.15rem; font-weight: 700; }
.linkcard__host {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-word;
}
.linkcard__arrow {
  margin-left: auto;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: transform .12s ease;
}
.linkcard:hover .linkcard__arrow { transform: translateX(4px); }
.linkcard__tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 2px 7px;
  margin-bottom: var(--s-1);
}
.linkcard--feat {
  background: var(--primary);
  border-color: var(--primary);
}
.linkcard--feat .linkcard__icon { background: rgba(255,255,255,0.18); border-color: #fff; }
.linkcard--feat .linkcard__icon svg { fill: #fff; }
.linkcard--feat .linkcard__label { color: #fff; font-size: 1.3rem; }
.linkcard--feat .linkcard__host { color: rgba(255,255,255,0.85); }
.linkcard--feat .linkcard__arrow { color: #fff; }
.linkcard--feat .linkcard__tag { background: #fff; color: var(--primary); }
.linkcard--feat:hover { background: var(--primary-dark); }

/* ---------- Rates ---------- */
.rates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
}
.ratecard {
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s-5);
}
.ratecard__tier {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s-2);
}
.ratecard__price {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-2);
}
.ratecard__desc {
  color: var(--text);
  margin: 0 0 var(--s-5);
  flex: 1;
}
.ratecard--feat {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.ratecard--feat .ratecard__tier,
.ratecard--feat .ratecard__desc { color: rgba(255,255,255,0.92); }
.ratecard--feat .btn--solid { background: #fff; color: var(--secondary); border-color: #fff; }
.ratecard--feat .btn--solid:hover { background: var(--text); color: #fff; border-color: var(--text); }
.ratecard__flag {
  position: absolute;
  top: -12px; right: var(--s-4);
  background: var(--primary);
  color: #fff;
  border: var(--border);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); border-top: var(--border); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-4);
}
.stattile {
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s-5);
  text-align: left;
}
.stattile__val {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stattile__label {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stattile--accent {
  background: var(--primary);
  border-color: var(--primary);
}
.stattile--accent .stattile__val { color: #fff; }
.stattile--accent .stattile__label { color: rgba(255,255,255,0.9); }

.stats__lower {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: start;
}
.socials__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.social {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  font-weight: 600;
  border: var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  transition: background-color .12s ease, color .12s ease;
}
.social:hover { background: var(--text); color: #fff; }
.social svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.stats__media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.stats__media .wp-img { min-height: 170px; }

/* ---------- Closing CTA ---------- */
.cta { background: var(--text); color: #fff; border-top: var(--border); }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.cta__title {
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
}
.cta .btn--solid { border-color: var(--primary); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: var(--border); padding: var(--s-6) 0; }
.footer__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__mark {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  background: var(--text);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 0.7rem;
  font-weight: 700;
}
.footer__inner p { margin: 0; }

/* ---------- Entrance polish ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav { display: none; }
  .hero__grid,
  .about__grid,
  .stats__lower { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .hero__img { aspect-ratio: 16/10; min-height: 280px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 var(--s-4); }
  .stats__media { grid-template-columns: 1fr; }
  .about__img--tall { grid-row: auto; }
  .nav__cta { display: none; }
  .brand__name { display: none; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}
