:root {
  --bg: #0b0b0c;
  --fg: #f2f0ec;
  --wordmark: #dad5c9;
  --muted: #c9c5bb;
  --muted-2: #a6a196;
  --rust: #c97d42;
  --hairline: rgba(242, 240, 236, 0.1);
  --font-display: 'Archivo', sans-serif;
  --font-quote: 'Newsreader', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --text-label: 13px;   /* nav, eyebrows, labels */
  --text-caption: 12px; /* mono captions and tags */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
}

/* One heading style for every page title. */
.page-title {
  margin: 0 0 1.5rem;
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-align: center;
  color: var(--fg);
}

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

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.nav-bar nav {
  display: flex;
  gap: 2rem;
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
}

.social-links a {
  display: flex;
}

.social-links svg {
  width: 18px;
  height: 18px;
}

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

.hero-intro {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.hero-word {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--wordmark);
  line-height: 1;
}

.hero-photo {
  /* Shows the whole frame, uncropped: as wide as fits, capped by viewport height. */
  width: min(100%, 120vh);
  margin: 0 auto;
}

.hero-photo img {
  width: 100%;
  height: auto;
}

.hero-tagline {
  margin: 0;
  padding: 1.75rem 1.5rem 0;
  text-align: center;
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Interstitial quote ---------- */

.interstitial-quote {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 3.5rem 1.8rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.interstitial-quote blockquote {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.5;
  color: var(--fg);
}

.interstitial-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Work grid ---------- */

.work {
  padding: 3rem 1.8rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.work-item {
  margin: 0;
}

.work-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
}

.placeholder-tag {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
}

.work-link {
  display: block;
  cursor: zoom-in;
}

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

.about {
  padding: 4rem 1.8rem;
  border-top: 1px solid var(--hairline);
}

.about-copy {
  max-width: 38rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.about-copy p {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.7;
  color: var(--fg);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  z-index: 50;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem;
}

/* ---------- Reserved placeholder interstitial ---------- */

.interstitial-placeholder {
  border-top: 1px dashed var(--hairline);
  border-bottom: 1px dashed var(--hairline);
  padding: 2.5rem 1.8rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.placeholder-label {
  margin: 0;
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0.85;
}

/* ---------- Journal stub ---------- */

.journal-stub {
  text-align: center;
  padding: 6rem 1.8rem;
  color: var(--muted-2);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */

.contact-wrap {
  max-width: 32rem;
  margin: 0 auto;
  padding: 3.5rem 1.8rem 4.5rem;
}

.contact-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.form-field label {
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible,
.contact-form button[type="submit"]:focus-visible {
  outline: 2px solid var(--wordmark);
  outline-offset: 2px;
  border-color: var(--wordmark);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23c9c5bb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.form-field select option {
  background: var(--bg);
  color: var(--fg);
}

.form-field textarea::placeholder {
  color: var(--muted-2);
  opacity: 0.8;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  width: 100%;
  background: var(--wordmark);
  color: var(--bg);
  border: none;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  border-radius: 3px;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  opacity: 0.85;
}

.form-hint {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  line-height: 1.6;
  color: var(--rust);
}

.contact-direct {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.contact-direct p {
  margin: 0 0 0.5rem;
  font-size: 14px;
  color: var(--muted-2);
}

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

.site-footer {
  text-align: center;
  padding: 2.5rem;
  color: var(--muted-2);
  font-size: var(--text-label);
  border-top: 1px solid var(--hairline);
}

@media (max-width: 480px) {
  .nav-bar {
    gap: 0.75rem;
  }

  .nav-bar nav {
    flex-wrap: wrap;
    gap: 0.6rem 1.1rem;
  }
}

/* ---------- Photo metadata captions ---------- */

.photo-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--muted-2);
}

.photo-meta span:first-child {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Nav: current page ---------- */

.nav-bar nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.45em;
  text-decoration-thickness: 1px;
}

.nav-bar nav a:hover,
.nav-bar nav a:focus-visible {
  color: var(--fg);
}

/* ---------- Gear ---------- */

.gear a:focus-visible,
.gear summary:focus-visible {
  outline: 2px solid var(--wordmark);
  outline-offset: 3px;
}

.gear-hero {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1.8rem 2rem;
  text-align: center;
}

.gear-lede {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.7;
  color: var(--fg);
}

.gear-slot {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  border: 1px dashed var(--hairline);
  border-radius: 3px;
  background: rgba(242, 240, 236, 0.02);
  text-align: center;
  padding: 1rem;
}

.gear-slot span {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--muted-2);
}

.gear-slot-hero {
  max-width: 72rem;
  margin: 2.5rem auto 0;
  aspect-ratio: 21 / 9;
  width: calc(100% - 3.6rem);
}

.gear-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.8rem;
  border-top: 1px solid var(--hairline);
}

.gear-chapter:first-of-type {
  margin-top: 4rem;
}

.gear-chapter:nth-of-type(even) .gear-slot {
  order: 2;
}

.gear-numeral {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  color: var(--muted-2);
  opacity: 0.35;
}

.gear-chapter h2 {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  color: var(--fg);
}

.gear-mount {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
}

.gear-chapter p {
  margin: 0 0 1.75rem;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: var(--fg);
}

.gear-bag-title {
  margin: 0 0 0.5rem;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.gear-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gear-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--fg);
}

.gear-list li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.gear-role {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.gear-glance,
.gear-retired,
.gear-closing {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.8rem;
  border-top: 1px solid var(--hairline);
}

.gear-glance h2,
.gear-retired h2 {
  margin: 0 0 1.75rem;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--fg);
}

.gear-glance-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem 2.5rem;
}

.gear-glance details {
  border-top: 1px solid var(--hairline);
}

.gear-glance summary {
  cursor: pointer;
  padding: 0.9rem 0;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.gear-glance summary::-webkit-details-marker {
  display: none;
}

.gear-glance summary::after {
  content: "+";
}

.gear-glance details[open] summary::after {
  content: "\2212";
}

.gear-glance ul {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  font-size: 15px;
  line-height: 1.9;
  color: var(--fg);
}

.gear-glance ul li span {
  color: var(--muted-2);
}

.gear-retired {
  background: rgba(242, 240, 236, 0.02);
  max-width: none;
}

.gear-retired > * {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.gear-retired h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
}

.gear-retired p {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-2);
}

.gear-closing {
  text-align: center;
  max-width: 40rem;
}

.gear-closing p {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.5;
  color: var(--fg);
}

.gear-closing a {
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  color: var(--wordmark);
}

@media (max-width: 820px) {
  .gear-chapter {
    grid-template-columns: minmax(0, 1fr);
    padding: 3.5rem 1.8rem;
  }

  .gear-chapter:nth-of-type(even) .gear-slot {
    order: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-bar nav a {
    transition: color 0.2s ease;
  }
}

.gear-photo {
  margin: 0;
}

.gear-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
}

@media (min-width: 821px) {
  .gear-chapter:nth-of-type(even) .gear-photo {
    order: 2;
  }
}

.photo-meta .photo-params {
  color: var(--rust);
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.gear-photo-hero {
  max-width: 72rem;
  margin: 2.5rem auto 0;
  width: calc(100% - 3.6rem);
}

.gear-photo-hero img {
  aspect-ratio: 21 / 9;
  object-position: center 60%;
}

/* ---------- Contact form status ---------- */

.form-status {
  margin-bottom: 1.4rem;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.form-status[hidden] {
  display: none;
}

.form-status:focus {
  outline: none;
}

.form-status-success {
  color: var(--wordmark);
}

.form-status-error {
  color: var(--rust);
  text-align: left;
  margin: 0 0 1rem;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: progress;
}

.contact-email {
  font-size: inherit;
  color: var(--wordmark);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.contact-email:focus-visible {
  outline: 2px solid var(--wordmark);
  outline-offset: 3px;
}

.work .page-title,
.about .page-title {
  margin-bottom: 2.5rem;
}

main > .page-title {
  padding-top: 4rem;
  margin-bottom: 0;
}

.journal-stub {
  padding-top: 1.5rem;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--fg);
}

.social-links a:focus-visible {
  outline: 2px solid var(--wordmark);
  outline-offset: 3px;
  border-radius: 2px;
}
