/* Fraunces (SIL Open Font License, see /fonts/OFL.txt), served from this site. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-soft.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-soft-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --text: #2b2433;
  --muted: #6b6273;
  --accent: #8a5a83;
  --rule: #e7e0d8;
  --surface: #f2ede5;
  --todo: #fdf0c4;
  --shadow: rgba(43, 36, 51, 0.16);
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --wide: 64rem;
  --measure: 40rem;
  --gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17141b;
    --text: #f1ecf3;
    --muted: #a99fb0;
    --accent: #d3a6cb;
    --rule: #2c2632;
    --surface: #221e27;
    --todo: #3d3418;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

picture,
img {
  display: block;
}

.site-header-inner,
main,
.footer-inner,
.footer-meta {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.1rem);
  line-height: 1.08;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 480;
  color: var(--accent);
}

h2 {
  margin: 3rem 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.2;
}

h3 {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

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

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  padding-top: 1.5rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font: 600 1.3rem/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

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

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

.site-nav a {
  text-decoration: none;
  opacity: 0.72;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  opacity: 1;
}

main {
  flex: 1;
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: 2rem;
}

/* Policy and support pages */
.prose {
  max-width: var(--measure);
}

.updated {
  font-size: 0.9rem;
  color: var(--muted);
}

.notice {
  margin: 1.5rem 0 2rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
}

.todo {
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: var(--todo);
  font-size: 0.9em;
}

/* App Store badge. Apple's artwork; keep it at least 40px tall. */
.store-badge img {
  width: auto;
  height: 48px;
}

/* Home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3rem;
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
}

.hero-copy {
  max-width: 36rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.25rem);
  line-height: 1.03;
}

.lede {
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.hero-art img {
  width: clamp(180px, 24vw, 256px);
  height: auto;
  filter: drop-shadow(0 24px 40px var(--shadow));
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}

.section h2 {
  margin-top: 0;
}

.section-head {
  max-width: 36rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  margin: 0;
  padding: 1.4rem;
  border-radius: 16px;
  background: var(--surface);
}

.step-time {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.steps h3 {
  margin: 0 0 0.4rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}

.split p {
  color: var(--muted);
}

/* Footer, laid out like trytesorin.com's: brand and links on the left, social
   links on the right, and the operator line below a rule. */
.site-footer {
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 3rem;
}

.footer-lockup {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: start;
  text-decoration: none;
}

.footer-lockup picture {
  flex: none;
}

.footer-lockup img {
  width: 64px;
  height: 64px;
}

.footer-wordmark {
  display: block;
  font: 600 2rem/1 var(--serif);
  letter-spacing: -0.015em;
}

.footer-links {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  opacity: 0.72;
}

.footer-links a:hover,
.footer-links a[aria-current] {
  opacity: 1;
}

.social-links {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links li {
  margin: 0;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.social-links svg {
  display: block;
  width: 24px;
  height: 24px;
}

.footer-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.4rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-meta p {
  margin: 0;
}

.footer-disclaimer {
  max-width: 40rem;
}

.footer-copyright {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    width: 112px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-lockup,
  .footer-links,
  .social-links {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .footer-links {
    margin-bottom: 1rem;
  }

  .footer-lockup img {
    width: 56px;
    height: 56px;
  }

  .footer-wordmark {
    font-size: 1.75rem;
  }

  .footer-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}
