/* Sitter Card by Noxe. One look everywhere: a plain contact screen. Round photo, name, round buttons,
   a two-part switch, then detail rows with a small icon, a grey label and the value. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FFFFFF; --well: #F3F3F3; --btn: #F1F1F1; --ink: #1A1A1A; --ink2: #6A6A6A; --line: #E7E7E7; --icon: #8A8A8A;
  --blue: #0A66DE; --on-ink: #FFFFFF; --seg-on: #FFFFFF;
  --red: #D92D20; --on-red: #FFFFFF; --red-ink: #C12A20; --red-bg: #FDE5E3;
  --blue-ink: #0A55B8; --blue-bg: #E3EEFD;
  --toast: #1A1A1A; --on-toast: #FFFFFF; --toast-link: #8DB8FF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212; --well: #1E1E1E; --btn: #2A2A2A; --ink: #ECECEC; --ink2: #A6A6A6; --line: #2E2E2E; --icon: #8E8E8E;
    --blue: #6FA8FF; --on-ink: #121212; --seg-on: #3A3A3A;
    --red: #D92D20; --on-red: #FFFFFF; --red-ink: #FF9C93; --red-bg: #4A1E1B;
    --blue-ink: #9DC3FF; --blue-bg: #1D2F4D;
    --toast: #333333; --on-toast: #F5F5F5; --toast-link: #8DB8FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(255, 255, 255, .08);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.muted { color: var(--ink2); }
.ic { flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic .ic-fill, .ic-fill { fill: currentColor; stroke: none; }
.skip { position: absolute; transform: translateY(-200%); top: 0; left: 8px; background: var(--bg); padding: 10px 14px; z-index: 50; }
.skip:focus { transform: none; top: 8px; }
.print-only { display: none; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 0 20px; max-width: 480px; margin: 0 auto; min-height: 52px; }
.brand { display: flex; min-height: 44px; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand-by { font-size: 14px; color: var(--ink2); }
.top-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--blue); font: 500 17px var(--font); cursor: pointer; }
#top-back { margin-left: -8px; }
#top-back::before { content: ''; width: 10px; height: 10px; margin: 0 4px 0 2px; border: solid currentColor; border-width: 0 0 2.2px 2.2px; transform: rotate(45deg); }
.top-end { display: flex; align-items: center; }
body[data-view="welcome"] .brand, body[data-view="example"] .brand, body[data-view="send"] .brand, body[data-view="link"] .brand, body[data-view="more"] .brand { display: none; }

main { max-width: 480px; margin: 0 auto; padding: 4px 20px 140px; outline: none; }
.site main { max-width: none; padding: 0; }

/* the two-part switch */
.tabs { position: sticky; top: 0; z-index: 10; max-width: 480px; margin: 0 auto; padding: 8px 20px; background: var(--bg); }
.tabs-in, .switch { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 0; padding: 2px; border-radius: 8px; background: var(--well); border: 1px solid var(--line); }
.tabs-in { --n: 4; }
.switch { margin: 0 0 6px; }
.seg { min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--ink2); font: 400 15px var(--font); cursor: pointer; padding: 0 2px; min-width: 0; }
.seg-on { background: var(--seg-on); color: var(--ink); font-weight: 500; box-shadow: var(--shadow); }

