/* Firstlight site. One stylesheet, system fonts, no external requests. */

:root {
  --night: #08070d;
  --night-raised: #110f18;
  --line: rgba(246, 238, 230, 0.12);
  --text: #f6eee6;
  --text-soft: rgba(246, 238, 230, 0.72);
  --text-faint: rgba(246, 238, 230, 0.5);
  --amber: #ffb25c;
  --ember: #ff7a3d;
  --sun-deep: #6e0a06;
  --sun-ember: #ee4a12;
  --sun-amber: #ff8c2e;
  --clock-red: #b3261e;

  --serif: ui-serif, "New York", Georgia, serif;
  --sans: ui-rounded, -apple-system, system-ui, sans-serif;

  --measure: 38rem;
  --wide: 60rem;
  --gutter: 16px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

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

p {
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  background: var(--night-raised);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Layout */

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

.prose {
  max-width: var(--measure);
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.005em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

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

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

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 8vh 0 24vh;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(140%, 760px);
  height: 75%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 100% at 50% 100%,
    rgba(255, 140, 46, 0.4) 0%,
    rgba(238, 74, 18, 0.28) 24%,
    rgba(110, 10, 6, 0.26) 50%,
    rgba(110, 10, 6, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
  animation: rise 6s ease-out both;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .lede {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 22.5%;
  box-shadow: 0 10px 40px rgba(238, 74, 18, 0.25);
}

.cta {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--ember));
  color: #1a0d05;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.price-note {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--text-faint);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 8%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Sections */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.hero + .section {
  border-top-color: rgba(255, 178, 92, 0.35);
}

.section p,
.section li {
  color: var(--text-soft);
}

.section strong {
  color: var(--text);
  font-weight: 600;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 760px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* Timeline of a morning */

.timeline {
  list-style: none;
  padding: 0 0 0 28px;
  margin: 2rem 0 0;
  position: relative;
  max-width: var(--measure);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    var(--sun-deep),
    var(--sun-ember) 35%,
    var(--sun-amber) 65%,
    #fff6ea
  );
}

.timeline li {
  position: relative;
  margin: 0 0 1.5rem;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline .when {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* Fold drawing */

.fold {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: auto;
}

/* Night screen sample */

.night-screen {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.night-screen span {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 300;
  color: var(--clock-red);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(4px, -3px); }
  66% { transform: translate(-3px, 2px); }
  100% { transform: translate(2px, 4px); }
}

/* Lists */

.plain-list {
  padding-left: 1.2em;
}

.plain-list li {
  margin-bottom: 0.45em;
}

.plain-list li::marker {
  color: var(--ember);
}

/* Pricing */

.tiers {
  display: grid;
  gap: 20px;
  margin-top: 2rem;
}

@media (min-width: 760px) {
  .tiers {
    grid-template-columns: 1fr 1fr;
  }
}

.tier {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.tier h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.tier .cost {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-faint);
  font-weight: 400;
}

.tier ul {
  margin-bottom: 0;
}

.aside-note {
  font-size: 0.95rem;
  color: var(--text-faint);
  margin-top: 1.25rem;
}

/* Callout */

.note {
  border-left: 3px solid var(--ember);
  padding: 4px 0 4px 18px;
  max-width: var(--measure);
}

/* Document pages (privacy, support) */

.doc {
  padding: 40px 0 80px;
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.doc h2 {
  font-size: 1.45rem;
  margin-top: 2.4em;
}

.doc p,
.doc li {
  color: var(--text-soft);
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.meta {
  color: var(--text-faint);
  font-size: 0.95rem;
}

/* FAQ */

.faq {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  color: var(--amber);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding: 0 0 12px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 0.92rem;
  color: var(--text-faint);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

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

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

.site-footer p {
  margin: 0;
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
