/* ==========================================================
   erinhorner.com — one stylesheet for the whole site.
   Typography: BoogyBrutPoster (display), Dinamit (hero accents),
   GT Standard (everything else).
   ========================================================== */

/* Custom fonts, all local in assets/fonts/. woff2 first, otf fallback. */
@font-face {
  font-family: "GT Standard";
  src: url("assets/fonts/GT-Standard-L-Standard-Regular.woff2") format("woff2"),
       url("assets/fonts/GT-Standard-L-Standard-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Standard";
  src: url("assets/fonts/GT-Standard-L-Standard-Medium.woff2") format("woff2"),
       url("assets/fonts/GT-Standard-L-Standard-Medium.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Standard";
  src: url("assets/fonts/GT-Standard-L-Standard-Bold.woff2") format("woff2"),
       url("assets/fonts/GT-Standard-L-Standard-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BoogyBrutPoster-White";
  src: url("assets/fonts/BoogyBrutPoster-White.woff2") format("woff2"),
       url("assets/fonts/BoogyBrutPoster-White.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Dinamit-Regular";
  src: url("assets/fonts/Dinamit-Regular.woff2") format("woff2"),
       url("assets/fonts/Dinamit-Regular.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Dinamit-Thin";
  src: url("assets/fonts/Dinamit-Thin.woff2") format("woff2"),
       url("assets/fonts/Dinamit-Thin.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #292a2c;           /* old site text color */
  --muted: #77777a;
  --line: #e6e6e6;

  --font-display: "BoogyBrutPoster-White", Georgia, serif;
  --font-din: "Dinamit-Regular", "Helvetica Neue", sans-serif;
  --font-din-thin: "Dinamit-Thin", "Helvetica Neue", sans-serif;
  --font-body: "GT Standard", "Open Sans", Arial, sans-serif;
  --font-label: "GT Standard", "Open Sans", Arial, sans-serif;

  --max: 1360px;
  --pad: clamp(20px, 5vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.67;             /* 18/30, as on the old site */
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }

::selection { background: var(--ink); color: var(--bg); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- header ---------- */

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 32px;
  padding-bottom: 32px;
}

.logo, nav a {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

nav { display: flex; gap: 32px; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(40px, 9vh, 110px); padding-bottom: clamp(48px, 10vh, 120px); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.16;
  letter-spacing: 0;
  max-width: 24ch;
}

@media (max-width: 640px) { .br-desktop { display: none; } }

.hero h1 .din { font-family: var(--font-din); font-size: 0.92em; }
.hero h1 .din-thin { font-family: var(--font-din-thin); font-size: 0.95em; }

.hero-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(48px, 8vw, 120px);
  margin-top: 40px;
}

.hero-lists ul { list-style: none; }

.hero-lists li {
  position: relative;
  padding-left: 28px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 16px;
}

/* thin line dash instead of a bullet dot */
.hero-lists li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 16px;
  height: 1px;
  background: var(--ink);
}

/* nested list under "Prev:" */
.hero-lists li ul { margin-top: 4px; }

.hero-lists li li {
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
}

.hero-lists li li::before { width: 10px; background: var(--muted); }

/* ---------- sections ---------- */

section { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); }

.kicker {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 36px;
}

/* ---------- selected work ---------- */

.project-list { display: grid; gap: 44px; grid-template-columns: 1fr; }

.project a.card { display: block; }
.project a.card:hover { opacity: 1; }

.project .thumb {
  aspect-ratio: 16 / 9;
  background: #f2f2f2;
  overflow: hidden;
  border-radius: 4px;
}

.project .thumb img,
.project .thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: filter 0.3s ease;
}

.project a.card:hover .thumb img,
.project a.card:hover .thumb video { filter: brightness(0.85); }

.project h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin-top: 14px;
}

.project .meta {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

@media (min-width: 720px) {
  .project-list { grid-template-columns: 1fr 1fr; gap: 48px 36px; }
}

/* ---------- archive ---------- */

.archive-list {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 56px;
}

.archive-row {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.archive-row .thumb {
  width: 168px; height: 94px;
  object-fit: cover; display: block;
  border-radius: 4px;
  transition: filter 0.3s ease;
}

.archive-row .name { font-family: var(--font-display); font-size: 20px; }
.archive-row .what { font-family: var(--font-label); font-size: 13px; color: var(--muted); text-align: right; }

@media (min-width: 720px) {
  .archive-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .archive-row { grid-template-columns: 120px 1fr; gap: 2px 16px; }
  .archive-row .thumb { width: 120px; height: 68px; grid-row: 1 / 3; }
  .archive-row .name { align-self: end; line-height: 1.3; }
  .archive-row .what { text-align: left; align-self: start; }
}

/* ---------- about: portrait | bio | experience ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.about-grid .portrait { margin-bottom: 0; }
.about-grid .bio { max-width: 58ch; }
.about-grid .bio p + p { margin-top: 16px; }

.about-grid .bio a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
}

.facts h4 {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.facts ul { list-style: none; }
.facts li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span { color: var(--muted); }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 300px 1fr 320px; gap: clamp(40px, 5vw, 72px); }
}

@media (min-width: 640px) and (max-width: 899px) {
  .about-grid { grid-template-columns: 260px 1fr; }
  .about-grid .facts { grid-column: 1 / -1; }
}

/* ---------- contact / footer ---------- */

.contact { padding-top: 80px; padding-bottom: 48px; }

.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.18;
  max-width: 22ch;
}

.contact h2 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 56px;
  padding-bottom: 36px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

footer .social { display: flex; gap: 24px; }

/* ---------- portrait ---------- */

.portrait {
  width: 100%;
  max-width: 340px;
  display: block;
  margin-bottom: 36px;
  border-radius: 4px;
}

/* ---------- scroll reveals (added by script.js) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- case study pages ---------- */

.case-hero { padding-top: clamp(36px, 7vh, 80px); padding-bottom: 36px; }

.case-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.12;
}

.case-hero .meta {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

.case-body { max-width: 62ch; padding-bottom: 28px; }
.case-body p + p { margin-top: 16px; }
.case-body a { border-bottom: 1px solid var(--ink); }

.case-images { display: grid; gap: 28px; padding-top: 12px; padding-bottom: 56px; }
.case-images img, .case-images video { width: 100%; display: block; border-radius: 4px; }
.case-images .caption {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -18px;
}

/* ---------- archive easter-egg pages ---------- */

.case-credits {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.case-credits h4 {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.case-credits ul { list-style: none; }

.case-credits li {
  font-size: 14px;
  color: var(--muted);
  padding: 3px 0;
}

.back-link {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 64px;
}

/* clickable archive rows */
a.archive-row { color: inherit; }
a.archive-row:hover { opacity: 1; }
a.archive-row:hover .thumb { filter: brightness(0.85); }

