/*
Theme Name: Vernon Barnes Portfolio
Author: Vernon Barnes
Description: A bespoke, REST-ready portfolio theme for Vernon Barnes.
Version: 1.0.0
Text Domain: vernon-barnes
*/

:root {
  --ink: #171a18;
  --paper: #f5f4ef;
  --white: #fffefa;
  --muted: #777b75;
  --line: rgba(23, 26, 24, .16);
  --acid: #d7ff63;
  --orange: #ff694a;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-gutter: clamp(22px, 5.2vw, 84px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body, button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--acid); }
.skip-link {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  transform: translateY(-160%);
  color: var(--ink);
  background: var(--acid);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 var(--page-gutter);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.045em;
}
.wordmark-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}
.primary-nav { display: flex; align-items: center; gap: clamp(22px, 3.2vw, 48px); }
.primary-nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .01em;
}
.primary-nav a:hover, .primary-nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid var(--ink);
  border-radius: 99px;
}
.nav-contact::after { content: "↗"; font-size: 15px; }
.menu-toggle { display: none; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr);
  align-items: center;
  gap: clamp(30px, 7vw, 110px);
  min-height: min(740px, calc(100svh - 84px));
  padding: 26px var(--page-gutter) 86px;
  overflow: hidden;
}
@media (min-width: 1000px) {
  .hero {
    max-width: 1120px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 100px;
    padding-right: clamp(36px, 5vw, 64px);
    padding-left: clamp(36px, 5vw, 64px);
  }
}
.hero-copy { position: relative; z-index: 1; padding: 24px 0 42px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 1px; background: currentColor; content: ""; }
.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(66px, 10.1vw, 148px);
  font-weight: 600;
  letter-spacing: -.105em;
  line-height: .83;
}
.hero h1 span { display: block; }
.hero h1 .serif-word {
  margin-left: .52em;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.09em;
}
.hero-intro {
  max-width: 370px;
  margin: 38px 0 0;
  color: #555a54;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}
.hero-links { display: flex; align-items: center; gap: 26px; margin-top: 29px; }
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.button-primary:hover { transform: translateY(-2px); color: var(--ink); background: var(--acid); }
.text-link { font-size: 12px; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero-portrait {
  position: relative;
  width: min(100%, 460px);
  justify-self: center;
  padding: 0 0 22px 22px;
}
.portrait-backdrop {
  position: absolute;
  inset: 20px 0 0 22px;
  background: var(--acid);
}
.portrait-frame {
  position: relative;
  aspect-ratio: .79;
  overflow: hidden;
  background: #d8d1c5;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.portrait-label {
  position: absolute;
  right: -14px;
  bottom: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(23, 26, 24, .09);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.portrait-label::before { width: 8px; height: 8px; border-radius: 50%; background: #68a878; content: ""; }
.hero-index {
  position: absolute;
  right: var(--page-gutter);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-index::before { width: 34px; height: 1px; background: var(--line); content: ""; }
.marquee {
  overflow: hidden;
  padding: 16px 0;
  color: var(--ink);
  background: var(--acid);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 26px;
  animation: drift 32s linear infinite;
}
.marquee-track span { font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.marquee-track i { font-family: var(--serif); font-size: 18px; font-style: normal; }
@keyframes drift { to { transform: translateX(-50%); } }
.section-shell { padding: clamp(82px, 11vw, 156px) var(--page-gutter); }
.section-kicker { margin: 0 0 13px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.work-section { padding-top: clamp(58px, 8vw, 100px); padding-bottom: clamp(90px, 12vw, 160px); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-top h2 { margin: 0; font-size: clamp(40px, 6vw, 78px); font-weight: 550; letter-spacing: -.075em; line-height: .94; }
.section-top h2 em { font-family: var(--serif); font-weight: 400; }
.work-all-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; text-decoration: none; }
.work-all-link:hover { border-color: var(--ink); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.work-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.work-card-image {
  position: relative;
  display: grid;
  aspect-ratio: 1.28;
  place-items: center;
  overflow: hidden;
  background: #d4d8c8;
}
.work-card:nth-child(3n + 2) .work-card-image { background: #e6d3c9; }
.work-card:nth-child(3n) .work-card-image { background: #d5d9de; }
.work-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.2,.8,.2,1); }
.work-card-image:hover img { transform: scale(1.045); }
.work-card-placeholder { color: rgba(23, 26, 24, .45); font-family: var(--serif); font-size: clamp(56px, 8vw, 100px); }
.work-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-size: 19px;
}
.work-card-copy { padding: 18px clamp(16px, 2vw, 24px) 24px; }
.work-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.work-card h3 { margin: 16px 0 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 550; letter-spacing: -.055em; line-height: 1.05; }
.work-card h3 a { text-decoration: none; }
.work-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-card-services { margin: 9px 0 0; color: var(--ink); font-size: 11px; font-weight: 650; }
.work-card-excerpt { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.work-empty-state { padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.work-empty-state .section-kicker { margin-bottom: 18px; }
.work-empty-state h3, .work-page-empty h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); font-weight: 550; letter-spacing: -.065em; }
.work-empty-state > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.work-page { max-width: 1480px; margin: 0 auto; padding-top: clamp(62px, 8vw, 112px); }
.work-page-heading { max-width: 900px; margin: 0 0 clamp(50px, 8vw, 100px); }
.work-page-title, .work-single-title { margin: 0 0 24px; font-size: clamp(54px, 9vw, 118px); font-weight: 550; letter-spacing: -.085em; line-height: .9; }
.work-page-intro { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.work-page-list { display: grid; gap: clamp(56px, 9vw, 120px); }
.work-page-entry { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: clamp(30px, 6vw, 88px); padding-bottom: clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--line); scroll-margin-top: 40px; }
.work-page-image, .work-page-placeholder { display: grid; aspect-ratio: 1.28; place-items: center; overflow: hidden; border-radius: 12px; background: #d4d8c8; }
.work-page-entry:nth-child(3n + 2) .work-page-image, .work-page-entry:nth-child(3n + 2) .work-page-placeholder { background: #e6d3c9; }
.work-page-entry:nth-child(3n) .work-page-image, .work-page-entry:nth-child(3n) .work-page-placeholder { background: #d5d9de; }
.work-page-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.2,.8,.2,1); }
.work-page-image:hover img { transform: scale(1.04); }
.work-page-placeholder { color: rgba(23, 26, 24, .45); font-family: var(--serif); font-size: clamp(64px, 10vw, 120px); }
.work-page-copy { padding-top: 6px; }
.work-page-copy .section-kicker { margin-bottom: 12px; }
.work-page-entry-title { margin: 0; font-size: clamp(34px, 5vw, 62px); font-weight: 550; letter-spacing: -.07em; line-height: .98; }
.work-page-entry-title a { text-decoration: none; }
.work-page-entry-title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.work-page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.work-page-content { max-width: 680px; margin-top: 24px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.work-page-content > :first-child { margin-top: 0; }
.work-page-content img { max-width: 100%; height: auto; }
.work-page-detail-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; }
.work-page-detail-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-single { max-width: 1400px; margin: 0 auto; padding-top: clamp(62px, 8vw, 112px); }
.work-single-entry > .section-kicker a { color: inherit; text-decoration: none; }
.work-single-entry > .section-kicker a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-single-title { max-width: 1080px; }
.work-single-image { max-height: 72vh; margin: 30px 0 48px; overflow: hidden; border-radius: 12px; background: #e7e5dd; }
.work-single-image img { width: 100%; height: auto; max-height: 72vh; object-fit: cover; }
.work-single-content { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.8; }
.about-copy h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 550;
  letter-spacing: -.075em;
  line-height: .94;
}
.about-copy h2 em { font-family: var(--serif); font-weight: 400; }
.about-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(40px, 10vw, 150px);
  color: var(--paper);
  background: var(--ink);
}
.about-side { display: flex; min-height: 330px; flex-direction: column; justify-content: space-between; }
.about-note { display: inline-flex; align-items: center; gap: 9px; color: #c1c5bc; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.about-note::before { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); content: ""; }
.about-mark {
  display: grid;
  width: min(100%, 330px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(245, 244, 239, .22);
  border-radius: 50%;
  color: var(--acid);
  font-family: var(--serif);
  font-size: clamp(85px, 15vw, 190px);
  font-style: italic;
  letter-spacing: -.15em;
  transform: rotate(-13deg);
}
.about-copy h2 { max-width: 650px; margin-bottom: 28px; color: var(--paper); }
.about-copy > p { max-width: 550px; margin: 0; color: #c0c3bc; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.75; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; padding-top: 20px; border-top: 1px solid rgba(245, 244, 239, .2); }
.principle span { display: block; margin-bottom: 10px; color: var(--acid); font-family: var(--serif); font-size: 23px; font-style: italic; }
.principle p { margin: 0; color: #c0c3bc; font-size: 11px; line-height: 1.5; }
.contact-section { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; padding-top: clamp(88px, 12vw, 165px); padding-bottom: 95px; }
.contact-copy .eyebrow { margin-bottom: 20px; }
.contact-copy h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(52px, 9.4vw, 128px);
  font-weight: 550;
  letter-spacing: -.09em;
  line-height: .84;
}
.contact-copy h2 em { font-family: var(--serif); font-weight: 400; }
.contact-aside { max-width: 230px; padding-bottom: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-aside .button-primary { margin-top: 17px; }
.contact-page { max-width: 1440px; margin: 0 auto; padding-top: clamp(62px, 8vw, 112px); }
.contact-page-heading { max-width: 880px; margin: 0 auto clamp(56px, 8vw, 104px); text-align: center; }
.contact-page-heading .eyebrow { justify-content: center; }
.contact-page-heading h1 {
  margin: 0;
  font-size: clamp(52px, 8.6vw, 112px);
  font-weight: 550;
  letter-spacing: -.09em;
  line-height: .9;
}
.contact-page-heading h1 em { font-family: var(--serif); font-weight: 400; }
.contact-page-heading > p:last-child { max-width: 490px; margin: 24px auto 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 8vw, 112px);
  max-width: 1120px;
  margin: 0 auto;
}
.contact-details { display: flex; flex-direction: column; align-items: flex-start; padding-top: 24px; }
.contact-details .section-kicker { margin-bottom: 18px; }
.contact-details h2 { max-width: 390px; margin: 0; font-size: clamp(34px, 4vw, 52px); font-weight: 550; letter-spacing: -.07em; line-height: .98; }
.contact-details > p:not(.section-kicker) { max-width: 340px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 13px; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-email span { color: var(--muted); }
.contact-note { margin-top: auto; padding-top: 64px; color: var(--muted); font-family: var(--serif); font-size: 22px; font-style: italic; }
.contact-form-card { padding: clamp(28px, 4.5vw, 56px); background: var(--white); }
.contact-form-card h2 { margin: 0 0 30px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 550; letter-spacing: -.065em; }
.contact-form-card .section-kicker { margin-bottom: 10px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.form-field { display: flex; flex-direction: column; gap: 9px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { font-size: 11px; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
}
.form-field textarea { min-height: 142px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; }
.contact-form-footer p { max-width: 200px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.contact-form-footer .button-primary { flex: 0 0 auto; cursor: pointer; }
.form-notice { margin: 0 0 24px; padding: 14px 16px; font-size: 12px; line-height: 1.6; }
.form-notice-success { border-left: 3px solid #68a878; background: #edf4ed; }
.form-notice-error { border-left: 3px solid var(--orange); background: #fff0ec; }
.form-notice a { display: block; width: fit-content; margin-top: 5px; font-weight: 650; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--page-gutter) 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .section-shell { padding-right: max(var(--page-gutter), calc((100vw - 1380px) / 2)); padding-left: max(var(--page-gutter), calc((100vw - 1380px) / 2)); }
}
@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 19px;
  }
  .primary-nav {
    position: absolute;
    top: 61px;
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: var(--paper);
  }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border-bottom: 0; }
  .nav-contact { border: 0; border-radius: 0; }
  .hero { grid-template-columns: 1fr; gap: 18px; min-height: auto; padding-top: 38px; padding-bottom: 84px; }
  .hero-copy { padding: 5px 0 8px; text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero h1 .serif-word { margin-left: 0; }
  .hero h1 { font-size: clamp(66px, 17vw, 118px); }
  .hero-intro { max-width: 400px; margin: 28px auto 0; }
  .hero-links { justify-content: center; flex-wrap: wrap; }
  .hero-portrait { width: min(80%, 390px); justify-self: center; margin: 10px auto 0; transform: translateX(-11px); }
  .portrait-frame { aspect-ratio: 1; }
  .portrait-label { right: -12px; bottom: 34px; }
  .hero-index { right: auto; bottom: 28px; left: 50%; white-space: nowrap; transform: translateX(-50%); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-page-entry { grid-template-columns: 1fr; gap: 24px; }
  .about-section { grid-template-columns: 1fr; }
  .about-side { min-height: auto; flex-direction: row; align-items: center; }
  .about-mark { width: 130px; font-size: 76px; }
  .about-copy h2 { margin-top: 42px; }
  .contact-section { grid-template-columns: 1fr; align-items: start; }
  .contact-aside { max-width: 330px; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 42px; }
  .contact-details { padding-top: 0; }
  .contact-note { margin-top: 22px; padding-top: 0; }
}
@media (max-width: 480px) {
  .hero-links { gap: 18px; }
  .section-top { align-items: flex-start; flex-direction: column; gap: 18px; }
  .work-grid { grid-template-columns: 1fr; }
  .principles { gap: 12px; }
  .principle p { font-size: 10px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .contact-fields { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .contact-form-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
