/* MageMedic holding site. Brand: brand/MageMedic-Style-Guide.md.
   Layout: one narrow reading column; navy/white do the work, orange is the accent. */
:root {
  --bg: #FFFFFF;
  --surface: #F6F7F5;      /* Paper */
  --fg: #12233D;           /* Navy */
  --muted: #4A5568;        /* Slate */
  --accent: #C4501A;       /* MageMedic Orange: links, one highlight */
  --rule: #DFE3E8;

  --font-heading: "Space Grotesk", Arial, Helvetica, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12233D;
    --surface: #1A3050;
    --fg: #FFFFFF;
    --muted: #C3CCD8;
    --accent: #F28C4A;     /* Light orange: orange on navy only */
    --rule: #2B4366;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding-block: 3rem 4rem;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.logo .dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo .light { display: none; }
  .logo .dark { display: block; }
}

h1, h2 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 600; }

p, ul { margin: 0; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 36rem; }

section { display: flex; flex-direction: column; gap: 0.875rem; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* The one highlighted block: support deadlines */
.deadlines {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.deadline {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.deadline .version {
  font-family: var(--font-heading);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.deadline .when { color: var(--muted); }
.deadline .when strong { color: var(--fg); font-weight: 600; }
@media (max-width: 30rem) {
  .deadline { grid-template-columns: 1fr; gap: 0; }
}

ul.plain { padding-left: 1.25rem; display: grid; gap: 0.375rem; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.contact { font-family: var(--font-heading); font-weight: 600; font-size: 1.125rem; }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  display: grid;
  gap: 0.375rem;
}

@media (max-width: 30rem) {
  body { font-size: 16px; }
  .page { padding-block: 2rem 3rem; gap: 2rem; }
}
