/* Beerable web pages: landing, terms, privacy, account deletion.
   Phone first, system fonts, no external assets. Light and dark follow
   the device setting. */

:root {
  color-scheme: light dark;
  --bg: #fff8ec;
  --surface: #ffffff;
  --text: #2b1a0e;
  --muted: #6b5442;
  --line: #ead9bf;
  --link: #8a4600;
  --accent: #f2a900;
  --on-accent: #2b1a0e;
  --note-bg: #fdebc6;
  --note-text: #573000;
  --focus: #b35c00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b120b;
    --surface: #271a10;
    --text: #f5eadc;
    --muted: #c7b29a;
    --line: #47331f;
    --link: #ffc14d;
    --accent: #f2a900;
    --on-accent: #2b1a0e;
    --note-bg: #3a2610;
    --note-text: #ffd892;
    --focus: #ffc14d;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Header and footer */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
}

footer.site {
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.site li + li {
  margin-top: 0;
}

footer.site a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

/* Text */

main {
  padding-bottom: 2.5rem;
}

h1 {
  margin: 1rem 0 0.25rem;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

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

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

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

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

.draft {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--note-bg);
  color: var(--note-text);
  font-size: 0.9375rem;
}

.draft strong {
  display: block;
}

/* A gap the owner fills in before launch. */
.todo {
  padding: 0 0.25em;
  border-radius: 0.25em;
  background: var(--note-bg);
  color: var(--note-text);
}

/* Landing */

body.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body.landing header.site {
  justify-content: flex-end;
  width: 100%;
}

body.landing main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

body.landing footer.site {
  width: 100%;
}

.mark {
  width: 88px;
  height: 88px;
}

body.landing h1 {
  margin-top: 1.25rem;
  font-size: 2.75rem;
}

.lead {
  max-width: 26rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

/* Stands in for Apple's badge until the app is live. */
.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 52px;
  margin: 0.5rem 0 1.25rem;
  padding: 0.625rem 1.25rem;
  border: 2px dashed var(--muted);
  border-radius: 0.75rem;
  font-weight: 600;
}

.choose {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

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

.choose a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
}

/* Form */

.card {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

label,
legend {
  display: block;
  margin-bottom: 0.375rem;
  padding: 0;
  font-weight: 600;
}

input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 0.625rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

fieldset {
  min-width: 0;
  margin: 1.25rem 0;
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  margin: 0;
  font-weight: 400;
}

.choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--link);
}

.hint {
  margin: 0.375rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

button {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
