/* Pencil Party Prints site. Colors from the brand theme in printables/theme.py, darkened where text needs 4.5:1. */
@font-face { font-family: "Sniglet"; src: url("/assets/fonts/Sniglet-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #22304A;
  --muted: #5A6375;
  --paper: #FFF7EC;
  --card: #FFFFFF;
  --coral: #F25F5C;
  --coral-dark: #C73E3B;
  --teal: #1F9E9A;
  --teal-dark: #137572;
  --yellow: #FFC23D;
  --line: #EADFCD;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
header.site .brand img { height: 40px; width: auto; }
header.site nav a { margin-left: 18px; font-weight: 700; text-decoration: none; color: var(--ink); }
header.site nav a:hover { color: var(--coral-dark); }

h1, h2, h3 { font-family: "Sniglet", "Lato", sans-serif; font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.4em 0 0.3em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1.6em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0.6em 0 0.2em; }

.hero { text-align: center; padding: 48px 0 24px; }
.hero-logo { margin: 0 auto 8px; width: min(640px, 100%); }
.lead { font-size: 1.2rem; max-width: 680px; margin: 0 auto 24px; color: var(--muted); }

.button {
  display: inline-block; background: var(--coral-dark); color: #fff; font-weight: 700; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; margin: 4px;
}
.button:hover { background: var(--ink); color: #fff; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button.secondary:hover { background: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
}
.card:hover { border-color: var(--teal); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .price { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--ink); }
.card .price span { color: var(--teal-dark); font-weight: 700; }

.steps { padding-left: 1.2em; }
.steps li { margin-bottom: 0.6em; }
.how, .about, .faq { max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; }

.legal { max-width: 760px; padding-bottom: 32px; }
.legal h2 { font-size: 1.35rem; }
.updated { color: var(--muted); }

footer.site { margin-top: 56px; border-top: 1px solid var(--line); background: var(--card); font-size: 0.95rem; }
footer.site .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site p { margin: 0; color: var(--muted); }

@media (max-width: 560px) {
  header.site nav a { margin: 0 14px 0 0; }
  .hero { padding-top: 28px; }
}
