:root {
  --cream: #fbf3e4;
  --cream-deep: #f6e4c0;
  --brown: #4a2814;
  --brown-soft: #6b4a33;
  --orange: #d46521;
  --line: #ead8b8;
  --display: "Fraunces", "Cooper Black", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--brown);
  font-size: 16px;
  line-height: 1.6;
}

header {
  border-bottom: 1px solid var(--line);
  background: var(--cream-deep);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header .logo {
  display: block;
  line-height: 0;
}

header .logo img {
  height: 40px;
  width: auto;
}

header nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

header nav a {
  color: var(--brown-soft);
  text-decoration: none;
}

header nav a:hover,
header nav a[aria-current="page"] {
  color: var(--orange);
}

.main {
  max-width: 640px;
  margin: 72px auto 0;
  padding: 0 32px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero .badge {
  width: 190px;
  height: 190px;
  flex-shrink: 0;
}

.main h1 {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 20px;
}

.main h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  scroll-margin-top: 24px;
}

.main h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 6px;
}

.main p {
  color: var(--brown-soft);
  font-size: 1rem;
  margin-bottom: 14px;
}

.main a {
  color: var(--orange);
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 14px;
}

.what-list {
  list-style: none;
  margin-bottom: 32px;
}

.what-list li {
  font-size: 0.95rem;
  color: var(--brown-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.what-list li:last-child {
  border-bottom: none;
}

.what-list li strong {
  display: block;
  color: var(--brown);
  font-weight: 600;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin-bottom: 24px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 16px 40px;
  font-size: 0.95rem;
  color: var(--brown-soft);
}

.steps li strong {
  color: var(--brown);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-list {
  list-style: none;
}

.link-list li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.link-list a {
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.link-list a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.cta {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 22px;
  background: var(--brown);
  color: var(--cream) !important;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.cta:hover {
  background: var(--orange);
}

.cta.secondary {
  background: transparent;
  color: var(--brown) !important;
  border: 1px solid var(--brown);
  margin-left: 8px;
}

.cta.secondary:hover {
  background: var(--cream-deep);
}

table.settings {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

table.settings th,
table.settings td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.settings th {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--cream-deep);
  padding: 1px 5px;
  border-radius: 4px;
}

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brown);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 8px 0 20px;
  background: var(--cream-deep);
}

.notice.warn {
  border-left-color: var(--orange);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* Highlight the section someone was linked to, e.g. /email#limited */
section:target {
  animation: flash 2s ease-out;
}

@keyframes flash {
  from { background: var(--cream-deep); }
  to { background: transparent; }
}

details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

details summary {
  color: var(--brown);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

details p {
  margin: 8px 0 0 !important;
  font-size: 0.95rem;
}

footer {
  max-width: 640px;
  margin: 60px auto 40px;
  padding: 0 32px;
  color: var(--brown-soft);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--brown-soft);
}

footer .stamp {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

@media (max-width: 520px) {
  .main {
    margin-top: 48px;
    padding: 0 20px;
  }

  header {
    padding: 12px 20px;
  }

  header .logo img {
    height: 32px;
  }

  .hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }

  .hero .badge {
    width: 130px;
    height: 130px;
  }

  .cta.secondary {
    margin: 10px 0 0;
  }
}
