/* Toby the Toy Maltipoo — media kit.
   Theme tokens are injected at runtime from defaults.js (THEMES). */

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

:root {
  --paper: #FDF8F5; --panel: #F6EFE8; --card: #FFFFFF;
  --ink: #211C19; --ink-soft: #6B635C; --ink-label: #766F68;
  --accent: #DFD7CC; --accent-deep: #6F6558; --accent-press: #C9BFB1;
  --rule: #E9E0D6; --stage: #2B2521; --good: #808A6E;
  --fill: #837765;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui: 'Poppins', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(42, 33, 26, .10);
  --gutter: clamp(20px, 5vw, 56px);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-label); font-weight: 600; margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.01em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #2B1A0C; box-shadow: inset 0 -2px 0 var(--accent-press); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  height: 62px; display: flex; align-items: center; gap: 18px;
}
.wordmark {
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  font-variation-settings: 'SOFT' 40; text-decoration: none; margin-right: auto;
}
.wordmark em { font-style: italic; color: var(--accent-deep); }
.site-header nav { display: flex; gap: 20px; align-items: center; }
.site-header nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.site-header nav a:hover { color: var(--accent-deep); }
@media (max-width: 720px) { .site-header nav .hide-sm { display: none; } }
@media (max-width: 520px) {
  .site-header .wrap { gap: 10px; }
  .wordmark { font-size: 17px; }
  .site-header nav a.btn { font-size: 13px; padding: 8px 14px; }
}
@media (max-width: 400px) { .wordmark em { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 7vw, 80px) 0 clamp(28px, 5vw, 56px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 56px); align-items: center;
}
.hero-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; background: var(--panel);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: -.02em; }
.hero .tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(19px, 2.4vw, 24px); color: var(--accent-deep);
  margin: 14px 0 20px; line-height: 1.3;
}
.handles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.handle {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--card); border: 1px solid var(--rule);
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600;
}
.handle:hover { border-color: var(--accent); }
.handle b { font-family: var(--font-display); font-size: 16px; }
.handle span { color: var(--ink-soft); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { width: min(400px, 100%); aspect-ratio: 1; }
}

/* ---------- sections ---------- */
section { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--rule); }
section > .wrap > header { margin-bottom: 28px; max-width: 62ch; }
section > .wrap > header p { color: var(--ink-soft); margin-top: 10px; }

/* ---------- stats ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px;
}
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 20px;
}
.stat .value {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px);
  font-weight: 600; line-height: 1; letter-spacing: -.02em;
}
.stat .name {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-label); font-weight: 600; margin-top: 10px;
}
.stat .sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.live-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft); margin-top: 18px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent);
  animation: pulse 2.4s infinite;
}
.dot.stale { background: var(--ink-label); animation: none; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* ---------- posts ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px;
}
.post {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post .thumb { position: relative; aspect-ratio: 1; background: var(--panel); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .badge {
  position: absolute; top: 10px; left: 10px;
  background: color-mix(in srgb, var(--stage) 78%, transparent); color: #fff;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.post .meta { padding: 12px 14px 14px; }
.post .numbers {
  display: flex; gap: 14px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.post .numbers span { color: var(--ink-soft); font-weight: 500; }
.post .caption {
  font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 48px); align-items: start; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photos img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow); }
.about-photos img:nth-child(odd) { margin-top: 22px; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; }
.facts li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.facts li b { min-width: 120px; color: var(--ink-label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.audience-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.bar-row { display: grid; grid-template-columns: minmax(72px, max-content) 1fr 46px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-row .k { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.bar-row .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fill); border-radius: 999px; }

/* ---------- partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.partner {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px; text-decoration: none; display: block;
}
.partner .logo { height: 34px; margin-bottom: 14px; object-fit: contain; object-position: left; }
.partner .pname { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.partner .pnote { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.partner .work { display: flex; gap: 6px; margin-top: 14px; }
.partner .work img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }

/* ---------- PR form ---------- */
.pr-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 48px); align-items: start; }
.pr-side img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--good) 14%, transparent);
  color: color-mix(in srgb, var(--good) 72%, #000);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
form.pr { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--rule); border-radius: 10px;
  padding: 11px 13px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 88px; resize: vertical; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .two-up { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; margin-top: 12px; }
.form-msg.error { color: #A6402E; }
.address-card {
  background: color-mix(in srgb, var(--good) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
  border-radius: var(--radius); padding: 22px; margin-top: 18px;
}
.address-card .addr {
  font-family: var(--font-display); font-size: 18px; line-height: 1.5;
  white-space: pre-line; margin: 10px 0 0;
}
@media (max-width: 820px) { .pr-layout { grid-template-columns: 1fr; } .pr-side { display: none; } }

/* ---------- press kit + contact ---------- */
.band {
  background: var(--stage); color: #F6EFE7; border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px); display: grid;
  grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(246, 239, 231, .72); margin-top: 10px; max-width: 46ch; }
.band .btn-primary { background: var(--accent); color: #2B1A0C; }
@media (max-width: 720px) { .band { grid-template-columns: 1fr; } }

.contact-card { text-align: center; max-width: 560px; margin: 0 auto; }
.contact-card .email {
  font-family: var(--font-display); font-size: clamp(22px, 4vw, 32px);
  color: var(--accent-deep); text-decoration: none; display: inline-block; margin: 14px 0;
  word-break: break-word;
}
.contact-card .email:hover { text-decoration: underline; }

footer.site-footer {
  border-top: 1px solid var(--rule); padding: 32px 0 44px;
  font-size: 13px; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
}
footer.site-footer a { color: var(--ink-soft); }

[hidden] { display: none !important; }
.skeleton { color: transparent; background: var(--rule); border-radius: 6px; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 50% { opacity: .5; } }
