/* comfyux.cc: warm paper, large letters, nothing in the way.
   Colours are Comfy Home's own (its cream and warm-black families). Every
   colour below is a token in the two blocks at the top; the rest of the file
   names tokens only. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal-82a5516b3709a765b50c69ca1d930e8b.woff2?vsn=d") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal-833b135521b5cdf2b636e2ed963cd863.woff2?vsn=d") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #fbf8f3;
  --fg: #22201c;
  --soft: #6c665c;
  --line: #e6dfd3;
  --card: #ffffff;
  --focus: #22201c;
  --hover: rgba(34, 32, 28, 0.08);
  --button-bg: #22201c;
  --button-fg: #fbf8f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191714;
    --fg: #efe9df;
    --soft: #a59d90;
    --line: #3a352e;
    --card: #221f1b;
    --focus: #efe9df;
    --hover: rgba(239, 233, 223, 0.1);
    --button-bg: #efe9df;
    --button-fg: #191714;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--fg);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

a:hover {
  background: var(--hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--button-bg);
  color: var(--button-fg);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--line);
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding-block: 0.4rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

nav a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding-inline: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}

nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

nav .lang-switch {
  border: 2px solid var(--line);
}

main {
  flex: 1;
  padding-block: 2rem 3rem;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.lead {
  font-size: 1.25rem;
}

.muted,
.card-text {
  color: var(--soft);
}

ul {
  padding-inline-start: 1.4rem;
}

li {
  margin-block: 0.4rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  text-decoration: none;
}

.card:hover {
  background: var(--card);
  border-color: var(--fg);
}

.card img {
  flex: none;
  border-radius: 14px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-cta {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.button {
  display: inline-block;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--button-bg);
  opacity: 0.9;
}

.button-pending {
  background: transparent;
  color: var(--fg);
  border: 2px dashed var(--soft);
}

.store {
  margin-block: 1.5rem;
}

figure {
  margin: 0 0 1.5rem;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* The privacy policy: rendered Markdown, so only element selectors. */
.policy h1 {
  font-size: 2rem;
}

.policy ul {
  padding-inline-start: 1.4rem;
}

.site-footer {
  padding-block: 1.5rem 2rem;
  border-block-start: 1px solid var(--line);
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.9rem;
  }

  .card {
    flex-direction: column;
    align-items: flex-start;
  }
}