/* centred head: round picture, name, grey line */
.av { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto; border-radius: 50%; background: var(--blue-bg); color: var(--blue-ink); font-size: 34px; font-weight: 600; letter-spacing: -.02em; overflow: hidden; }
.av-letter { line-height: 1; }
.page-head, .sc-head, .kid-head { text-align: center; margin: 6px 0 16px; }
.page-head .av, .sc-head .av, .kid-head .av { margin-bottom: 12px; }
.page-title, .sc-title, .kid-name { font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.page-title:focus, .kid-name:focus { outline: none; }
.page-sub, .sc-sub { color: var(--ink2); font-size: 16px; margin-top: 2px; }
.sc-tags { margin-top: 8px; }

/* round buttons with a small word under each */
.quick { display: flex; justify-content: center; gap: 8px; margin: 0 0 16px; }
.quick-gap { margin-top: 14px; }
.q { flex: 0 1 72px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink2); font: 400 12px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.q-dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--btn); color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.q-long { font-size: 12px; }
.q-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 2px; }
.q-red .q-dot { background: var(--red); color: var(--on-red); }
.q-red .q-label { color: var(--red-ink); font-weight: 600; }
.q:hover .q-dot { filter: brightness(.96); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + .q .q-dot, .q:focus-visible .q-dot { outline: 2px solid var(--blue); outline-offset: 2px; }
.q:focus-visible { outline: none; }

/* detail rows */
.rows { margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: clamp(112px, calc(28vw + 24px), 132px) minmax(0, 1fr); column-gap: 8px; align-items: start; min-height: 44px; }
.row-label { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 11px 0; color: var(--ink2); font-size: 16px; line-height: 22px; }
.row-label .ic { color: var(--icon); margin-top: 3px; }
.row-label-text { min-width: 0; overflow-wrap: anywhere; }
.row-value { margin: 0; padding: 11px 0; font-size: 16px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.row-link { display: block; margin: -11px 0; padding: 11px 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; white-space: normal; }
.more-box { margin: -4px 0 12px; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sc-group { margin: 14px 0 0; font-size: 16px; color: var(--ink); }
.sc-none { color: var(--ink2); padding: 8px 0; }
.sc-panel + .sc-panel { margin-top: 0; }

/* small tinted tags */
.tag { display: inline-block; max-width: 100%; margin: 0 6px 4px 0; padding: 2px 9px; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; vertical-align: middle; }
.tag-red { background: var(--red-bg); color: var(--red-ink); }
.tag-blue { background: var(--blue-bg); color: var(--blue-ink); }
.tag-long { font-size: 15px; }

/* forms use the same rows */
.panel { margin: 0 0 12px; }
.panel-title { font-size: 16px; font-weight: 600; margin: 14px 0 2px; }
.kid { margin-bottom: 18px; }
.contact + .contact { margin-top: 6px; }
.field .row-label { padding-top: 14px; }
.field .row-label .ic { margin-top: 3px; }
.field-label { display: flex; gap: 10px; }
.field .row-value { padding: 4px 0; }
.hint { color: var(--ink2); font-size: 14px; line-height: 1.4; margin: 6px 0 4px; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--well); color: var(--ink); font: 400 17px/1.4 var(--font); }
.textarea { resize: vertical; min-height: 84px; }
.select { appearance: auto; }
.input::placeholder { color: var(--ink2); opacity: .9; }
.field-allergy .field-label { color: var(--red-ink); }
.field-allergy .row-label .ic { color: var(--red-ink); }
.field-allergy .input { border-color: var(--red-ink); background: var(--red-bg); }
.warn { color: var(--ink); background: var(--well); border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.warn-plain { margin-top: 6px; }
.error { color: var(--red-ink); font-weight: 600; min-height: 1.5em; margin: 4px 0 8px; }
.status { color: var(--ink2); margin-top: 10px; min-height: 1.4em; text-align: center; font-size: 15px; }
.saved-note { color: var(--ink2); text-align: center; font-size: 14px; margin: 10px 0 0; }
.plain { margin-bottom: 10px; color: var(--ink2); font-size: 15px; }
.row-check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 2px 0; cursor: pointer; }
.row-check .ic { color: var(--icon); }
.row-check .check-text { flex: 1; min-width: 0; color: var(--ink); }
.row-check input { width: 24px; height: 24px; accent-color: var(--blue); flex: none; margin: 0; }
.passbox { margin-top: 4px; }
.phrase { font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-align: center; padding: 16px 10px; margin: 8px 0 4px; background: var(--well); border-radius: 8px; overflow-wrap: anywhere; }
.preview { border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 10px; }
.preview .sc-title { font-size: 20px; }
.preview .av { width: 64px; height: 64px; font-size: 28px; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 8px; font: 600 16px/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer; margin-top: 10px; }
.btn-main { background: var(--ink); color: var(--on-ink); }
.btn-line { background: var(--btn); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--blue); font-weight: 500; }
.btn-danger { background: var(--red-bg); color: var(--red-ink); }
.btn-undo { width: auto; min-height: 44px; margin: 0; padding: 0 14px; background: transparent; color: var(--toast-link); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.text-link { font-weight: 500; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); z-index: 20; }
.dock .btn { max-width: 440px; margin: 0 auto; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 96px; max-width: 448px; margin: 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 16px; background: var(--toast); color: var(--on-toast); border-radius: 8px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
body[data-view="link"] .toast, body[data-view="more"] .toast { bottom: 20px; }

.welcome { padding: 18px 0 0; text-align: center; }
.welcome .av { margin-bottom: 14px; }
.welcome-title { font-size: 26px; margin-bottom: 10px; }
.welcome-text { color: var(--ink2); margin-bottom: 18px; }
.welcome .rows { text-align: left; margin: 14px 0 0; }
.link-box { font-size: 14px; word-break: break-all; min-height: 110px; }
.passcode-words { font-weight: 600; font-size: 18px; }

.wrap-card { max-width: 480px; margin: 0 auto; }
.tools { margin-top: 12px; }
.tool-note { font-size: 14px; margin: 8px 0 12px; text-align: center; }
.notice { padding: 28px 0 8px; text-align: center; }
.notice .av { margin-bottom: 14px; background: var(--btn); color: var(--ink2); }
.notice-ended .av { background: var(--red-bg); color: var(--red-ink); }
.notice-title { font-size: 24px; margin-bottom: 10px; }
.notice-title:focus { outline: none; }
.notice-text { color: var(--ink2); margin-bottom: 8px; }
.notice-ended .notice-title { color: var(--red-ink); }
.code-form { margin-top: 18px; text-align: left; }
.code-input { font-size: 20px; }
.foot { max-width: 480px; margin: 0 auto; padding: 8px 20px 40px; color: var(--ink2); font-size: 14px; text-align: center; }
.print-host { display: none; }

/* website */
.site { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 12px; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--blue); font-weight: 500; text-decoration: none; border-radius: 8px; }
.site-link:hover { background: var(--well); }
.btn-inline { display: inline-flex; width: auto; margin-top: 0; padding: 12px 24px; }
.hero { display: grid; gap: 28px; padding: 24px 0 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); letter-spacing: -.035em; margin-bottom: 16px; }
.hero-lead { font-size: 19px; color: var(--ink2); margin-bottom: 24px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions .btn { margin: 0; }
.hero-img { width: 100%; max-width: 340px; justify-self: center; border-radius: 28px; border: 1px solid var(--line); display: block; height: auto; }
.band { padding: 36px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 18px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 48px; height: 48px; border-radius: 50%; background: var(--btn); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 20px; }
.steps h3 { font-size: 20px; margin-bottom: 4px; }
.steps p, .band p { color: var(--ink2); max-width: 44em; }
.band p + p { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { min-height: 52px; display: flex; align-items: center; font-weight: 600; font-size: 18px; cursor: pointer; }
.faq details p { padding: 0 0 16px; }
.site-foot a, .band p a, .prose p a, .prose li a { display: inline-block; padding: 11px 0; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--ink2); font-size: 15px; display: grid; gap: 8px; }
.prose { max-width: 44em; padding-bottom: 40px; }
.prose h1 { font-size: 34px; margin: 12px 0 18px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 56px; padding: 48px 0 64px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* printing: a plain black-on-white fridge card */
@media print {
  :root, :root * { color-scheme: light; }
  :root { --bg: #fff; --well: #fff; --btn: #fff; --ink: #000; --ink2: #333; --line: #999; --icon: #333; --red-ink: #8A1A12; --red-bg: #fff; --blue-ink: #000; --blue-bg: #fff; }
  body { background: #fff; color: #000; font-size: 13pt; }
  .top, .tabs, .app-main, .dock, .toast, .tools, .foot, .no-print, .skip, .quick, .more-box { display: none !important; }
  .print-host { display: block; }
  .sc-panel[hidden] { display: block !important; }
  .print-only { display: block; padding-top: 10px; border-top: 1px solid #999; margin-top: 14px; }
  .row { break-inside: avoid; }
  .tag { border: 1.5px solid #000; color: #000; }
  .tag-red { border-width: 2px; }
  .av { border: 1.5px solid #000; background: #fff; color: #000; }
  .sc-title { font-size: 22pt; }
}
