/* Pet sitter sheet · © 2026 SoeSan Holdings LLC
   The look: a note held to the fridge by a magnet. Enamel door behind, paper in front. */
@font-face { font-family: 'Atkinson'; src: url('/pet-sitter/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('/pet-sitter/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/pet-sitter/fonts/caveat-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --door: #DCE6E1;
  --door-2: #CFDBD5;
  --door-line: #B7C7BF;
  --ink: #17201C;
  --ink-2: #44524B;
  --field: #F6F9F7;
  --field-line: #6E8279;
  --magnet: #E4572E;
  --magnet-ink: #B23A16;
  --danger: #9A3010;
  --print-btn: #C4441C;
  --focus: #1D5FD1;
  --paper: #FFFFFF;
  --paper-ink: #1B2430;
  --paper-2: #56606E;
  --paper-line: #D9DDE3;
  --rule: #E8EBEF;
  --alert: #B42318;
  --alert-bg: #FDECEA;
  --today: #FFF4C2;
  --shadow: 0 1px 1px rgba(23, 32, 28, .08), 0 10px 30px -8px rgba(23, 32, 28, .28);
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --sans: 'Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --door: #151B19;
    --door-2: #1D2522;
    --door-line: #2E3A35;
    --ink: #E3ECE7;
    --ink-2: #A9B8B0;
    --field: #1F2825;
    --field-line: #6B7E75;
    --magnet: #F0643A;
    --magnet-ink: #FF8E6B;
    --danger: #FF8E6B;
    --print-btn: #F0643A;
    --focus: #7EB0FF;
    --paper: #F1EEE6;
    --paper-line: #D3CFC4;
    --rule: #E2DED3;
    --today: #F6E7A8;
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 34px -8px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--door); color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  /* faint brushed-enamel grain */
  background-image: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, .05) 3px 4px);
}
@media (prefers-color-scheme: dark) { body { background-image: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, .018) 3px 4px); } }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--door); padding: .5rem .8rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: .75rem; }
body.sitter .skip { display: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; padding: 1rem clamp(1rem, 4vw, 2.5rem) .4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.mag { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF9A7A, var(--magnet) 55%, #9E2F10); box-shadow: 0 2px 3px rgba(0, 0, 0, .25); }
.bar-note { color: var(--ink-2); font-size: .92rem; }

main { padding: 0 clamp(1rem, 4vw, 2.5rem); max-width: 1240px; margin: 0 auto; }

.intro { padding: 1.4rem 0 1.2rem; max-width: 46rem; }
.intro h1 { font: 700 clamp(1.9rem, 5.2vw, 3rem)/1.08 var(--sans); letter-spacing: -.02em; margin: 0 0 .7rem; }
.lede { font-size: 1.08rem; color: var(--ink-2); margin: 0; max-width: 40rem; }

.sitter-hello { padding: 1.3rem 0 .6rem; }
.hello-from { font-weight: 700; font-size: 1.1rem; margin: 0; }

/* ---------- phone tabs ---------- */
.tabs { display: none; }
@media (max-width: 899px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--door-2); border: 1px solid var(--door-line); border-radius: 999px; margin: 0 0 1rem; position: sticky; top: .5rem; z-index: 5; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .25); }
  .tabs button { border: 0; background: none; padding: .6rem .5rem; border-radius: 999px; font-weight: 700; cursor: pointer; min-height: 44px; }
  .tabs button[aria-selected='true'] { background: var(--ink); color: var(--door); }
  body:not(.show-sheet):not(.sitter) .door { display: none; }
  body.show-sheet .form { display: none; }
  body.sitter .tabs { display: none; }
}

/* ---------- work area ---------- */
.work { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }

}
body.sitter .work { grid-template-columns: minmax(0, 760px); justify-content: center; }
body.sitter .form { display: none; }

