/* Maddox Mechanic — media kit / rate card
   Local, system-font-only stylesheet. No images, fonts, or external dependencies.
   Print: US Letter, one page. Enable “Background graphics” in print settings. */

:root {
  color-scheme: light;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --ink: #172725;
  --muted: #586966;
  --faint: #7c8985;
  --line: #d9e0dc;
  --accent: #087669;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

.sheet {
  width: min(100%, 1050px);
  margin: 0 auto;
  padding: 29px 22px 25px;
  background: var(--surface);
}

.masthead { border-top: 5px solid var(--accent); }

.topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
}

.eyebrow, .edition, .category, .section-tag, .period,
.metric-label, .work-subtitle, .footer-note {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .075em;
  line-height: 1.35;
}

.eyebrow, .section-tag { color: var(--accent); }
.topline-divider { color: var(--faint); padding: 0 4px; }
.edition { color: var(--muted); white-space: nowrap; }
.field-inline { display: inline; }
.field { font-variant-numeric: tabular-nums lining-nums; }

.identity {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 0 25px;
  border-bottom: 1px solid var(--ink);
}

.category { color: var(--muted); letter-spacing: .13em; }

h1 {
  margin: 6px 0 9px;
  font-size: clamp(34px, 7.7vw, 66px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 820;
}

h1 span { color: var(--accent); }
.hero-description {
  max-width: 64ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.brand-logo { width: 94px; height: auto; object-fit: contain; flex: 0 0 auto; }

.section { margin-top: 26px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 5px 18px;
  margin-bottom: 13px;
}

.section-tag { margin-bottom: 4px; }

h2 {
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 750;
}

.period {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 560;
  letter-spacing: .045em;
  overflow-wrap: anywhere;
}
.period-separator { color: var(--accent); margin: 0 8px; }

.reach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
}

.metric {
  min-width: 0;
  padding: 15px 15px 14px;
  border-top: 1px solid var(--line);
}
.metric:nth-child(-n + 2) { border-top: 0; }
.metric:nth-child(even) { border-left: 1px solid var(--line); }
.metric-label { color: var(--muted); font-size: 10px; letter-spacing: .025em; }
.metric-value, .signal-value, .rate-value {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.metric-value { font-size: clamp(24px, 5vw, 32px); }
.metric-lead .metric-value { color: var(--accent); }

.compact-head { margin-bottom: 11px; }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.signal { min-width: 0; padding: 0 12px 0 0; }
.signal:not(:nth-child(2n + 1)) { border-left: 1px solid var(--line); padding-left: 12px; }
.signal-value { font-size: 21px; margin-top: 5px; }

.section-aside { color: var(--faint); font-size: 10px; line-height: 1.35; }

.portfolio-grid { display: grid; gap: 10px; }
.work-card {
  min-width: 0;
  min-height: 112px;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: var(--surface);
}
.work-subtitle { color: var(--accent); font-size: 9px; letter-spacing: .04em; }
.work-card h3 {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.work-description { margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.35; }
.copy-placeholder { color: var(--faint); }

.rate-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.rate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 1px;
}
.rate-copy { min-width: 0; }
.rate-copy h3 { font-size: 12px; font-weight: 720; line-height: 1.2; }
.rate-copy p { margin-top: 3px; font-size: 10px; color: var(--muted); }
.rate-value { flex: 0 1 auto; min-width: 34px; margin: 0; font-size: 21px; text-align: right; color: var(--accent); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 13px 20px;
  margin-top: 27px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.footer-tag { margin-bottom: 6px; }
.contact {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.footer-note { max-width: 260px; color: var(--faint); font-size: 9px; text-align: right; }

@media (min-width: 600px) {
  .sheet { padding: 34px 42px 31px; }
  .identity { padding: 35px 0 30px; }
  .reach-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric { border-top: 0; border-left: 1px solid var(--line); padding: 19px 14px 17px; }
  .metric:first-child { border-left: 0; }
  .metric:nth-child(even) { border-left: 1px solid var(--line); }
  .signal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .signal { padding: 0 12px; }
  .signal:first-child { padding-left: 0; }
  .signal:not(:first-child) { border-left: 1px solid var(--line); }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
}

@media (min-width: 840px) {
  .sheet { padding: 40px 58px 34px; }
  .section { margin-top: 27px; }
  .identity { padding-top: 38px; }
  .metric-value { font-size: 34px; }
  .signal-value { font-size: 23px; }
  .work-card { min-height: 132px; }
}

/* The print rendition is deliberately more compact than the browser layout.
   A single Letter page; no script is involved and all colors remain local CSS. */
@page { size: letter; margin: 0; }

@media print {
  html, body {
    width: 8.5in;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--paper) !important;
  }
  body, .sheet, .reach-grid, .work-card, .metric {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .sheet {
    width: 8.5in;
    max-width: none;
    min-height: 11in;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: .40in .49in .35in;
    background: var(--surface) !important;
  }
  .masthead { border-top-width: 4px; }
  .topline { padding-top: 9px; }
  .eyebrow, .edition, .category, .section-tag, .period,
  .metric-label, .work-subtitle, .footer-note { font-size: 8px; }
  .identity { padding: 22px 0 20px; }
  .category { font-size: 9px; }
  h1 { font-size: 46px; margin: 5px 0 8px; }
  .hero-description { font-size: 10.5px; max-width: 75ch; }
  .section { margin-top: 19px; break-inside: avoid; page-break-inside: avoid; }
  .section-head { margin-bottom: 9px; }
  .section-tag { margin-bottom: 3px; }
  h2 { font-size: 17px; }
  .period { font-size: 8px; }
  .reach-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric { border-top: 0; border-left: 1px solid var(--line); padding: 13px 12px 11px; }
  .metric:first-child { border-left: 0; }
  .metric-value { margin-top: 7px; font-size: 26px; }
  .metric-label { font-size: 8px; }
  .compact-head { margin-bottom: 8px; }
  .signal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 11px 0; }
  .signal { padding: 0 10px; }
  .signal:first-child { padding-left: 0; }
  .signal:not(:first-child) { border-left: 1px solid var(--line); }
  .signal-value { font-size: 18px; margin-top: 5px; }
  .section-aside { font-size: 8px; }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .work-card { min-height: 99px; padding: 11px 12px 10px; border-top-width: 3px; }
  .work-subtitle { font-size: 8px; }
  .work-card h3 { margin-top: 9px; font-size: 12px; }
  .work-description { margin-top: 7px; font-size: 9px; }
  .rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .rate-item { padding: 9px 1px; }
  .rate-copy h3 { font-size: 10px; }
  .rate-copy p { font-size: 8px; margin-top: 2px; }
  .rate-value { font-size: 18px; }
  .footer { margin-top: auto; padding-top: 12px; break-inside: avoid; page-break-inside: avoid; }
  .footer-tag { margin-bottom: 5px; }
  .contact { font-size: 12px; }
  .footer-note { font-size: 7px; }
}
