/* petconfessions.app: one stylesheet for every page. Colors and radii mirror src/design/tokens.ts. */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --text: #302442;
  --plum: #302442;
  --coral: #ff7968;
  --coral-ink: #b8402f;
  --gold: #ffc857;
  --muted: #62576b;
  --line: rgba(48, 36, 66, 0.12);
  --ink: #302442;
  --radius-card: 24px;
  --radius-control: 16px;
  --shadow: 0 4px 16px rgba(48, 36, 66, 0.06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17131e;
    --surface: #282133;
    --text: #fff7ed;
    --plum: #c8b6eb;
    --coral: #ff927f;
    --coral-ink: #ff927f;
    --muted: #c2b8cd;
    --line: rgba(255, 247, 237, 0.12);
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--coral-ink);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  margin-top: 2.2em;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}

.wrap {
  width: min(1040px, 100% - 40px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: underline;
}

/* Landing */
.hero {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero p.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-art {
  justify-self: center;
  width: min(300px, 70vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow: 0 18px 48px rgba(48, 36, 66, 0.22);
}

.pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--plum);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 10px;
}

.steps strong {
  display: block;
}

.steps span {
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.plan .price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.9rem;
  margin: 6px 0;
  color: var(--text);
}

.callout {
  background: var(--surface);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius-control);
  padding: 18px 20px;
  margin: 1.5em 0;
}

.callout p {
  margin: 0;
}

/* Documents */
.doc {
  padding: 40px 0 24px;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.doc .meta {
  margin-top: -0.2em;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin: 0.35em 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 1em 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  background: var(--surface);
  border-radius: var(--radius-control);
  overflow: hidden;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 14px 18px;
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p,
details ol,
details ul {
  margin-bottom: 0;
}

.mail {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-art {
    grid-row: 1;
    width: 160px;
    justify-self: start;
  }
}