/* ---------- the form ---------- */
fieldset { border: 0; border-top: 2px solid var(--ink); margin: 0 0 1.6rem; padding: .9rem 0 0; min-width: 0; }
legend { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 0 .6rem 0 0; }
label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 .8rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .62rem .7rem; min-height: 44px;
  background: var(--field); border: 1.5px solid var(--field-line); border-radius: 8px; font-weight: 400; font-size: 1rem;
}
textarea { resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: .75; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.row2, .row3 { display: grid; gap: 0 .8rem; grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1.4fr 1fr .7fr; }
@media (max-width: 420px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 > :first-child { grid-column: 1 / -1; } }

.pet-tabs, .pet-tablist { display: flex; gap: .4rem; flex-wrap: wrap; }
.pet-tabs { margin: 0 0 .9rem; }
.pt { border: 1.5px solid var(--field-line); background: var(--field); border-radius: 999px; padding: .45rem .95rem; min-height: 44px; font-weight: 700; cursor: pointer; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt[aria-selected='true'] { background: var(--ink); color: var(--door); border-color: var(--ink); }
.pt.add { border-style: dashed; background: transparent; }
.pet-form { background: var(--door-2); border: 1px solid var(--door-line); border-radius: 12px; padding: 1rem 1rem .4rem; }
.ed-h { font-weight: 700; font-size: .9rem; margin: .2rem 0 .4rem; }
.task-list { list-style: none; margin: 0 0 .6rem; padding: 0; }
/* time + kind on top, the instruction full width under them */
.task { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 44px; gap: .4rem; align-items: center; margin-bottom: .55rem; padding-bottom: .55rem; border-bottom: 1px dashed var(--door-line); }
.task input, .task select { margin: 0; }
.task [data-tf='what'] { grid-column: 1 / 3; grid-row: 2; }
.task .x { grid-row: 1 / 3; grid-column: 3; height: 100%; }
.x { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.x:hover { background: var(--door-line); color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .6rem 1.1rem; border-radius: 10px; border: 2px solid var(--ink); background: var(--ink); color: var(--door); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex: none; }
.btn:hover { filter: brightness(1.15); }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.quiet:hover { background: var(--door-2); filter: none; }
.btn.small { min-height: 44px; padding: .4rem .8rem; font-size: .92rem; margin: 0 .4rem .8rem 0; }
.btn.danger { border-color: transparent; color: var(--danger); text-decoration: underline; text-underline-offset: 3px; padding-left: 0; }
.form-foot { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ---------- the door: actions + paper ---------- */
.acts { display: flex; gap: .6rem; flex-wrap: wrap; }
.acts .btn:first-child { background: var(--print-btn); border-color: var(--print-btn); color: #fff; }
@media (prefers-color-scheme: dark) { .acts .btn:first-child { color: #1A0C06; } }
.link-note { min-height: 1.5em; margin: .5rem 0 .4rem; font-size: .92rem; color: var(--ink-2); }
.link-out { margin-top: .4rem; font-family: var(--mono); font-size: .8rem; }

.paper-wrap { position: relative; padding-top: 14px; }
.magnet {
  position: absolute; z-index: 2; top: 0; left: 50%; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFB49A 0 8%, var(--magnet) 40%, #A93212 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .3), inset 0 -3px 5px rgba(0, 0, 0, .2);
}
.sheet {
  position: relative; background: var(--paper); color: var(--paper-ink); box-shadow: var(--shadow);
  padding: 2.1rem clamp(1rem, 3.4vw, 2rem) 1.2rem; border-radius: 2px; font-size: .95rem; line-height: 1.42;
  transform: rotate(-.35deg);
}
body.sitter .sheet { transform: none; }
body.sitter .sitter-hello, body.sitter .acts, body.sitter .link-note { max-width: 760px; margin-inline: auto; }
body.sitter .acts .btn:first-child { background: transparent; color: var(--ink); border-color: var(--ink); }

.sh-head { text-align: center; margin-bottom: 1rem; }
.sh-hand { font: 700 clamp(1.9rem, 4.6vw, 2.4rem)/1.05 var(--hand); margin: 0; color: var(--paper-ink); overflow-wrap: anywhere; }
.sh-dates { margin: .25rem 0 0; font-weight: 700; color: var(--paper-2); font-size: .9rem; letter-spacing: .02em; }

.sos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--paper-ink); border-radius: 6px; margin-bottom: 1.1rem; }
.sos-cell { padding: .5rem .6rem .55rem; border-left: 1px solid var(--paper-line); min-width: 0; display: flex; flex-direction: column; }
.sos-cell:first-child { border-left: 0; }
.sos-cell.er { background: var(--alert-bg); }
.sos-k { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--paper-2); }
.sos-cell.er .sos-k { color: var(--alert); }
.sos-n { font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.sos-p { font: 700 1.1rem/1.3 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sos-x { font-size: .76rem; color: var(--paper-2); line-height: 1.3; margin-top: .1rem; }
.sos-blank { flex: 1; border-bottom: 1px solid var(--paper-line); min-height: 2.2rem; }
.tel { color: inherit; text-decoration: underline; text-decoration-color: var(--paper-2); text-underline-offset: 3px; }
.sos-cell:nth-child(3) { border-left: 0; }
.sos-cell:nth-child(n + 3) { border-top: 1px solid var(--paper-line); }
body.sitter .sos-p .tel { display: inline-block; padding: .2rem 0; }

.pets { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem 1.4rem; margin-bottom: 1rem; }
.pet { border-top: 1px solid var(--paper-line); padding-top: .4rem; min-width: 0; }
.pet-name { font: 700 1.7rem/1 var(--hand); margin: 0; overflow-wrap: anywhere; }
.pet-meta { margin: .1rem 0 .3rem; font-size: .84rem; color: var(--paper-2); }
.pet-alert { margin: 0 0 .3rem; background: var(--alert-bg); color: var(--alert); padding: .25rem .5rem; border-radius: 4px; font-size: .88rem; }
.pet-q { margin: 0 0 .3rem; font-size: .88rem; overflow-wrap: anywhere; }
.pet-chip { margin: 0; font-size: .8rem; color: var(--paper-2); }
.pet-chip .mono { color: var(--paper-ink); }

.sh-h { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .4rem; padding-bottom: .3rem; border-bottom: 2px solid var(--paper-ink); display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.sh-today, .sh-sub { text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--paper-2); }
.sh-today { background: var(--today); color: var(--paper-ink); padding: .05rem .45rem; border-radius: 3px; }

.jobs { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.job { display: grid; grid-template-columns: 4.8rem 1.4rem minmax(0, 7.5rem) minmax(0, 1fr); gap: .1rem .55rem; align-items: baseline; padding: .42rem 0; border-bottom: 1px solid var(--rule); }
.job:has(.tick) { grid-template-columns: 2.9rem 4.8rem 1.4rem minmax(0, 7.5rem) minmax(0, 1fr); }
.job-pet { overflow-wrap: anywhere; }
.k-med { border-left: 3px solid var(--alert); padding-left: .4rem; margin-left: calc(-.4rem - 3px); }
.k-med .job-w, .k-med .job-pet { font-weight: 700; }
.job-t { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.job-pet { font-weight: 700; }
.job-w { overflow-wrap: anywhere; }
.job.empty-job { display: block; color: var(--paper-2); font-style: italic; }
.ic { width: 1.25rem; height: 1.25rem; align-self: center; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--paper-2); }
.k-med .ic, .k-med .job-t { color: var(--alert); }
@media (max-width: 520px) {
  .job { grid-template-columns: 4.6rem 1.3rem minmax(0, 1fr); }
  .job:has(.tick) { grid-template-columns: 2.9rem 4.6rem 1.3rem minmax(0, 1fr); }
  .job-w { grid-column: -2 / -1; }
  .job-pet { grid-column: -2 / -1; }
  .job .tick { grid-row: 1 / 3; }
  .job-t, .job .ic { grid-row: 1; }
}

.tick { position: relative; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: 0; cursor: pointer; align-self: center; }
.tick input { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; min-height: 0; width: 1.6rem; height: 1.6rem; border: 2px solid var(--paper-ink); border-radius: 4px; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.tick input::after { content: ''; width: .5rem; height: .9rem; border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.tick input:checked { background: var(--paper-ink); }
.tick input:checked::after { opacity: 1; }
.tick input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.job:has(input:checked) .job-w, .job:has(input:checked) .job-pet { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--paper-2); }

.house { margin-bottom: 1.1rem; }
.house p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

.check { margin-bottom: .8rem; }
.grid-wrap { overflow-x: auto; }
.grid { border-collapse: collapse; width: 100%; font-size: .8rem; margin-bottom: .7rem; }
.grid th, .grid td { border: 1px solid var(--paper-line); padding: .2rem .25rem; text-align: center; }
.grid thead th { font-size: .72rem; font-weight: 700; white-space: nowrap; }
.grid .g-job { text-align: left; font-weight: 400; min-width: 11rem; max-width: 16rem; position: sticky; left: 0; background: var(--paper); z-index: 1; }
@media (max-width: 520px) { .grid .g-job { min-width: 8rem; max-width: 9rem; } }
.grid .g-job .mono { font-size: .74rem; font-weight: 600; }
.grid .is-today { background: var(--today); }
.grid .tick { width: 2.75rem; height: 2.75rem; }
.box { display: inline-block; width: .9rem; height: .9rem; border: 1.5px solid var(--paper-2); border-radius: 2px; vertical-align: middle; }

.sh-foot { text-align: right; font-size: .72rem; color: var(--paper-2); letter-spacing: .04em; border-top: 1px solid var(--rule); padding-top: .4rem; }

/* ---------- guide + footer ---------- */
.guide { border-top: 2px solid var(--ink); margin: 3rem 0 0; padding: 1.2rem 0 1rem; }
.guide h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.01em; }
.guide-cols { display: grid; gap: 0 2.5rem; }
@media (min-width: 760px) { .guide-cols { grid-template-columns: 1fr 1fr; } }
.guide h3 { font-size: 1.02rem; margin: 1rem 0 .3rem; }
.guide p { margin: 0; color: var(--ink-2); max-width: 36rem; }
body.sitter .guide { display: none; }
.foot { padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 2.4rem; max-width: 1240px; margin: 0 auto; font-size: .86rem; color: var(--ink-2); }
.foot p { margin: .3rem 0; }

/* ---------- print: page 1 the sheet, page 2 the checklist ---------- */
@media print {
  @page { size: letter; margin: .45in; }
  :root { --paper: #fff; --paper-ink: #000; --paper-2: #333; --paper-line: #999; --rule: #ccc; --alert: #000; --alert-bg: #fff; --today: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .bar, .intro, .sitter-hello, .tabs, .form, .acts, .link-note, .magnet, .guide, .foot, .skip { display: none !important; }
  main { padding: 0; max-width: none; }
  .work { display: block; }
  .door { display: block !important; position: static; max-height: none; overflow: visible; padding: 0; margin: 0; }
  .paper-wrap { padding: 0; }
  .sheet { box-shadow: none; transform: none; padding: 0; font-size: 10.5pt; }
  .sh-hand { font-size: 26pt; }
  .sos { grid-template-columns: repeat(4, 1fr); }
  .sos-cell { border-top: 0 !important; border-left: 1px solid #999 !important; }
  .sos-cell:first-child { border-left: 0 !important; }
  .sos-cell.er .sos-k { font-weight: 700; }
  .pet-alert { border: 1.5px solid #000; font-weight: 700; }
  .job { grid-template-columns: .7in .22in minmax(0, 1in) 1fr; padding: .22rem 0; }
  .job:has(.tick) { grid-template-columns: .3in .7in .22in minmax(0, 1in) 1fr; }
  .tick { width: .3in; height: .3in; }
  .tick input { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sos-p { font-size: 13pt; }
  .pets.n3, .pets.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem .8rem; }
  .pet-q { font-size: 9pt; }
  .grid .g-job { position: static; }
  .k-med { margin-left: 0; padding-left: 4pt; }
  .tel { text-decoration: none; }
  .check { break-before: page; }
  .grid { font-size: 8.5pt; }
  .grid-wrap { overflow: visible; }
  .grid th, .grid td { padding: 3pt 2pt; }
  .grid tr { break-inside: avoid; }
  .tick input { width: 11pt; height: 11pt; border-width: 1.5px; }
  .k-med .ic, .k-med .job-t { color: #000; }
}
@media (prefers-reduced-motion: no-preference) {
  .tick input { transition: background-color .12s; }
}
