/* Oakwyn site styles.
   Constraints: system fonts only, no external requests of any kind,
   readable on a phone, follows the reader's light/dark preference. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5b5852;
  --line: #e2ded5;
  --link: #7a4a12;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151a;
    --surface: #1e1d24;
    --text: #ecebe8;
    --muted: #a5a29b;
    --line: #33313a;
    --link: #e8b877;
  }
}

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

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

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  max-width: 34rem;
  margin: 0 auto;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

p {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

.lede {
  font-size: 1.1875rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration: none;
}

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

li {
  margin-bottom: 0.6rem;
}

hr {
  height: 0;
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* The policy table is wider than a phone. It scrolls inside its own box so
   the page body never scrolls sideways. */
.table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

table {
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

footer {
  max-width: 34rem;
  margin: 3rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  margin: 0 0 0.35rem;
}

@media (min-width: 40rem) {
  body {
    padding-top: 4.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }
}

/* One card per app. Built so a second card is a second .app-card and nothing
   else changes. */
.app-card {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.app-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.app-card p:last-child {
  margin-bottom: 0.4rem;
}
