/* Base reset: the Claude artifact host injected these rules around the original page.
   Kept so the export renders identically. The page styles below override most of them. */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#faf9f5;color:#141413}
img{max-width:100%}
[hidden]:not([hidden=until-found i]){display:none!important}

/* ---------- Wild Card page styles (verbatim from the original) ---------- */
  :root {
    color-scheme: dark;
    --ground: #140e0b;
    --surface: #1e1511;
    --line: #3a2a21;
    --ivory: #efe8dc;
    --muted: #a8998a;
    --gold: #c99a3b;
    --mahogany: #7a3420;
    --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
    --display-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
    --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
    --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --gutter: clamp(16px, 4vw, 56px);
  }
  * { box-sizing: border-box; }
  html { background: var(--ground); }
  body {
    background: var(--ground);
    color: var(--ivory);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    padding-inline: var(--gutter);
    padding-block: 0 48px;
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 1180px; margin-inline: auto; }
  img { display: block; max-width: 100%; height: auto; }
  .label {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .time { color: var(--gold); font-variant-numeric: tabular-nums; }

  /* ---------- Hero ---------- */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: end;
    padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px);
    border-bottom: 1px solid var(--line);
  }
  .hero-text { display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
  .hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(64px, 11vw, 148px);
    line-height: 0.88;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
  }
  .hero h1 em { font-style: italic; color: var(--gold); }
  .lede {
    font-family: var(--display);
    font-size: clamp(20px, 2.1vw, 25px);
    line-height: 1.4;
    max-width: 30ch;
    margin: 0;
    color: var(--ivory);
  }
  .meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 32px;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    max-width: 460px;
  }
  .meta div { display: flex; flex-direction: column; gap: 2px; }
  .meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .meta dd { margin: 0; font-size: 15px; }
  .cover { margin: 0; position: relative; }
  .cover img {
    width: 100%;
    aspect-ratio: 9 / 13;
    object-fit: cover;
    object-position: 50% 45%;
  }
  .cover figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }

  /* ---------- Contact sheet ---------- */
  .sheet { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
  .sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
  .sheet-head h2, .section-title {
    font-family: var(--display-sc);
    font-weight: 400;
    font-size: clamp(26px, 3vw, 34px);
    margin: 0;
    letter-spacing: 0.02em;
  }
  .strip {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
  .strip a { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
  .strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; opacity: 0.82; transition: opacity .25s ease; }
  .strip a:hover img, .strip a:focus-visible img { opacity: 1; }
  .strip a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
  .strip .label { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; }
  .timeline {
    position: relative;
    height: 22px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
  }
  .timeline span {
    position: absolute; top: -4px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold); transform: translateX(-50%);
  }
  .timeline-ends { display: flex; justify-content: space-between; }

  /* ---------- Frames ---------- */
  .frames { display: flex; flex-direction: column; }
  .frame {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    padding-block: clamp(40px, 6vw, 80px);
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 24px;
  }
  .frame:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .frame:nth-child(even) .frame-img { order: 2; }
  .frame-img { margin: 0; justify-self: center; width: min(100%, 460px); }
  .frame-img button {
    all: unset; cursor: zoom-in; display: block; width: 100%;
  }
  .frame-img button:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
  .frame-img img { width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
  .frame-text { display: flex; flex-direction: column; gap: 18px; max-width: 42ch; }
  .frame-text .kicker { display: flex; gap: 14px; align-items: baseline; }
  .frame-text h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1;
    margin: 0;
    text-wrap: balance;
  }
  .frame-text p { margin: 0; color: #d9d0c3; }
  .exposure {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 13px; color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .exposure b { font-weight: 500; color: var(--ivory); }

  /* ---------- Approach ---------- */
  .approach {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(24px, 5vw, 72px);
    padding-block: clamp(48px, 7vw, 88px);
    border-bottom: 1px solid var(--line);
  }
  .approach-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .approach-body h4 { font-family: var(--display); font-weight: 400; font-style: italic; font-size: 22px; margin: 0 0 8px; color: var(--gold); }
  .approach-body p { margin: 0; color: #d9d0c3; font-size: 15px; }
  .approach .intro { margin: 14px 0 0; color: var(--muted); max-width: 32ch; }

  footer {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 28px;
  }

  /* ---------- Lightbox ---------- */
  dialog {
    border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
    width: 100vw; height: 100vh; margin: 0;
  }
  dialog::backdrop { background: rgba(10, 7, 5, .94); }
  dialog[open] { display: flex; align-items: center; justify-content: center; }
  dialog img { max-height: 92vh; max-width: 92vw; width: auto; }
  dialog .close {
    position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px;
    background: transparent; color: var(--ivory); border: 1px solid var(--line);
    font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    padding: 8px 12px; cursor: pointer;
  }
  dialog .close:focus-visible { outline: 1px solid var(--gold); }

  @media (max-width: 860px) {
    .hero, .approach { grid-template-columns: minmax(0, 1fr); }
    .cover { order: -1; }
    .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
    .timeline, .timeline-ends { display: none; }
    .frame, .frame:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
    .frame:nth-child(even) .frame-img { order: 0; }
    .approach-body { grid-template-columns: minmax(0, 1fr); }
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
