/* Better Recipes shared site styles. No JS, no external assets.
   Derived from the app's Kitchen design system: Basil accent color,
   system-semantic surfaces, 12px corner radius, SF type ramp. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;                    /* systemBackground */
  --surface: #f2f2f7;               /* secondarySystemBackground */
  --ink: #000000;                   /* label */
  --muted: rgba(60, 60, 67, 0.6);   /* secondaryLabel */
  --line: #c6c6c8;                  /* separator */
  --accent: #2e6b34;                /* AccentColor (Basil) */
  --accent-contrast: #ffffff;       /* text on a solid colored fill */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --ink: #ffffff;
    --muted: rgba(235, 235, 245, 0.6);
    --line: #38383a;
    --accent: #3a8545;
    --accent-contrast: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;            /* body */
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.site-header,
main,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  padding-top: 20px;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;            /* headline */
  font-weight: 600;
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: 34px;            /* large title */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
}

h2 {
  font-size: 20px;            /* title3 */
  font-weight: 600;
  margin: 24px 0 8px;
}

h3 {
  font-size: 17px;            /* headline */
  font-weight: 600;
  margin: 20px 0 4px;
}

p,
ul,
ol {
  margin: 8px 0;
}

li {
  margin: 4px 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.meta {
  color: var(--muted);
  font-size: 15px;            /* subheadline */
}

/* Flat info panel: the app's "outlined" surface (hairline border, no fill). */
.notice {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 20px 0;
}

/* The app's primary button: accent fill, 12px corners, subheadline weight. */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: transform 0.12s ease-in-out, opacity 0.12s ease-in-out;
  }
  .button:active {
    transform: scale(0.97);
    opacity: 0.85;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 13px;            /* footnote */
}

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