/* SEALink.  Ink on paper (DESIGN.md section 2): one filled button per screen, amber only for the
   two reminders, nothing under 16 px, laptop first, one column at most 880 px wide.
   The look is taken from SEALink Mockup.html. */
:root {
  --paper: #F5F5F2; --paper-2: #EBEBE7; --rule: #D9D9D4;
  --ink: #0D0D0D; --ink-soft: #6A6A66; --amber: #B86E00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111110; --paper-2: #1B1B19; --rule: #2E2E2B; --ink: #F1F1EE; --ink-soft: #9B9B96; --amber: #F2A100; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 400 18px/1.45 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: -.011em;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  -webkit-text-size-adjust: 100%;
}
#app { flex: 1; display: flex; flex-direction: column; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.block { display: block; }
.col { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }
.pad { padding-bottom: 72px; }
main.col { flex: 1; }

/* The top bar */
.bar { border-bottom: 1px solid var(--ink); }
.bar .col { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 8px; }
.mark { font-weight: 700; font-size: 26px; letter-spacing: -.04em; margin-right: auto; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.bar nav { display: flex; align-items: center; gap: 28px; }
.bar nav a, .bar nav button { text-decoration: none; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; min-height: 48px; }
.bar nav a:hover, .bar nav button:hover { text-decoration: underline; }
.bar .who { color: var(--ink-soft); }
.bar .menu { display: none; background: none; border: 0; padding: 0 4px; min-height: 48px; min-width: 48px; font-weight: 500; }

h1 { font-size: 48px; line-height: 1.05; letter-spacing: -.05em; font-weight: 700; margin: 56px 0 28px; overflow-wrap: anywhere; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; margin: 48px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
p { margin: 0 0 16px; }
.soft { color: var(--ink-soft); }
.small { font-size: 16px; }
strong { font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 999px; border: 1px solid var(--ink); background: none; font-weight: 500; text-decoration: none; text-align: center; }
.btn.pri { background: var(--ink); color: var(--paper); }
.btn:disabled, .words:disabled { opacity: .55; cursor: default; }
.words { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; min-height: 48px; min-width: 48px; display: inline-flex; align-items: center; text-align: left; cursor: pointer; }
.btn:focus-visible, .words:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.actions, .row-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.msg { min-height: 26px; margin-top: 18px; font-weight: 500; }

/* Fields: 56 px tall, a 14 px corner */
.field { display: block; width: 100%; height: 56px; border: 1px solid var(--rule); border-radius: 14px; background: none; padding: 0 18px; font-size: 20px; margin: 0 0 14px; }
.field:focus { border-color: var(--ink); outline: none; }
.field::placeholder { color: var(--ink-soft); opacity: 1; }
.field.big { font-size: 26px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
form .btn { width: 100%; }
label.lbl { display: block; font-size: 16px; color: var(--ink-soft); margin: 0 0 6px; }

/* The door and the screens like it */
.door { margin: auto; width: 100%; max-width: 440px; padding: 48px 24px 96px; text-align: center; }
.door .mark { font-size: 56px; letter-spacing: -.055em; display: block; margin: 0 0 8px; min-height: 0; }
.door .lead { margin-bottom: 40px; }
.door .btn { width: 100%; }
.door .under { margin: 10px 0 26px; }
.door .last { margin-top: 30px; }
.door h1 { font-size: 40px; margin: 0 0 18px; }
.door form { margin-top: 28px; }
.door .words { justify-content: center; }

/* Your Sites */
.remind { margin: -8px 0 28px; }
.remind p { color: var(--amber); margin: 0 0 6px; }
.remind .words { color: var(--amber); font-weight: 500; margin-left: 6px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { display: block; border: 1px solid var(--rule); border-radius: 14px; padding: 26px 28px 24px; text-decoration: none; min-height: 48px; }
.tile:hover, .tile:focus-visible { border-color: var(--ink); }
.tile strong { display: block; font-size: 30px; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 8px; }
.tile span { display: block; }
.tile .host { margin-top: 18px; overflow-wrap: anywhere; }

/* Add A Device and the codes */
.code { font-size: 72px; font-weight: 700; letter-spacing: -.02em; margin: 28px 0 12px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.code i { font-style: normal; margin-left: .28em; }
.added { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-top: 28px; }

/* Devices, People */
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rows .what { margin-right: auto; min-width: 0; }
.rows .name { font-size: 20px; font-weight: 500; letter-spacing: -.025em; display: block; overflow-wrap: anywhere; }
.rows a.name { text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; }
.rows a.name:hover { text-decoration: underline; }
.rows .acts { display: flex; gap: 20px; flex-shrink: 0; }
.rows .count { flex-shrink: 0; }
.rows form { display: flex; gap: 12px; align-items: center; flex: 1; }
.rows form .field { margin: 0; flex: 1; }
.rows form .btn { width: auto; }
.tag { font-size: 16px; border: 1px solid var(--rule); border-radius: 999px; padding: 2px 12px; margin-left: 10px; font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.checks { margin: 8px 0 0; padding: 0; list-style: none; }
.checks li { border-bottom: 1px solid var(--rule); }
.checks label { display: flex; align-items: center; gap: 16px; min-height: 56px; cursor: pointer; flex-wrap: wrap; }
.checks input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); flex-shrink: 0; }
.checks input:disabled + span { color: var(--ink-soft); }
.checks .why { margin-left: auto; }
.note { margin-top: 16px; }
h2 + p, h2 + .rows, h2 + ul { margin-top: 8px; }
h2 + p { margin-top: 18px; }

/* The status line at the bottom */
.status { margin-top: auto; border-top: 1px solid var(--rule); }
.status .col { padding-top: 14px; padding-bottom: 16px; font-size: 16px; color: var(--ink-soft); min-height: 54px; }

/* The recovery sheet: the printed page itself */
.sheet-wrap { padding: 32px 24px 72px; }
.sheet-actions { max-width: 720px; margin: 0 auto 28px; display: flex; gap: 24px; align-items: center; }
.sheet { max-width: 720px; margin: 0 auto; border: 1px solid var(--rule); border-radius: 14px; padding: 48px 56px; background: var(--paper); }
.sheet h1 { margin-top: 0; font-size: 40px; }
.sheet ol { padding-left: 1.6em; margin: 0 0 16px; }
.sheet li { margin: 0 0 8px; }
.sheet .sheet-code { font-size: 28px; font-weight: 700; letter-spacing: .04em; margin: 20px 0 28px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The page /go answers with */
.go-back { margin-top: 24px; }

@media (max-width: 700px) {
  .col { padding: 0 20px; }
  .tiles { grid-template-columns: 1fr; }
  h1 { font-size: 40px; margin-top: 40px; }
  .code { font-size: 56px; }
  .bar .col { flex-wrap: wrap; gap: 0 18px; }
  .bar .menu { display: inline-flex; align-items: center; }
  .bar nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .bar nav.open { display: flex; }
  .bar nav a, .bar nav button, .bar nav .who { border-top: 1px solid var(--rule); }
  .bar nav .who { display: flex; align-items: center; min-height: 48px; }
  .btn { width: 100%; }
  .actions, .row-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .actions .words, .row-actions .words { justify-content: center; }
  .rows li { flex-wrap: wrap; gap: 4px 20px; }
  .rows .what { flex-basis: 100%; }
  .rows form { flex-wrap: wrap; flex-basis: 100%; }
  .sheet { padding: 28px 22px; }
  .sheet .sheet-code { font-size: 22px; white-space: normal; overflow-wrap: anywhere; }
  .sheet-actions { flex-direction: column; align-items: stretch; }
}

@media print {
  :root { --paper: #fff; --ink: #000; --ink-soft: #333; --rule: #999; }
  body { background: #fff; }
  .noprint, .bar, .status { display: none !important; }
  .sheet-wrap { padding: 0; }
  .sheet { border: 0; padding: 0; max-width: none; }
}

/* An empty message line takes no room inside a column screen. */
main.col .msg:empty { display: none; }
