/* Petifly public site — shared styles. Brand teal #14b8a6 / #0d9488. */
:root {
  color-scheme: light dark;
  --teal: #14b8a6;
  --teal-deep: #0d9488;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --maxw: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6f4f1;
    --muted: #94a3b8;
    --bg: #0b1220;
    --surface: #111a2e;
    --border: #24314d;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  max-width: var(--maxw); margin: 0 auto; padding: .75rem 1.25rem;
  display: flex; align-items: center; gap: .7rem;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand .badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, var(--teal), var(--teal-deep));
  display: flex; align-items: center; justify-content: center;
}
.brand .badge svg { width: 20px; height: 20px; }
.brand b { font-size: 1.15rem; letter-spacing: -.02em; }
.site-header nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--teal); }

/* Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .3rem; text-wrap: balance; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
p, li { color: var(--ink); }
a { color: var(--teal-deep); }
@media (prefers-color-scheme: dark) { a { color: var(--teal); } }
.updated { color: var(--muted); font-size: .9rem; margin-top: 0; }
.lead { font-size: 1.1rem; color: var(--muted); }

.card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 14px; padding: 1.1rem 1.35rem; margin: 1.1rem 0;
}
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
th, td { border: 1px solid var(--border); padding: .55rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--surface); }
code { background: var(--surface); border: 1px solid var(--border); padding: .1rem .4rem; border-radius: 5px; font-size: .9em; }
ol, ul { padding-left: 1.3rem; }
li { margin: .35rem 0; }

/* Hero (index) */
.hero { text-align: center; padding: 2rem 0 1rem; }
.hero .logo {
  width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 1.2rem;
  background: linear-gradient(150deg, var(--teal), var(--teal-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--teal) 60%, transparent);
}
.hero .logo svg { width: 50px; height: 50px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.tile {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 14px; padding: 1.2rem 1.3rem; transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--teal); transform: translateY(-2px); }
.tile b { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.tile span { color: var(--muted); font-size: .92rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border); margin-top: 3rem;
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
  padding: 1.5rem 1.25rem 3rem; color: var(--muted); font-size: .9rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--teal); }
footer .spacer { margin-left: auto; }
