/* nevermisstwice.app — one stylesheet for every page.
   The app's own colours and typefaces: off-white paper, navy ink, gray for what's
   quieter, and cobalt for anything you can act on. Big Shoulders is the face the
   timer counts down in; here it sets the headings. */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
             font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext-SemiBold.woff2") format("woff2");
             font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext-ExtraBold.woff2") format("woff2");
             font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/BigShouldersDisplay-Black.woff2") format("woff2");
             font-weight: 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #F4F6F9;   /* the page */
  --ink: #14243C;     /* type */
  --dim: #5F6F85;     /* secondary type; the app's rest colour */
  --line: #E1E7EF;    /* rules and the screens' edges; the app's mist */
  --cobalt: #1F5FD0;  /* links and the button; the app's work colour */
  --steel: #2E6CA6;   /* hover; the app's warm-up colour */
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0 auto; padding: 0 24px 72px; max-width: 760px; color: var(--ink);
       font: 17px/1.6 "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
       -webkit-font-smoothing: antialiased; }

h1, h2 { font-family: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif; font-weight: 900; letter-spacing: 0.005em; }
h1 { font-size: 3.6rem; line-height: 0.96; margin: 0 0 0.5em; text-wrap: balance; }
main > h1 { margin-top: 2rem; }
h2 { font-size: 2.1rem; line-height: 1.02; margin: 2.4em 0 0.5em; }
h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.3; margin: 1.6em 0 0.3em; }
p, li, dd { max-width: 66ch; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; max-width: 36em; }
.date { color: var(--dim); margin-top: -0.4em; }
strong { font-weight: 800; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
code { font: 0.92em/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--line);
       padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }

a { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }

header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
         gap: 10px 20px; padding: 26px 0 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink);
         font-weight: 600; font-size: 1.2rem; }
.brand .mark { display: block; border-radius: 7px; }
nav { display: flex; flex-wrap: wrap; gap: 2px 18px; }
nav a { color: var(--dim); text-decoration: none; padding: 6px 0; }
nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Home hero: the rule on the left, the timer on the right, mid-session. Work
   and rest side by side, since telling them apart at a glance is the whole idea. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: center;
        margin: 2.8rem 0 2.4rem; }
.hero .lede { margin-bottom: 0; }
.screens { display: flex; gap: 14px; align-items: flex-start; justify-self: end; }
.screens img { display: block; width: 148px; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.screens img + img { margin-top: 30px; }

.cta { display: inline-block; margin: 1.6rem 0 0; padding: 13px 22px; border-radius: 6px;
       background: var(--cobalt); color: var(--paper); font-weight: 800; text-decoration: none; }
.cta:hover { background: var(--steel); }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cta-note { color: var(--dim); font-size: 0.95em; margin: 0.8rem 0 0; }
.cta-note a { word-break: break-all; }
/* Until the link is revealed the button goes nowhere, so it doesn't look pressable. */
.locked .cta { background: var(--line); color: var(--dim); cursor: default; }
.reveal, .reveal-form button { font: inherit; font-weight: 600; color: var(--cobalt); background: none;
  border: 1px solid var(--cobalt); border-radius: 6px; padding: 3px 10px; margin-left: 6px; cursor: pointer; }
.reveal-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin: 0.9rem 0 0; font-size: 0.95em; }
.reveal-form[hidden] { display: none; }
.reveal-form label { display: grid; gap: 4px; color: var(--dim); }
.reveal-form input { font: inherit; color: var(--ink); width: 9.5em; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.reveal-form button { margin-left: 0; padding: 6px 14px; }
.reveal-status { color: #A3322A; width: 100%; }
.reveal-status:empty { display: none; }

.features { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px 32px; }
.features li { max-width: none; margin: 0; }
.features h3 { margin: 0 0 0.2em; }
.features p { margin: 0; color: var(--dim); font-size: 0.97em; }

table { border-collapse: collapse; margin: 1rem 0 1.5rem; width: 100%; max-width: 40em; font-size: 0.95em;
        font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--dim); }
td:first-child { white-space: nowrap; font-weight: 800; }

/* A session, screen by screen. */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; margin: 1.4rem 0 0; }
.strip figure { margin: 0; }
.strip img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.strip figcaption { margin-top: 8px; font-size: 0.92em; line-height: 1.45; color: var(--dim); }
.strip figcaption b { display: block; color: var(--ink); font-weight: 800; }

footer { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line);
         color: var(--dim); font-size: 0.9em; display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 1.8rem; }
  main > h1 { margin-top: 1.4rem; }
  nav { gap: 0 14px; font-size: 0.95em; }
  .hero { grid-template-columns: 1fr; margin-top: 1.8rem; }
  .screens { order: -1; justify-self: center; }
  .screens img { width: min(148px, 42vw); }
  .cta { display: block; text-align: center; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
