/* DotToday site: neutral roles from the DotToday design system (one light theme). No external fonts or resources. */

:root {
  color-scheme: only light;

  --background: #faf4ed;
  --surface: #fffdfb;
  --surface-sunken: #f2eae0;
  --ink: #332a22;
  --ink-muted: #6a5f54;
  --line: #e4dcd2;
  --shadow-card: 0 1px 2px #3a2a1c12, 0 6px 18px #3a2a1c0f;

  --radius-sheet: 1.5rem;
  --radius-focus: 0.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 0 1rem;
}

.mark {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.lang {
  font-weight: 600;
}

.sheet {
  background: var(--surface);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.sheet-first {
  margin-top: 1.25rem;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

p,
ul,
ol {
  margin: 0 0 0.75rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.25rem;
}

.meta {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.lead {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--surface-sunken);
  border-radius: 1rem;
}

a {
  color: var(--ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a[href^="mailto:"] {
  hyphens: manual;
  -webkit-hyphens: manual;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--radius-focus);
}

.foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li + li {
  margin-top: 0;
}

.foot a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}

.toc {
  margin: 1.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.toc-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  columns: 2 14rem;
  column-gap: 1.5rem;
}

.toc li {
  break-inside: avoid;
}

.toc a {
  color: var(--ink-muted);
}

h2[id] {
  scroll-margin-top: 1rem;
}

.choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.choice section {
  padding: 1rem 1.25rem;
  background: var(--surface-sunken);
  border-radius: 1rem;
}

.choice h2 {
  margin-top: 0;
}

.choice ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 30rem) {
  .page {
    padding: 0 1rem 2rem;
  }

  .sheet {
    padding: 1.25rem 1rem;
  }
}

/* 200 % zoom on a phone leaves about 190 CSS px: keep text, not padding. */
@media (max-width: 20rem) {
  .page {
    padding: 0 0.5rem 1.5rem;
  }

  .sheet {
    padding: 1rem 0.75rem;
    border-radius: 1rem;
  }

  .lead,
  .choice section {
    padding: 0.75rem;
  }

  h1 {
    font-size: 1.375rem;
  }

  h2 {
    font-size: 1.125rem;
  }

  ul,
  ol {
    padding-left: 1.25rem;
  }
}
