/* ==========================================================
   Mikreative — Paper & Sage
   Retheme from :root. Everything below reads these tokens.
   ========================================================== */

:root {
  /* Color */
  --paper:     #f5f0e6;  /* page background */
  --card:      #fbf8f2;  /* raised surfaces */
  --ink:       #2a2520;  /* body text — 13.4:1 on paper */
  --muted:     #5f574d;  /* secondary text — 6.3:1 on paper */
  --sage:      #4f6249;  /* links, buttons, focus — 5.8:1 on paper */
  --on-sage:   #fbf8f2;  /* text on sage buttons — 6.2:1 */
  --clay:      #9c5a43;  /* small accents, tags — 4.7:1 on paper */
  --line:      #ddd4c4;  /* decorative borders */
  --field:     #857b6e;  /* form field borders — 3.9:1 on card */

  /* Type */
  --font-display: "Iowan Old Style", "Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-sm:   0.875rem;
  --text-base: 1.0625rem;
  --text-lg:   1.1875rem;
  --text-h3:   1.5rem;
  --text-h2:   clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --text-h1:   clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

  /* Space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  /* Shape */
  --measure: 36rem;
  --page:    68rem;
  --gutter:  clamp(1rem, 4vw, 2rem);
  --radius:  12px;
}


/* ---------- Base ---------- */

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 var(--space-2); }

a {
  color: var(--sage);
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

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

[id] { scroll-margin-top: var(--space-3); }


/* ---------- Layout ---------- */

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-5); }
.section > h2 { font-size: var(--text-h2); margin-bottom: var(--space-4); }


/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100%;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
}
.skip-link:focus { top: var(--space-2); }


/* ---------- Header ---------- */

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-3);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink);
  text-decoration: none;
}
.nav-list a:hover {
  color: var(--sage);
  text-decoration: underline;
}


/* ---------- Hero ---------- */

.hero {
  padding-block: var(--space-6) var(--space-5);
}
.hero h1 {
  font-size: var(--text-h1);
  line-height: 1.05;
  max-width: 13ch;
  margin-bottom: var(--space-3);
}
.lede {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: var(--measure);
}


/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: var(--space-3);
}
.card > p,
.card__body > p { max-width: var(--measure); }
.signup { max-width: 32rem; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) 0.75rem;
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
}

/* Chickadee: text beside a phone screenshot */
.card--feature {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 48rem) {
  .card--feature { grid-template-columns: 1fr 18rem; }
}
.card__body {
  display: flex;
  flex-direction: column;
}
.card__shot {
  display: block;
  max-width: 18rem;
  justify-self: center;
}
.card__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: 0 12px 32px -12px rgb(42 37 32 / 0.18);
  /* Crop off the bottom edge of the screen softly */
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}

/* Push the action to the bottom so both cards line up. */
.card__action,
.signup { margin-top: auto; padding-top: var(--space-1); }

.tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--sage);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.4em 0.75em;
}
.tag--next { color: var(--clay); }

.fine-print {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: var(--space-1) 0 0;
}


/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--on-sage);
  background: var(--sage);
  border: 1.5px solid var(--sage);
  border-radius: 999px;
  padding: 0.8em 1.25em;
  cursor: pointer;
}
.button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-sage);
}

.button--quiet {
  background: transparent;
  color: var(--sage);
}


/* ---------- Forms ---------- */

.signup__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.input {
  flex: 1 1 12rem;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--field);
  border-radius: 999px;
  padding: 0.7em 1.1em;
}
.input:focus-visible { border-color: var(--sage); }


/* ---------- Work with me ---------- */

#work .lede { margin-bottom: var(--space-4); }

.offers {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 48rem) {
  .offers { grid-template-columns: 3fr 2fr; }
}

.offer {
  border-top: 2px solid var(--line);
  padding-top: var(--space-3);
}
.offer--main { border-top-color: var(--sage); }
.offer h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-1);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sage);
}

.section__action { margin-top: var(--space-4); }


/* ---------- Clients ---------- */

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 52rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--muted);
}


/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: var(--space-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--gutter);
}
@media (min-width: 48rem) {
  .contact {
    grid-template-columns: 2fr 3fr;
    padding: var(--space-5) var(--space-4);
  }
}
.contact h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-2);
}

.field { margin-bottom: var(--space-3); }
.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.field .input { width: 100%; }

.input--area {
  border-radius: var(--radius);
  resize: vertical;
  min-height: 9rem;
}


/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-4);
}
.site-footer p { margin: 0; }
.site-footer__privacy { flex-basis: 100%; }


/* ---------- Privacy page (long-form prose) ---------- */

.prose {
  max-width: var(--measure);
  padding-block: var(--space-5);
}
.prose h1 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-1);
}
.prose__meta {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.prose .lede { margin-bottom: var(--space-3); }
.prose h2 {
  font-size: var(--text-h3);
  margin: var(--space-4) 0 var(--space-2);
}
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--space-2); }
.prose li { margin-bottom: var(--space-1); }

.prose__list { margin: 0 0 var(--space-2); }
.prose__list dt { font-weight: 600; }
.prose__list dd { margin: 0 0 var(--space-2); }
