/* MagVin Media LLC — site styles
   Written by Claude (claude.ai web chat), 2026-10-22.
   Layout: one left-aligned reading column; the only flourish is a row of
   outline frames drawn at the real aspect ratios of social video (9:16, 4:5, 16:9). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f6f3;
  --ink: #141b18;
  --muted: #56625c;
  --line: #d3d9d5;
  --field: #ffffff;
  --field-line: #7b8781;
  --accent: #245f4e;
  --on-accent: #ffffff;
  --error: #a3271f;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.4rem, 6vw + 1rem, 3.75rem);

  --measure: 38rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111614;
    --ink: #e5eae7;
    --muted: #9aa6a0;
    --line: #2b3430;
    --field: #171e1b;
    --field-line: #6c7873;
    --accent: #86c4af;
    --on-accent: #0d1311;
    --error: #f0958c;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * 1.5rem);
  margin-inline: auto;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

/* Skip link */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { top: 1rem; }

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

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.75rem 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Main */
main { flex: 1; }

main .wrap {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(3rem, 9vw, 6rem) 4rem;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }

p { margin: 0; max-width: 34em; }

.lede { font-size: var(--step-1); line-height: 1.5; }

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

/* Frames: drawn at true aspect ratios */
.frames {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  margin-block: 0.5rem 0.75rem;
}
.frame {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.frame--vertical { height: 7.5rem; aspect-ratio: 9 / 16; border-color: var(--accent); color: var(--accent); }
.frame--portrait { height: 5.25rem; aspect-ratio: 4 / 5; }
.frame--wide     { height: 4.2rem;  aspect-ratio: 16 / 9; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 var(--step-0) / 1 var(--body);
  padding: 0.95rem 1.4rem;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }

/* Form */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 32rem;
  margin-top: 0.5rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--field-line);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline-offset: 0;
}
.field textarea { min-height: 10rem; resize: vertical; }
.hint { font-size: var(--step--1); color: var(--muted); }

/* Honeypot: hidden from people and screen readers, visible to naive bots */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.note {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 32rem;
}
.note h2 { font-size: var(--step-0); font-family: var(--body); letter-spacing: 0; margin-bottom: 0.35rem; color: var(--ink); }

.alert { color: var(--error); font-weight: 600; }

a { color: var(--accent); text-underline-offset: 0.18em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem 2.25rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.site-footer address { font-style: normal; line-height: 1.55; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
