/*
 * macrocraftfoods.com. The colour values are the app's own tokens (src/components/ui/tokens.ts, light and dark);
 * if the app's palette changes, change both. System fonts only: the site loads nothing from anywhere else.
 */
:root {
  color-scheme: light;
  --bg: #F5F6F8; --surface: #FFFFFF; --sunken: #EDEFF3; --border: #E2E5EA;
  --text: #151A21; --muted: #5A6470; --accent: #1A56C4; --accent-soft: #E3EEFF;
  --hero-from: #0B1B3D; --hero-to: #1A56C4;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0F1115; --surface: #181B21; --sunken: #12151A; --border: #2A2F37;
    --text: #F2F4F7; --muted: #AEB6C0; --accent: #7FA9FF; --accent-soft: #1C2B44;
    --hero-from: #050B18; --hero-to: #12306E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

header.site, footer.site, main > section, .doc { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { border-radius: 8px; }
header.site nav { display: flex; gap: 20px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
header.site nav a:hover { color: var(--text); }

/* home */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center;
  max-width: none !important; padding-block: 64px; color: #FFFFFF;
  background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
  padding-inline: max(20px, calc((100% - 1040px) / 2)) !important;
}
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #BFD2F5; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 18px; text-wrap: balance; }
.lede { font-size: 19px; color: #DCE6F8; max-width: 34em; margin: 0; }
.availability { display: inline-block; margin: 28px 0 0; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 600; font-size: 15px; }
.hero-shot { width: 100%; max-width: 340px; justify-self: center; border-radius: 36px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 64px 32px; }
.features h2, .private h2 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 8px; }
.features p { margin: 0; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 24px 64px; }
.shots img { border-radius: 28px; border: 1px solid var(--border); }

.private { padding-block: 40px 72px; }
.private ul { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.private li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; color: var(--muted); }
.private li strong { color: var(--text); }

/* documents */
.doc { max-width: 760px; padding-block: 32px 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 16px 0 20px; text-wrap: balance; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; text-wrap: balance; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; background: var(--sunken); padding: 1px 6px; border-radius: 5px; }
.table { overflow-x: auto; margin: 16px 0; }
.table table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); }
.table th { background: var(--sunken); }

footer.site { border-top: 1px solid var(--border); padding-block: 24px 40px; color: var(--muted); font-size: 14px; }
footer.site p { margin: 4px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 44px; gap: 36px; }
  .features, .private ul { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .shots img { border-radius: 14px; }
  header.site nav { gap: 14px; }
}
