/* Portfolio layer on top of the Fewer theme assets.
   This repo is originally a WordPress theme; these styles provide the missing
   CSS variables + font faces so the theme's `style.css` can be reused for a
   standalone static site on Cloudflare Pages. */

:root {
  /* Palette (from `theme.json`) */
  --wp--preset--color--primary: #000000;
  --wp--preset--color--secondary: #767676;
  --wp--preset--color--foreground: #000000;
  --wp--preset--color--background: #f5f5f5;
  --wp--preset--color--tertiary: #e6e6e6;

  /* Typography (from `theme.json`) */
  --wp--preset--font-family--system-font: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  --wp--preset--font-family--epilogue-local: "Epilogue Local",
    var(--wp--preset--font-family--system-font);

  --wp--preset--font-size--small: 1rem;
  --wp--preset--font-size--medium: 1.125rem;
  --wp--preset--font-size--large: 1.75rem;
  --wp--preset--font-size--x-large: 3rem;

  /* Spacing (approx; WP normally generates these from presets) */
  --wp--preset--spacing--30: 0.75rem;
  --wp--preset--spacing--40: 1rem;
  --wp--preset--spacing--50: 1.5rem;
  --wp--preset--spacing--60: 2rem;
  --wp--preset--spacing--70: 3rem;
  --wp--preset--spacing--80: 4rem;

  /* Theme defaults (mirrors `theme.json` styles.typography) */
  color-scheme: light;
}

@font-face {
  font-family: "Epilogue Local";
  src: url("/assets/fonts/epilogue_300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Epilogue Local";
  src: url("/assets/fonts/epilogue_300italic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Epilogue Local";
  src: url("/assets/fonts/epilogue_500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Epilogue Local";
  src: url("/assets/fonts/epilogue_500italic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

html {
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
}

body {
  margin: 0;
  font-family: var(--wp--preset--font-family--epilogue-local);
  font-size: 1.38rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Email links should match site text styling */
a[href^="mailto:"] {
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
}
a[href^="mailto:"]:hover {
  text-decoration: underline;
}

/* Simple layout primitives (kept tiny; main styling stays in `style.css`) */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--wp--preset--spacing--50);
}

.masthead {
  border-bottom: 1px solid var(--wp--preset--color--primary);
  background: var(--wp--preset--color--background);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--50);
  padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
.brand {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.brand a {
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: var(--wp--preset--spacing--50);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: inherit;
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline;
}

/* Mobile-only: match nav link size to brand size */
@media (max-width: 640px) {
  .nav {
    font-size: var(--wp--preset--font-size--medium);
  }
}

.hero {
  padding: var(--wp--preset--spacing--80) 0;
}
.hero h1 {
  font-size: var(--wp--preset--font-size--x-large);
  line-height: 1.3;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 var(--wp--preset--spacing--40);
}
.lede {
  color: var(--wp--preset--color--secondary);
  max-width: 52ch;
  margin: 0;
}

.section {
  padding: var(--wp--preset--spacing--70) 0;
  border-top: 1px solid var(--wp--preset--color--primary);
}
.section h2 {
  font-size: var(--wp--preset--font-size--large);
  font-weight: 300;
  margin: 0 0 var(--wp--preset--spacing--50);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--wp--preset--spacing--50);
}
.card {
  grid-column: span 6;
  display: block;
  color: inherit;
  text-decoration: none;
}
@media (max-width: 800px) {
  .card {
    grid-column: span 12;
  }
}

.thumb {
  aspect-ratio: 4 / 3;
  background: var(--wp--preset--color--tertiary);
  border: 1px solid var(--wp--preset--color--primary);
  overflow: hidden;
  position: relative;
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb img:focus {
  outline: 2px dotted var(--wp--preset--color--primary);
  outline-offset: 2px;
}
.meta {
  margin-top: var(--wp--preset--spacing--30);
  color: var(--wp--preset--color--secondary);
  font-size: 0.94rem;
}
.title {
  margin: 0.25rem 0 0;
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.team-card .thumb {
  aspect-ratio: 4 / 5;
}
.team-card .title {
  font-size: var(--wp--preset--font-size--medium);
}
.team-card .role {
  margin: 0.25rem 0 0;
  color: var(--wp--preset--color--secondary);
  font-size: 0.94rem;
}
.team-card .bio {
  margin-top: var(--wp--preset--spacing--30);
  font-size: 1rem;
  color: var(--wp--preset--color--secondary);
}
.team-card .email {
  margin-top: var(--wp--preset--spacing--30);
  font-size: 0.94rem;
}
.team-card .email a {
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
}
.team-card .email a:hover {
  text-decoration: underline;
}

.footer {
  border-top: 1px solid var(--wp--preset--color--primary);
  padding: var(--wp--preset--spacing--60) 0;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--60);
  padding: 0 var(--wp--preset--spacing--50);
}
@media (max-width: 900px) {
  .footer__cols {
    grid-template-columns: 1fr;
  }
}
.fineprint {
  padding: var(--wp--preset--spacing--50);
  font-size: 0.8rem;
}

/* Footer links should not look like default browser links */
.footer a,
.fineprint a {
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
}
.footer a:hover,
.fineprint a:hover {
  text-decoration: underline;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--wp--preset--color--secondary);
}

.prose {
  max-width: 62ch;
}
.prose p {
  margin: 0 0 1rem;
}

.project-hero {
  padding: var(--wp--preset--spacing--70) 0;
}
.project-hero .thumb {
  aspect-ratio: 16 / 9;
}

.breadcrumbs {
  padding: var(--wp--preset--spacing--40) 0 0;
  font-size: 0.94rem;
  color: var(--wp--preset--color--secondary);
}
.breadcrumbs a {
  color: inherit;
}

