/* The public site at ownandchill.com (D-43 amendment of 2026-11-27, D-54): one shared stylesheet, the app's light palette
   (D-48 as amended 2026-11-30, app/src/core/theme/globals.css; tools/site/site.test.ts checks they match), light
   only whatever the device's setting (D-54), and the app's self-hosted Manrope (byte copies of app/src/core/theme/fonts/,
   SIL OFL, fonts/OFL-Manrope.txt). Nothing is imported or loaded from elsewhere: the CSP allows styles, images and
   fonts from this origin only (site/public/_headers). The homepage adds home.css after this file. */

/* latin-ext */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #242321;
  --heading: #242321;
  --muted-foreground: #6b6964;
  --primary: #76583f;
  --primary-hover: #624b39;
  --primary-foreground: #fffaf3;
  --button: #624b39;
  --button-hover: #523e2f;
  --button-foreground: #ffffff;
  --sunken: #f5f4f2;
  --accent: #f0eeeb;
  --border: #e9e7e3;
  --border-strong: #dddad5;
  --ring: #76583f;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 42rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.3rem;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.075rem;
}

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

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

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

a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  color: var(--heading);
}

.lede {
  color: var(--muted-foreground);
  font-size: 1.15rem;
}

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

.points {
  list-style: none;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--sunken);
}

/* The app's pill buttons (D-48 as amended 2026-11-30): --button fills the primary one, the secondary one is bordered.
   At least 44px tall, so they are easy to tap. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-foreground);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--button-hover);
  color: var(--button-foreground);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--background);
  color: var(--foreground);
}

.button-secondary:hover {
  background: var(--sunken);
  color: var(--foreground);
}

.button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 999px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

@media (min-width: 48rem) {
  .page {
    padding: 3rem 1.5rem;
  }

  h1 {
    font-size: 2.4rem;
  }
}

/* How-to pages (site/public/how-to/): numbered steps, each with a drawing or screenshot beside it on wide screens
   and below it on phones. The images are local files (img-src 'self'). */
.step {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.step h2 {
  margin-top: 0;
}

.step-image {
  display: block;
  width: 100%;
  max-width: 13rem;
  height: auto;
  margin: 0 auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.shot {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

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

.guides a {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (min-width: 48rem) {
  .step {
    grid-template-columns: minmax(0, 1fr) 13rem;
    gap: 2rem;
    align-items: start;
  }

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

  .shot {
    max-width: 100%;
  }
}
