/* ===========================================================
   Jason Linscombe — Portfolio
   Warm neutral, editorial style. Plain CSS, no framework.
   =========================================================== */

:root {
  --color-bg: #f7f5f1;
  --color-bg-alt: #efece5;
  --color-bg-card: #ffffff;
  --color-text: #201d1a;
  --color-text-muted: #6f6a62;
  --color-border: #e2ddd3;
  --color-accent: #a8583e;
  --color-accent-dark: #8a4531;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-sm);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md) var(--space-md);
    gap: var(--space-sm);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg) 0;
  background-image: linear-gradient(180deg, rgba(15, 12, 10, 0.25) 0%, rgba(15, 12, 10, 0.6) 100%),
    url("../images/hero-skyline.jpg");
  background-size: cover;
  background-position: center 80%;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
}

@media (max-width: 720px) {
  .hero {
    min-height: 85vh;
    background-size: auto 180%;
    background-position: 62% 100%;
  }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-sm);
  color: #fff;
}

.hero p {
  max-width: 40ch;
  font-size: 1.1rem;
  opacity: 0.92;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-xl) 0;
}

.section-tight {
  padding: var(--space-lg) 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.section-header h2 {
  font-size: 2rem;
}

.section-header a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-header p {
  color: var(--color-text-muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

/* ---------- Grids / Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(32, 29, 26, 0.08);
}

.card-media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
  padding: var(--space-sm);
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-media.photo {
  aspect-ratio: 4 / 5;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
}

.card-media span {
  position: relative;
  z-index: 1;
}

.card-body {
  padding: var(--space-sm) var(--space-sm) var(--space-md);
}

.card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- About page ---------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 780px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

.about-portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #d9c9b8, #a8583e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
}

.about-goals {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.about-goals h3 {
  font-size: 1.1rem;
}

.about-goals ul {
  margin: 0;
  padding-left: 1.1rem;
}

.about-goals li {
  margin-bottom: 4px;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ---------- Social page ---------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-sm);
}

.social-card {
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease;
}

.social-card:hover {
  border-color: var(--color-accent);
}

.social-platform {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.social-handle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------- Modal (video / lightbox) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-md);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--color-bg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}

.modal-video {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.modal-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-body {
  padding: var(--space-md);
}

.modal-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.modal-image-wrap .card-media {
  width: auto;
  height: min(55vh, 500px);
  aspect-ratio: 4 / 5;
}

.modal-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  margin-top: var(--space-lg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.empty-state {
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-md) 0;
}
