@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/source-serif-4-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/source-serif-4-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/source-serif-4-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --surface: #f3eee6;
  --text: #211d19;
  --text-2: #6b6257;
  --border: #e2dacd;
  --accent: #2c4a73;
  --focus: #2c4a73;
  --icon-ring: rgba(33, 29, 25, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211f1c;
    --surface: #2b2823;
    --text: #efe9df;
    --text-2: #b4aa9c;
    --border: #3e392f;
    --accent: #a9c3e8;
    --focus: #a9c3e8;
    --icon-ring: rgba(239, 233, 223, 0.2);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 120ms linear, text-decoration-color 120ms linear;
}

a:focus,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.page {
  width: min(100%, 768px);
  margin-inline: auto;
  padding-inline: 24px;
}

.masthead {
  padding-top: 48px;
  text-align: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  font-variant-caps: all-small-caps;
  text-decoration: none;
}

.masthead-rule,
.section-rule,
.footer-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--border);
}

.masthead nav,
.footer-nav,
.policy-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.masthead nav a,
.footer-nav a,
.policy-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.masthead nav a:not(:last-child)::after,
.footer-nav a:not(:last-child)::after,
.policy-actions a:not(:last-child)::after,
.entry-links a:not(:last-child)::after {
  margin-left: 16px;
  color: var(--text-2);
  content: "·";
  text-decoration: none;
}

.title-block {
  padding-block: 64px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-variant-caps: all-small-caps;
}

h1 {
  margin: 0 0 16px;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.title-sub {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  text-wrap: balance;
}

section {
  scroll-margin-top: 16px;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.catalog-entry {
  display: flex;
  gap: 24px;
  margin: 0;
  padding-block: 32px;
  border-bottom: 1px solid var(--border);
  transition: background-color 120ms linear;
}

.icon-frame {
  position: relative;
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 22.37%;
}

.icon-frame::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--icon-ring);
  content: "";
  pointer-events: none;
}

.icon-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-copy {
  min-width: 0;
}

h3,
.entry-name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}

.entry-subtitle {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.45;
}

.entry-meta {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  font-variant-caps: all-small-caps;
  font-variant-numeric: oldstyle-nums;
}

.store-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  font-variant-caps: all-small-caps;
}

.catalog-entry:hover,
.catalog-entry:focus-within {
  background: var(--surface);
}

.catalog-entry:hover h3,
.catalog-entry:focus-within h3 {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prose-section {
  padding-top: 80px;
}

.prose-section .section-rule {
  margin-bottom: 24px;
}

.prose-section p {
  max-width: 34rem;
  margin: 0;
}

.prose-section p + p {
  margin-top: 16px;
}

.studio-copy p:first-child::first-letter {
  float: left;
  padding: 0.08em 0.08em 0 0;
  font-size: 3.4em;
  font-weight: 600;
  line-height: 0.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
}

.support-contact {
  padding-bottom: 64px;
}

.support-contact .section-rule,
.support-list > .section-rule {
  margin-bottom: 24px;
}

.support-contact p {
  max-width: 34rem;
  margin: 0;
}

.support-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
  transition: background-color 120ms linear;
}

.support-entry:hover,
.support-entry:focus-within {
  background: var(--surface);
}

.support-entry .icon-frame {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.support-entry h2 {
  margin: 0;
  font-size: 1.375rem;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.entry-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  font-size: 0.875rem;
}

.policy-actions {
  margin-top: 16px;
}

.draft-banner {
  margin: 32px 0 0;
  border: 2px solid var(--accent);
  padding: 16px 24px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

.policy-body {
  padding-bottom: 16px;
}

.policy-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.policy-body p,
.policy-body ul {
  max-width: 34rem;
}

.policy-body p {
  margin: 0;
}

.policy-body p + p,
.policy-body ul + p,
.policy-body p + ul {
  margin-top: 16px;
}

.policy-body ul {
  margin-bottom: 0;
  padding-left: 1.25em;
}

.policy-body li + li {
  margin-top: 8px;
}

.policy-body code {
  padding: 0.08em 0.24em;
  background: var(--surface);
  font-size: 0.875em;
}

.policy-body a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

footer {
  padding-block: 80px 48px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-variant-caps: all-small-caps;
}

footer .footer-rule {
  margin-bottom: 32px;
}

footer p {
  margin: 0;
}

.footer-nav {
  margin-top: 8px;
}

@media (max-width: 639px) {
  h1 {
    font-size: 1.75rem;
  }

  .catalog-entry {
    gap: 24px;
  }

  .catalog-entry .icon-frame {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .support-entry {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .entry-links {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .catalog-entry,
  .support-entry {
    transition-duration: 0.01ms;
  }
}
