/* Meet Your Day legal site — Quiet Editorial. No tracking. Local CSS only. */

:root {
  --bg: #f7f3ec;
  --bg-elevated: #fbf8f3;
  --surface: #fffdf9;
  --text: #2a2622;
  --text-secondary: #5f574f;
  --text-muted: #8a8278;
  --accent: #5e567f;
  --accent-subtle: #ede9f4;
  --divider: #e4ddd4;
  --outline: #d9d2c8;
  --destructive: #a85a52;
  --content-width: 48rem;
  --pad: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18151c;
    --bg-elevated: #1f1b24;
    --surface: #25212a;
    --text: #f3ede4;
    --text-secondary: #d2c9bc;
    --text-muted: #a89f93;
    --accent: #9e95c4;
    --accent-subtle: #2e2a36;
    --divider: #2c2832;
    --outline: #35313c;
    --destructive: #c4847c;
  }
}

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

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 10;
  padding: 0.5rem 0.85rem;
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header,
.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem var(--pad) 0;
}

.site-header a,
.site-footer a,
.legal-home a,
article a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-header a:hover,
.site-footer a:hover,
.legal-home a:hover,
article a:hover {
  text-decoration-thickness: 2px;
}

.wordmark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

.site-nav a + a {
  margin-left: 1rem;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 4.5rem;
}

.legal-home {
  padding-top: 3rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

h2 {
  margin: 2.75rem 0 0.85rem;
  padding-top: 0.35rem;
  font-size: 1.5rem;
}

h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.2rem;
}

.lede,
.meta {
  color: var(--text-secondary);
}

.meta {
  margin: 0 0 2.5rem;
  font-size: 0.9375rem;
}

p {
  margin: 0 0 1.1rem;
}

ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 2.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem 0.65rem 0;
  border-bottom: 1px solid var(--divider);
}

th {
  color: var(--text-secondary);
  font-weight: 500;
}

.notice {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem;
  background: var(--accent-subtle);
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
}

.request-button {
  display: inline-block;
  margin: 0.35rem 0 1.5rem;
  padding: 0.85rem 1.2rem;
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  border-radius: 0.28rem;
  font-weight: 500;
}

article .request-button,
.legal-home .request-button {
  color: var(--surface);
  text-decoration: none;
}

article .request-button:hover,
.legal-home .request-button:hover {
  text-decoration: none;
  filter: brightness(0.96);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

address {
  display: block;
  margin: 0 0 1.1rem;
  font-style: normal;
  line-height: 1.7;
}

.needs-confirmation {
  color: var(--destructive);
  font-weight: 500;
}

.site-footer {
  padding-bottom: 2.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  :root {
    --pad: 1.25rem;
  }

  body {
    font-size: 1.03125rem;
    line-height: 1.68;
  }

  main {
    padding-top: 1.75rem;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Support page: FAQ accordions */
details {
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  padding: 0.75rem 0;
}
details:first-of-type {
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
}
details summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
details[open] summary {
  margin-bottom: 0.5rem;
}

/* Nav now has 4 links: let it wrap on small screens */
.site-nav {
  flex-wrap: wrap;
  row-gap: 0.25rem;
}