:root {
  --canvas-top: #fff9f4;
  --canvas-bottom: #ffe3d0;
  --surface: #ffffff;
  --surface-alt: #fbf1e8;
  --border: #f0e2d5;
  --ink: #1e1712;
  --ink-soft: #77695e;
  --ink-tertiary: #a3958a;
  --accent: #eb5a28;
  --accent-text: #a83c12;
  --accent-soft: #ffe8db;
  --mark: #2e7d6a;

  --radius: 24px;
  --radius-small: 14px;
  --column: 760px;

  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--canvas-top);
  background-image:
    radial-gradient(60% 42% at 82% 2%, rgba(255, 154, 98, 0.34), transparent 70%),
    radial-gradient(48% 36% at 6% 34%, rgba(255, 176, 128, 0.24), transparent 72%),
    radial-gradient(70% 44% at 50% 104%, rgba(255, 138, 82, 0.22), transparent 70%),
    linear-gradient(180deg, var(--canvas-top) 0%, #fff4ea 46%, var(--canvas-bottom) 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  padding: 36px 0 28px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(168, 60, 18, 0.18);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

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

/* Hero */

.hero {
  padding: 34px 0 40px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  max-width: 18ch;
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.lede {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

/* Cards */

.card {
  margin: 0 0 20px;
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(120, 74, 42, 0.07);
}

.card--quiet {
  background: var(--surface-alt);
  border-color: transparent;
  box-shadow: none;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 20px;
}

.tile {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  box-shadow: 0 12px 28px rgba(120, 74, 42, 0.06);
  text-decoration: none;
  color: var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(120, 74, 42, 0.1);
}

.tile .tile-title {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
}

.tile .tile-copy {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

/* Long-form pages */

.page {
  padding-bottom: 20px;
}

.page h1 {
  max-width: 22ch;
  font-size: clamp(32px, 6vw, 42px);
}

.updated {
  margin: 0 0 26px;
  color: var(--ink-tertiary);
  font-size: 14px;
}

.page article h2 {
  margin: 32px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.page article h2:first-child {
  margin-top: 0;
}

.page article h3 {
  margin: 24px 0 6px;
  font-size: 17px;
}

.page article p,
.page article li {
  color: var(--ink-soft);
}

.page article p {
  margin: 0 0 14px;
}

.page article ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.page article li {
  margin-bottom: 8px;
}

.page article strong {
  color: var(--ink);
}

.page article table {
  width: 100%;
  margin: 4px 0 18px;
  border-collapse: collapse;
  font-size: 15px;
}

.page article th,
.page article td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.page article th {
  color: var(--ink);
  font-weight: 600;
}

.page article td {
  color: var(--ink-soft);
}

.page article tr:last-child td {
  border-bottom: none;
}

/* FAQ */

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

details:last-of-type {
  border-bottom: none;
}

summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 600;
}

details[open] summary::after {
  content: "\2013";
}

details p {
  margin: 10px 0 2px;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  margin-top: 28px;
  padding: 28px 0 48px;
  border-top: 1px solid rgba(168, 60, 18, 0.12);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.contact-button {
  display: inline-block;
  margin-top: 6px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}

.contact-button:hover {
  background: #000;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-top: 26px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .hero {
    padding-top: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px 22px;
  }

  .site-footer nav {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }
}
