/* Muttoo Packs — printables.muttoo.com
   Colours and type match the printable covers.
   Source Serif Pro / Source Sans Pro, SIL Open Font License 1.1. */

@font-face {
  font-family: "Source Serif Pro";
  src: url("/fonts/SourceSerifPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("/fonts/SourceSerifPro-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("/fonts/SourceSansPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("/fonts/SourceSansPro-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #24302b;
  --ink-soft: #3d4a44;
  --ink-muted: #5c675f;
  --rule: #c1b8aa;
  --rule-strong: #8e867a;
  --cream: #f3eee5;
  --cream-deep: #e7dfd1;
  --clay: #9a5a3c;
  --sage: #5e7a6a;
  --sage-deep: #4a6356;
  --gold: #b08d57;
  --gold-text: #7a5f32;
  --paper: #fffcf7;
  --light-sage: #e7eee9;
  --serif: "Source Serif Pro", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --measure: 40rem;
  --page: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); }
a:hover { color: var(--clay); }
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: var(--gutter); top: 0.5rem; }

/* —— Notice (remove at launch when Payhip links are live) —— */
.site-notice {
  background: var(--cream-deep);
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.92rem;
  padding: 0.55rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.site-notice code,
.todo-mark {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--paper);
  padding: 0.05em 0.35em;
  border: 1px solid var(--rule);
  color: var(--clay);
}

/* —— Header —— */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* —— Layout —— */
main { flex: 1; }
.wrap {
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  width: min(var(--measure) + 2 * var(--gutter), 100%);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3.5rem;
}
.section { padding: 2.5rem 0 3rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* —— Type —— */
h1, h2, h3, .price {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); margin: 0 0 0.75rem; font-weight: 400; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); font-weight: 400; margin: 0 0 0.8rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 0.7rem 0 0.3rem; }
.lede, .hero p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36rem;
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  margin: 0 0 0.7rem;
}
.meta { color: var(--ink-muted); font-size: 0.95rem; margin: 0.2rem 0; }
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* —— Hero —— */
.hero {
  padding: 3.25rem 0 2.5rem;
  max-width: 42rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  background: var(--sage);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.3;
}
.btn:hover { background: var(--sage-deep); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--light-sage); color: var(--ink); }
.btn-block { width: 100%; }
.btn.is-placeholder,
.btn[aria-disabled="true"] {
  background: #8a908c;
  color: #f7f6f3;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-stack { display: flex; flex-direction: column; gap: 0.55rem; margin: 1.15rem 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.15rem 0; }
.todo-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0.15rem 0 0.8rem;
}

/* —— Cards / shop —— */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.35rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.85rem 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.card .frame {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
}
.card h3 { margin-top: 0.85rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--clay); }
.card p { margin: 0.25rem 0; color: var(--ink-soft); font-size: 0.98rem; }
.card .price { margin: 0.55rem 0 0.7rem; font-size: 1.35rem; }
.card .btn { margin-top: auto; }
.card-free {
  background: var(--light-sage);
  border-color: #c5d1c9;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.5rem;
}
.feature .frame { border: 1px solid var(--cream-deep); }
.feature .price { font-size: 1.6rem; margin: 0.4rem 0 0.8rem; }
.save { color: var(--clay); font-weight: 600; font-size: 0.95rem; }

.lead-band {
  background: var(--light-sage);
  border-top: 1px solid #c5d1c9;
  border-bottom: 1px solid #c5d1c9;
}
.lead-band .inner {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.lead-band .frame {
  background: var(--paper);
  border: 1px solid #c5d1c9;
}

.how ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: how;
}
.how li {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.15rem 1.2rem;
}
.how li::before {
  counter-increment: how;
  content: "0" counter(how);
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.how li strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.3rem; }

/* —— Pack page —— */
.pack {
  padding: 2.25rem 0 3rem;
}
.pack-hero {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}
.pack-visuals .frame {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  padding: 0.6rem;
}
.pack-visuals .cover { margin-bottom: 0.85rem; }
.mockup-block { margin-top: 2.25rem; }
.mockup-block .frame {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  padding: 0.75rem;
}
.pack-price {
  font-size: 2rem;
  margin: 0.5rem 0 0.15rem;
}
.includes h2, .fineprint h2 { margin-top: 0; }
.includes ul {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.15rem;
}
.includes li { margin: 0.28rem 0; }
.fineprint {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.fineprint article {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.15rem;
}
.fineprint h2 { font-size: 1.15rem; }

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding: 2rem var(--gutter) 2.4rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.site-footer .foot-inner {
  width: min(var(--page), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--clay); text-decoration: underline; }
.foot-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* —— Prose pages —— */
.prose p { margin: 0 0 1rem; color: var(--ink-soft); }
.prose h2 { margin: 1.8rem 0 0.5rem; font-size: 1.35rem; }
.prose ul { color: var(--ink-soft); }

/* —— Responsive —— */
@media (max-width: 800px) {
  .feature,
  .pack-hero,
  .lead-band .inner,
  .how ol {
    grid-template-columns: 1fr;
  }
  .feature .frame { max-width: 16rem; }
  .lead-band .frame { max-width: 11rem; }
  .hero { padding-top: 2.25rem; }
}
@media (max-width: 520px) {
  .site-header { padding-top: 0.85rem; padding-bottom: 0.85rem; }
  body { font-size: 1rem; }
  .grid { grid-template-columns: 1fr; }
}
