/*
 * The public pages' styles, and the fonts they use.
 *
 * A file rather than an inline <style> block, so the content security policy
 * can say style-src 'self' and mean it — an inline block needs
 * 'unsafe-inline', which is a hole kept open for our own stylesheet.
 *
 * The fonts are served from /fonts rather than from Google (H-3). Two reasons,
 * and the second is the real one: a policy that has to allow
 * fonts.googleapis.com is weaker than one that allows nothing off-origin, and
 * a card view should not tell Google that somebody looked at somebody's card.
 * Licence and subset notes in public/fonts/OFL.txt.
 */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/baloo2-800-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;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/baloo2-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/fonts/nunito-variable-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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/fonts/nunito-variable-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root { --teal: #0d9488; --teal-2: #14b8a6; --ink: #0f2e2b; --surface: #fbfdfc; --muted: #5b6f6c; --line: #d9e6e3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 600 17px/1.5 'Nunito', system-ui, sans-serif; }
main { max-width: 34rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
h1 { font: 800 2rem/1.15 'Baloo 2', 'Nunito', system-ui, sans-serif; margin: 0 0 .25rem; }
.sub { color: var(--muted); margin: 0 0 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem 1.5rem; }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; }
dt { color: var(--muted); font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
dd { margin: 0; word-break: break-word; }
dd a { color: var(--teal); text-decoration: none; }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.button { display: inline-block; background: var(--teal); color: #fff; border-radius: .75rem; padding: .8rem 1.25rem; font-weight: 800; text-decoration: none; }
footer { margin-top: 3rem; color: var(--muted); font-size: .875rem; }
footer a { color: var(--teal); text-decoration: none; }

/*
 * The CardDAV setup walkthrough (docs/plans/carddav-profile.md).
 *
 * Its own block rather than reusing .card rows, because a numbered sequence
 * with a figure beside each step is a different shape from the key/value
 * cards the other public pages are made of.
 */
.steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.25rem; }
.steps > li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; }
.steps h2 { font: 800 1.0625rem/1.3 'Nunito', system-ui, sans-serif; margin: 0 0 .25rem; }
.steps p { margin: 0; color: var(--muted); font-size: .9375rem; }
.step-figure { flex: 0 0 auto; }
.note { margin-top: 2rem; }
.note p { margin: 0 0 .75rem; font-size: .9375rem; }
.note p:last-child { margin-bottom: 0; }
