/* kytetime.com — reference guides about kids' phones.
   Cool, tool-like, tabular. Intentionally nothing like gobabyapp.com or
   cellphonetrackersoftware.com: no shared stylesheet, no shared layout. */

:root {
  --bg:      #f5f7f9;
  --surface: #ffffff;
  --ink:     #10181f;
  --ink-mid: #4a5a68;
  --ink-soft:#75838f;
  --line:    #dde3e9;
  --accent:  #1d6fa5;
  --accent-bg:#e8f2f9;
  --warn-bg: #fdf3e4;
  --warn-line:#d9a441;
  --ok:      #1e7a5a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0d1318;
    --surface: #141c23;
    --ink:     #e9eff4;
    --ink-mid: #a8b8c4;
    --ink-soft:#7d8c99;
    --line:    #24303a;
    --accent:  #63b3e0;
    --accent-bg:#16242e;
    --warn-bg: #241d10;
    --warn-line:#b98b34;
    --ok:      #57bd97;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.62 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.018em; font-weight: 680; margin-top: 0; }
h1 { font-size: clamp(28px, 4.8vw, 40px); margin-bottom: 14px; }
h2 { font-size: clamp(21px, 3vw, 26px); margin: 46px 0 12px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
p  { margin: 0 0 17px; }
ul, ol { margin: 0 0 17px; padding-left: 21px; }
li { margin-bottom: 7px; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
code { font: 0.88em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-bg); padding: 2px 5px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; background: var(--surface); padding: 10px 16px; z-index: 5; }
.skip:focus { left: 0; top: 0; }

.wrap { width: 100%; max-width: 63rem; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 42rem; }

/* ---------- header ---------- */

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 13px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo svg { flex: none; }
.logo b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.logo span { display: block; font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.topnav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; }
.topnav a { color: var(--ink-mid); text-decoration: none; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

main { padding-block: 36px 10px; }

.kicker { margin: 0 0 9px; font-size: 11.5px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lede { font-size: clamp(18px, 2.2vw, 20.5px); line-height: 1.5; color: var(--ink-mid); margin: 0 0 26px; }
.stamp { font-size: 13px; color: var(--ink-soft); display: flex; gap: 14px; flex-wrap: wrap; border-block: 1px solid var(--line); padding-block: 9px; margin-bottom: 28px; }

/* ---------- components ---------- */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 26px 0; }
.panel h3 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.callout { background: var(--warn-bg); border-left: 3px solid var(--warn-line); border-radius: 0 8px 8px 0; padding: 15px 18px; margin: 26px 0; }
.callout > :last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: 4px; }

.does { list-style: none; padding-left: 0; }
.does li { padding-left: 27px; position: relative; margin-bottom: 9px; }
.does li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.does li.y::before { content: "\2713"; color: var(--ok); }
.does li.n::before { content: "\2715"; color: var(--warn-line); }

table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.scroll { overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); list-style: none; padding: 0; margin: 24px 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 0; }
.tile h3 { margin: 0 0 6px; font-size: 17px; }
.tile p { margin: 0 0 11px; font-size: 14.5px; color: var(--ink-mid); }
.tile a { font-weight: 600; text-decoration: none; font-size: 14.5px; }
.tile a:hover { text-decoration: underline; }

.product { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 30px 0; }
.product img.shot { border-radius: 10px; border: 1px solid var(--line); }
.product h3 { margin: 0 0 8px; }
.product p { font-size: 15px; color: var(--ink-mid); margin-bottom: 14px; }
.product .fine { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }

.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 15px; padding: 10px 18px; border-radius: 8px; }
.btn:hover { background: var(--ink); }

figure { margin: 26px 0; }
figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

details { border-bottom: 1px solid var(--line); padding: 13px 0; }
summary { cursor: pointer; font-weight: 650; }
details p { margin: 11px 0 2px; color: var(--ink-mid); }

/* ---------- footer ---------- */

.foot { margin-top: 54px; border-top: 1px solid var(--line); background: var(--surface);
  padding-block: 26px 32px; font-size: 13.5px; color: var(--ink-soft); }
.foot-grid { display: flex; gap: 26px; flex-wrap: wrap; justify-content: space-between; }
.foot p { margin: 0 0 8px; max-width: 36rem; }
.foot a { color: var(--ink-mid); }
.foot nav { display: flex; gap: 15px; flex-wrap: wrap; }

@media (max-width: 40rem) {
  .product { grid-template-columns: 1fr; }
  .product img.shot { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
