/* Nudge Labs — site styles
   Dark is the default theme; light is set with data-theme="light" on <html>. */

:root,
:root[data-theme="dark"] {
  --bg: #0E0D0C;
  --surface: #161412;
  --surface-strong: #1E1B18;
  --border: #3A352D;
  --text: #C9BFAE;
  --heading: #F7EEDA;
  --muted: #A89F90;
  --accent: #C9A24A;
  --accent-hover: #E0BD6A;
  --accent-ink: #0E0D0C;
  --accent-soft: rgba(201, 162, 74, 0.08);
  --dot: #F7EEDA;
  --glow: rgba(201, 162, 74, 0.07);
  --placeholder: linear-gradient(135deg, #1E1B18 0%, #2A2520 50%, #1A1816 100%);
  --toggle-bg: #F7EEDA;
  --toggle-fg: #0E0D0C;
  --toggle-icon: #7A5C22;
  color-scheme: dark;
}

:root[data-theme="light"] {
  /* Warm stone rather than near-white: easier on the eyes, with clear steps between layers */
  --bg: #E8E2D6;
  --surface: #F2EDE4;
  --surface-strong: #DAD1C1;
  --border: #C4B8A2;
  --text: #3F3A33;
  --heading: #171513;
  --muted: #5E564B;
  --accent: #7A5C22;
  --accent-hover: #5E4619;
  --accent-ink: #F7EEDA;
  --accent-soft: rgba(201, 162, 74, 0.2);
  --dot: #0E0D0C;
  --glow: rgba(201, 162, 74, 0.18);
  --placeholder: linear-gradient(135deg, #DAD1C1 0%, #CCC1AD 50%, #E0D8CA 100%);
  --toggle-bg: #0E0D0C;
  --toggle-fg: #F7EEDA;
  --toggle-icon: #C9A24A;
  color-scheme: light;
}
/* In light mode, bands sit a shade darker than the page so rows read as separate blocks */
:root[data-theme="light"] .band { background: var(--surface-strong); }
:root[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(60, 45, 20, 0.06), 0 4px 14px rgba(60, 45, 20, 0.05); }

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--glow) 0%, transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); }
.brand:hover { color: var(--accent); }
.brand svg { width: 34px; height: 34px; flex: 0 0 auto; }
.wordmark { font-family: "Space Grotesk", sans-serif; font-size: 1.45rem; line-height: 1; letter-spacing: -0.01em; }
.wordmark b { font-weight: 600; }
.wordmark span { font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; order: 2; margin-left: auto; }
.theme-toggle { order: 3; }
.nav a {
  color: var(--text); text-decoration: none;
  padding: 10px 14px; border-radius: 999px; font-size: 0.95rem; font-weight: 500;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--heading); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--heading); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--border); }

/* Bold toggle: always shows the OTHER theme's colours, so it reads as a preview of the switch */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--toggle-bg); background: var(--toggle-bg);
  color: var(--toggle-fg); font: 600 0.92rem "DM Sans", sans-serif; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.theme-toggle svg { width: 18px; height: 18px; color: var(--toggle-icon); }
/* The icon names the theme you switch TO: moon in light mode, sun in dark mode */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

@media (max-width: 760px) {
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .theme-toggle { order: 2; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; }
  .theme-toggle { padding: 8px 14px; font-size: 0.85rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 500 1rem "DM Sans", sans-serif; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--accent); transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 680px; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 640px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

.hero { padding: 72px 0 48px; }
.hero-grid { display: flex; flex-direction: column; gap: 22px; }
.hero-grid > * { max-width: 760px; }

/* ---------- Photo placeholders (swap for real <img> later) ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: 20px;
  background: var(--placeholder); border: 1px solid var(--border);
  aspect-ratio: 21 / 9; display: flex; align-items: flex-end;
}
.photo.tall { aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-note {
  position: relative; margin: 16px; padding: 6px 10px; border-radius: 6px;
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--muted); background: color-mix(in srgb, var(--bg) 70%, transparent);
}
@media (max-width: 600px) { .photo { aspect-ratio: 4 / 3; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.card .price { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.6rem; color: var(--accent); line-height: 1.1; }
.card .price small { font-family: "DM Sans", sans-serif; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.card .for { margin-top: auto; padding-top: 8px; font-size: 0.85rem; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 2px 0; }

.feature {
  border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: 20px;
  padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.feature .price { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.feature .price small { font-family: "DM Sans", sans-serif; font-size: 1rem; font-weight: 400; color: var(--muted); }
.feature-copy { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.feature-price { display: flex; flex-direction: column; gap: 6px; }

.steps { counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 6px; }
.step-num { font-family: "JetBrains Mono", monospace; color: var(--accent); font-size: 0.9rem; }
.step h3 { font-size: 1.1rem; }

.band {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise-list li { display: flex; gap: 12px; align-items: flex-start; }
.promise-list svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; color: var(--accent); }

/* ---------- About ---------- */
.profile { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.avatar {
  width: 160px; height: 160px; border-radius: 50%; flex: 0 0 auto;
  background: var(--placeholder); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card .contact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-list a { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--heading); }
.small { font-size: 0.85rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Photo row: three photos joined as one image, split by thin white lines ---------- */
.photo-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
  background: #FFFFFF; border-radius: 18px; overflow: hidden;
}
.photo-row figure { margin: 0; position: relative; overflow: hidden; background: var(--placeholder); aspect-ratio: 4 / 5; }
.photo-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  /* On phones the row becomes a swipeable strip so each photo stays a good size */
  .photo-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .photo-row::-webkit-scrollbar { display: none; }
  .photo-row figure { flex: 0 0 80%; scroll-snap-align: start; }
}

/* "Whole photo" frame shape set from the photo editor: show the full image, no crop */
.photo.full { aspect-ratio: auto !important; display: block; }
.photo.full img { position: static; height: auto; }
:root[data-theme="light"] .site-footer { background: var(--surface-strong); }
