/* Shared by every page of smartwren.com: the home page and the 404 page at the root, and Serried's support and
   privacy-policy pages in English and French.
   System fonts only, light and dark, phone width. No scripts, images, fonts or requests. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1c1c1e;
  --muted: #4a4a52;
  --rule: #d5d5dc;
  --link: #0a4fb3;
  --ph-bg: #fff0b8;
  --ph-text: #3a2a00;
  --vf-bg: #ffd9d4;
  --vf-text: #4a0d05;
  --th-bg: #f2f2f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --text: #ececf0;
    --muted: #b9b9c2;
    --rule: #35353c;
    --link: #8ab8ff;
    --ph-bg: #4a3a00;
    --ph-text: #ffe9a8;
    --vf-bg: #5a1f17;
    --vf-text: #ffd9d4;
    --th-bg: #1d1d21;
  }
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 2rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

h1 { margin: 0 0 0.5rem; font-size: 1.75rem; line-height: 1.25; }
h2 { margin: 2.5rem 0 0.75rem; font-size: 1.3rem; line-height: 1.3; }
h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.6rem; }
li:last-child { margin-bottom: 0; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.effective { margin: 0 0 0.75rem; color: var(--muted); }
/* The link to the same page in the other language, above the title. */
.lang { margin: 0 0 1rem; text-align: right; font-size: 0.95rem; }

nav { margin: 1.5rem 0 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--rule); }
nav h2.navh { margin: 0 0 0.5rem; font-size: 1rem; }
nav ul { margin: 0; padding-left: 1.25rem; }
nav li { margin-bottom: 0.3rem; }

/* A value the owner must fill before the page is published: shown, never hidden. */
mark.ph, mark.vf {
  padding: 0 0.15em;
  border-radius: 0.15em;
  background: var(--ph-bg);
  color: var(--ph-text);
}
/* A claim not yet confirmed against the app: shown, never hidden, removed once confirmed. */
mark.vf { background: var(--vf-bg); color: var(--vf-text); }

/* smartwren.com's home: the name, one line and the way to Serried, nothing else. */
body.home main { padding-top: 18vh; }
body.home h1 { margin-bottom: 0.75rem; }
body.home p { margin-bottom: 0.5rem; color: var(--muted); }
body.home p a { font-weight: 600; }

/* Serried's page while the landing page is held (owner, 2026-12-02): the app icon, the name, the two words and
   the links the App Store listing needs. Same styles, fonts and light/dark values as every other page. */
body.coming-soon main { padding-top: 18vh; }
body.coming-soon img.app-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 0 1.25rem;
  border-radius: 20px;
}
body.coming-soon h1 { margin-bottom: 0.25rem; }
body.coming-soon p.soon { margin: 0 0 1.5rem; color: var(--muted); }
body.coming-soon ul.more { margin: 0; padding: 0; list-style: none; }
body.coming-soon ul.more li { margin-bottom: 0.4rem; }
body.coming-soon ul.more li:last-child { margin-bottom: 0; }

/* The policy's storage table: a table on wide screens, one block per row on a phone. */
table { width: 100%; margin: 0 0 1rem; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.5rem 0.6rem; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { background: var(--th-bg); }

@media (max-width: 36rem) {
  table, tbody, tr, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { margin: 0 0 1rem; border: 1px solid var(--rule); }
  td { border: 0; border-bottom: 1px solid var(--rule); }
  td:last-child { border-bottom: 0; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
}

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0 0 0.5rem; }
footer p:last-child { margin: 0; }
