/* =============================================
   base.css — design tokens, reset, typography,
   shared utilities. Used on every page.
   ============================================= */

:root {
  /* Color palette (light / bright, editorial) */
  --bg: #FBFBFD;
  --bg-alt: #F4F6F8;
  --surface: #FFFFFF;
  --text: #1F2430;
  --text-muted: #5A6474;
  --text-soft: #8A93A3;
  --accent: #1FA97A;
  --accent-dark: #178A63;
  --accent-soft: #E6F5EF;
  --amber: #E8A33D;
  --amber-soft: #FBF1E0;
  --border: #E4E8EE;
  --border-strong: #D6DCE4;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(31, 36, 48, .05);
  --shadow-md: 0 8px 24px rgba(31, 36, 48, .08);
  --shadow-lg: 0 18px 44px rgba(31, 36, 48, .10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Layout */
  --header-height: 68px;
  --container: 1140px;
  --measure: 70ch;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { max-width: var(--measure); }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .35rem; }
strong { font-weight: 600; }

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

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 760px; margin-bottom: 2.5rem; }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .75rem;
}

.section-head .sub {
  color: var(--text-muted);
  margin-top: .75rem;
  font-size: 1.05rem;
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 169, 122, .28);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn-sm { padding: .55rem 1rem; font-size: .92rem; }

/* Badges */
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding-inline: .5rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: .9rem;
}

/* Photo slot placeholder */
.photo-frame { position: relative; margin: 0; }
.photo-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.photo-label {
  margin-top: .6rem;
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--text-soft);
  text-transform: uppercase;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

section[id] { scroll-margin-top: calc(var(--header-height) + 14px); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}
