/* ============================================================
   Evan Morris — personal site
   Typography system: Playfair Display (display serif) +
   Inter (body and accents)
   Palette: pure black / pure white, editorial minimal.
   ============================================================ */

:root {
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-bio: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --black: #121110;
  --white: #fcfbf9;
  --accent: #7a0019;
  --gray-line: #e6e6e6;
  --max-text: 900px;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 22px;
  font-size: 15px;
  letter-spacing: 1px;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- top hairline band ---------- */
.top-band { height: 42px; background: var(--black); }

/* ---------- header / masthead ---------- */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 56px 4vw;
  background: var(--white);
}

.masthead nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}

.masthead nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--black);
  position: relative;
  white-space: nowrap;
}

.masthead nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--black);
  transition: width .25s ease;
}

.masthead nav a:hover::after,
.masthead nav a:focus-visible::after { width: 100%; }

a:focus-visible,
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: .5px;
  text-align: center;
  color: var(--black);
}

.masthead .socials {
  display: flex;
  gap: 26px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.masthead .socials a { line-height: 0; }
.masthead .socials svg { width: 30px; height: 30px; transition: opacity .2s; }
.masthead .socials a:hover svg { opacity: .55; }

/* ---------- photo strip ---------- */
.photo-strip {
  background: var(--black);
  padding: 34px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.photo-strip a { display: block; min-width: 0; }

.photo-strip img {
  aspect-ratio: 3 / 2;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- image placeholders (swap with real photos) ---------- */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, #1c1c1c 0%, #3a3a3a 55%, #262626 100%);
  color: #cfcfcf;
}

.ph .mono {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: #efefef;
}

.ph .cap {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}

.ph--light { color: #595959;
  background: linear-gradient(160deg, #f3f3f3 0%, #e2e2e2 55%, #efefef 100%);
}
.ph--light .mono { color: #444; }

/* ---------- generic section rhythm ---------- */
section { padding: 96px 6vw; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.15;
}

/* ---------- about ---------- */
.about-inner {
  max-width: 820px;
  margin: 0 auto;
}

.about-inner p {
  font-family: var(--font-bio);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.72;
  margin-bottom: 27px;
}

.about-inner p strong { font-weight: 700; }

.btn-row { text-align: center; margin-top: 18px; }

.btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 18px 44px;
  border: 1px solid var(--black);
  transition: background .25s, color .25s;
  cursor: pointer;
}

.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

.about-inner a {
  font-family: var(--font-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity .2s;
}
.about-inner a:hover { color: var(--accent); opacity: 1; }

/* ---------- awards (black) ---------- */
.awards {
  background: var(--black);
  color: var(--white);
}

.awards .section-title { color: var(--white); }

.awards-list {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.awards-list p {
  font-size: 25px;
  line-height: 1.45;
  margin-bottom: 30px;
}

.awards-list--tight { text-align: left; }

.awards-list--tight p {
  font-size: 17.5px;
  line-height: 1.6;
  margin-bottom: 11px;
}

.awards-list--tight .full-list {
  margin-top: 26px;
  font-size: 15px;
}

.awards-list p b {
  font-weight: 700;
}

.awards-list a {
  font-family: var(--font-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity .2s;
}

.awards-list a:hover { opacity: .65; }

.awards-list .full-list {
  font-size: 20px;
  margin-top: 46px;
  opacity: .9;
}

/* ---------- supported by / featured in ---------- */
.logos-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 40px;
}

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(var(--n, 0));
}



.logo-cell img {
  height: var(--h, 46px);
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

/* ---------- connect ---------- */
.connect { text-align: center; padding-bottom: 72px; }

.connect .big-socials {
  display: flex;
  justify-content: center;
  gap: 54px;
}

.connect .big-socials svg {
  width: 58px; height: 58px;
  transition: opacity .2s;
}

.connect .big-socials a:hover svg { opacity: .6; }

.connect .handle {
  margin-top: 14px;
  font-size: 15px;
  letter-spacing: 1.5px;
}

/* ---------- watch / media ---------- */
.watch-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1080px) {
  .watch-grid { grid-template-columns: 1fr; max-width: 640px; }
}

.watch-grid .frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.watch-grid .frame iframe { border: 0; display: block; }

.watch-grid figcaption {
  font-size: 17px;
  letter-spacing: .4px;
  margin-top: 14px;
  text-align: center;
}

/* ---------- gallery ---------- */
.gallery { padding-top: 72px; }

.gallery-grid {
  columns: 4 260px;
  column-gap: 16px;
}

.gallery-grid figure { overflow: hidden; display: flex; flex-direction: column; gap: 8px; }

.gallery-grid figcaption.cap {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  color: #6a6a6a;
  padding-bottom: 4px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- contact ---------- */
.contact { padding-bottom: 120px; }

.contact .section-title { font-size: 56px; max-width: 18ch; margin: 0 auto 18px; }

.contact .sub {
  text-align: center;
  font-size: 20px;
  max-width: 640px;
  margin: 0 auto 54px;
  line-height: 1.5;
}

.contact form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.contact .field { display: flex; flex-direction: column; gap: 8px; }
.contact .field.full { grid-column: 1 / -1; }

.contact label {
  font-size: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.contact input,
.contact textarea {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  padding: 12px 2px;
  border: none;
  border-bottom: 1px solid var(--black);
  background: transparent;
}

.contact textarea { min-height: 120px; resize: vertical; }

.contact input:focus,
.contact textarea:focus { border-bottom-width: 2px; }

.contact input:focus-visible,
.contact textarea:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.contact .submit-row { grid-column: 1 / -1; text-align: center; margin-top: 12px; }

.form-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  opacity: .65;
  visibility: hidden;
}

.form-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 34px 20px;
  font-size: 16px;
  letter-spacing: .4px;
}

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
  .masthead {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }
  .masthead nav { justify-content: center; order: 2; }
  .site-title { order: 1; }
  .masthead .socials { justify-content: center; order: 3; }
}

@media (max-width: 1080px) {
  .section-title { font-size: 44px; }
  .about-inner p { font-size: 18px; }
  .awards-list p { font-size: 21px; }
}

@media (max-width: 820px) {
  .masthead { padding: 34px 5vw 26px; gap: 20px; }
  .masthead nav { gap: 18px 22px; }
  .site-title { font-size: 34px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .photo-strip a:nth-child(5) { display: none; }
  section { padding: 70px 6vw; }
  .section-title { font-size: 36px; margin-bottom: 36px; }
  .about-inner p { font-size: 17px; }
  .awards-list p { font-size: 19px; }
  .logos-grid { gap: 22px 26px; }
  .logo-cell img { height: calc(var(--h, 46px) * .82); max-width: 132px; }
  .watch-grid { grid-template-columns: 1fr; }
  .contact form { grid-template-columns: 1fr; }
  .connect .big-socials { gap: 34px; }
  .connect .big-socials svg { width: 44px; height: 44px; }
}


/* ---------- gallery links + lightbox ---------- */
.gallery-grid a { display: block; margin-bottom: 16px; break-inside: avoid; }

.lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(10, 10, 10, .93); }

.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.lightbox-close {
  position: fixed;
  top: 18px; right: 26px;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}


/* ---------- portrait band ---------- */
.portrait-band {
  padding: 0 6vw 96px;
  display: flex;
  justify-content: center;
}

.portrait-band img {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
}

@media (max-width: 760px) {
  .portrait-band { padding: 0 6vw 64px; }
  .about-inner p { font-size: 18.5px; line-height: 1.68; }
}
