/* Positive Penguins — site-wide styles */

:root {
  --ink: oklch(0.25 0.04 250);
  --ink-soft: oklch(0.42 0.03 250);
  --ink-mute: oklch(0.58 0.02 250);
  --line: oklch(0.90 0.01 240);
  --line-soft: oklch(0.94 0.01 240);

  --paper: oklch(0.985 0.008 90);
  --paper-warm: oklch(0.97 0.015 80);
  --paper-cool: oklch(0.96 0.018 230);
  --white: oklch(1 0 0);

  --blue: oklch(0.72 0.12 230);
  --blue-deep: oklch(0.55 0.14 235);
  --blue-soft: oklch(0.88 0.05 230);
  --blue-pale: oklch(0.95 0.025 230);

  --sun: oklch(0.78 0.15 75);
  --sun-deep: oklch(0.68 0.16 60);
  --sun-pale: oklch(0.95 0.04 85);

  --mint: oklch(0.85 0.07 165);
  --rose: oklch(0.84 0.06 25);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;

  --shadow-sm: 0 1px 2px oklch(0.25 0.04 250 / 0.06), 0 2px 6px oklch(0.25 0.04 250 / 0.04);
  --shadow-md: 0 4px 12px oklch(0.25 0.04 250 / 0.08), 0 12px 32px oklch(0.25 0.04 250 / 0.06);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }

/* Layout */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px 0;
}

.section.tight { padding: 64px 0; }

@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  body { font-size: 16px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.985 0.008 90 / 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--blue-soft) 0%, var(--blue) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-photo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.site-footer .brand-photo {
  box-shadow: 0 0 0 2px oklch(1 0 0 / 0.1);
}
.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.apple-badge:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-md); }
.apple-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.apple-badge .apple-text { display: flex; flex-direction: column; line-height: 1.15; }
.apple-badge .apple-text .small { font-size: 11px; opacity: 0.8; font-weight: 500; }
.apple-badge .apple-text .big { font-size: 19px; font-weight: 700; font-family: var(--serif); letter-spacing: 0.01em; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--blue-pale); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--blue-deep); background: var(--blue-pale); }

.nav-cta { margin-left: 8px; }

@media (max-width: 760px) {
  .nav a:not(.nav-cta) { display: none; }
  .site-header .wrap { height: 64px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: oklch(0.18 0.04 250); box-shadow: var(--shadow-md); }

.btn-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-sun:hover { background: var(--sun-deep); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: white; border-color: var(--ink); }

.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Store badges */
.stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.store-badge:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-md); }
.store-badge .store-icon { font-size: 26px; line-height: 1; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .store-text .small { font-size: 11px; opacity: 0.75; font-weight: 500; }
.store-badge .store-text .big { font-size: 17px; font-weight: 700; font-family: var(--serif); }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-pale);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Image placeholder — striped, with monospace label */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.93 0.02 230) 0px,
      oklch(0.93 0.02 230) 10px,
      oklch(0.96 0.015 230) 10px,
      oklch(0.96 0.015 230) 20px
    );
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 24px;
}
.ph::after {
  content: attr(data-label);
  background: oklch(1 0 0 / 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--line);
}

.ph.warm {
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.94 0.025 80) 0px,
      oklch(0.94 0.025 80) 10px,
      oklch(0.97 0.015 80) 10px,
      oklch(0.97 0.015 80) 20px
    );
}
.ph.mint {
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.92 0.04 165) 0px,
      oklch(0.92 0.04 165) 10px,
      oklch(0.96 0.02 165) 10px,
      oklch(0.96 0.02 165) 20px
    );
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: oklch(0.85 0.02 250);
  padding: 72px 0 40px;
  margin-top: 96px;
}
.site-footer h4 {
  color: white;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer a { color: oklch(0.85 0.02 250); text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid p { color: oklch(0.78 0.02 250); font-size: 15px; max-width: 38ch; }

.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: oklch(0.7 0.02 250);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Penguin SVG mark */
.penguin-svg { width: 100%; height: 100%; display: block; }

/* Reusable section header */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head .lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Two-up generic */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
