/* Apoyü site: Banked Hearth palette. Plain CSS, no external fonts. */

:root {
  --bg-top: #1b0d2a;
  --bg-mid: #170e22;
  --bg-floor: #160d1c;
  --text: #f0ece3;
  --text-2: #a39a8e;
  --accent: #ff8a4a;
  --surface: rgba(255, 255, 255, 0.04);
  --hairline: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --gutter: 16px;
  --measure: 720px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg-mid);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-mid);
  background-image: linear-gradient(
    180deg,
    var(--bg-top) 0%,
    var(--bg-mid) 50%,
    var(--bg-floor) 100%
  );
  background-attachment: fixed;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--bg-top);
  padding: 6px 10px;
  z-index: 10;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  padding-top: 18px;
  padding-bottom: 14px;
}

.wordmark {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}

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

/* Draft banner */

.banner {
  margin: 20px 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 138, 74, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 138, 74, 0.08);
  color: var(--text);
  font-size: 15px;
}

/* Content */

main {
  padding-bottom: 48px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: 30px;
  margin: 28px 0 12px;
}

h2 {
  font-size: 22px;
  margin: 40px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

h4 {
  font-size: 16px;
  margin: 22px 0 6px;
  color: var(--text-2);
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

li > ul,
li > ol {
  margin-top: 6px;
}

strong {
  font-weight: 650;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1px 5px;
}

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

/* Tables scroll inside their own box, never the page */

.table-wrap {
  margin: 8px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
}

th {
  color: var(--text-2);
  font-weight: 600;
}

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

/* Table of contents */

.toc {
  margin: 16px 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc summary {
  cursor: pointer;
  color: var(--text-2);
  font-weight: 600;
}

.toc ol {
  margin: 10px 0 2px;
  font-size: 15px;
}

/* Nav items sit tight (after the generic li rule) */

.nav li {
  margin: 0;
}

/* Landing page */

.hero {
  padding: 28px 0 8px;
}

.hero h1 {
  font-size: 34px;
  margin: 8px 0 12px;
}

.lede {
  font-size: 19px;
  color: var(--text);
}

.card {
  margin: 20px 0;
  padding: 18px 18px 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 4px 0 16px;
}

.plan {
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.plan .price {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.plan .note {
  color: var(--text-2);
  font-size: 15px;
}

.links {
  list-style: none;
  padding: 0;
}

.links li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  margin: 0;
}

.links li:last-child {
  border-bottom: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 22px 0 36px;
  color: var(--text-2);
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 6px;
}

@media (min-width: 640px) {
  body {
    font-size: 17.5px;
  }

  h1 {
    font-size: 36px;
  }

  .hero h1 {
    font-size: 42px;
  }

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