/* ==========================================================================
   Matt Hues Photography
   Palette and type sampled from Matt's own frames:
   the black backdrop, the mottled charcoal canvas, the mustard sweep,
   the oxblood blazer, and the warm highlight on skin.
   ========================================================================== */

:root {
  /* Colour */
  --ink:        #0A0908;  /* backdrop black, warmed so it isn't screen-black */
  --canvas:     #16130F;  /* the mottled studio canvas */
  --canvas-lit: #221D17;  /* where the key light grazes the canvas */
  --oxblood:    #7A2029;  /* the burgundy blazer, primary accent */
  --teal:       #10484F;  /* the teal backdrop, rules and edges */
  --teal-lit:   #63ABA6;  /* the same teal raised to read on black */
  --ochre:      #C9902B;  /* the mustard sweep, kept only for focus */
  --bone:       #EDE6DA;  /* warm off-white, easier than pure white on black */
  --ash:        #8C857A;  /* secondary text */
  --ash-dim:    #5A544C;

  /* Type */
  --display: "Bodoni Moda", Georgia, serif;
  --body:    "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --step-2:  clamp(1.9rem, 1.5rem + 1.8vw, 3.1rem);
  --step-3:  clamp(2.6rem, 1.7rem + 4.2vw, 5.6rem);

  /* Space */
  --gutter: clamp(1.4rem, 6vw, 6rem);
  --rhythm: clamp(5.5rem, 14vw, 12rem);
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), 88rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 1rem;
  z-index: 50;
  background: var(--ochre);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 2px;
}

/* --------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--teal);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 0.4em; /* absorbs the trailing letterspace */
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] {
  color: var(--bone);
  border-bottom-color: var(--teal-lit);
}

@media (max-width: 52rem) {
  .masthead__inner nav { min-width: 0; }
  .nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
}

/* ------------------------------------------------------------------- hero */
/* Editorial split. The words own the ink, the photograph owns its own
   stage, and the two never fight. The photograph still has no frame edge
   on its shadow side: it falls off into the page toward the type. */

.hero {
  display: grid;
  grid-template-columns: minmax(24rem, 42%) 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__media {
  position: relative;
  order: 2;
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 25%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, transparent 34%);
}

.hero__text {
  align-self: center;
  padding-block: clamp(7rem, 16vh, 10rem) clamp(3rem, 8vh, 5rem);
}

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: 2; height: 68vh; height: 68svh; }
  .hero__media::after {
    background: linear-gradient(to bottom, var(--ink) 0%, transparent 26%);
  }
  .hero__text { padding-block: clamp(7rem, 14vh, 9rem) clamp(2.5rem, 6vh, 4rem); }
}

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-lit);
  margin: 0 0 1.2rem;
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 16ch;
}

.hero__title em {
  font-style: italic;
  color: var(--teal-lit);
}

.hero__sub {
  margin: 1.6rem 0 2.2rem;
  max-width: 38ch;
  color: var(--ash);
  font-size: var(--step-1);
  line-height: 1.4;
}

/* ---------------------------------------------------------------- buttons */

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-block;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--teal-lit);
  color: var(--teal-lit);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--teal-lit); color: var(--ink); }

.btn--solid {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--bone);
}
.btn--solid:hover {
  background: transparent;
  border-color: var(--teal-lit);
  color: var(--teal-lit);
}

/* --------------------------------------------------------------- sections */

.band { padding-block: var(--rhythm); }
.band--tight { padding-block: calc(var(--rhythm) * 0.55); }
.band--canvas { background: var(--canvas); }

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.05;
  margin: 0.4rem 0 0;
}

.lede {
  max-width: var(--measure);
  color: var(--ash);
  font-size: var(--step-1);
  line-height: 1.5;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.3rem; }
.prose p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- masonry gallery */

.masonry {
  columns: 2;
  column-gap: clamp(1.6rem, 4vw, 4rem);
}
@media (max-width: 44rem) { .masonry { columns: 1; } }

.frame {
  break-inside: avoid;
  margin: 0 0 clamp(1.6rem, 4vw, 4rem);
  position: relative;
}

/* On phones the photographs run edge to edge; the interface steps aside. */
@media (max-width: 44rem) {
  .masonry, .series {
    margin-inline: calc(var(--gutter) * -1);
  }
  .masonry .frame, .series .frame { margin-bottom: clamp(2.2rem, 8vw, 3rem); }
  .series figcaption { padding-inline: var(--gutter); }
}

.frame img {
  width: 100%;
  filter: brightness(0.86);
  transition: filter 0.5s ease;
}

/* The key light comes up on hover. */
.frame:hover img,
.frame:focus-within img { filter: brightness(1); }

.frame figcaption {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash-dim);
  padding-top: 0.7rem;
}

/* ------------------------------------------------------------ pull quote */

.pull {
  border-left: 2px solid var(--oxblood);
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  max-width: 44rem;
}
.pull blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.4;
}
.pull cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--body);
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

/* ------------------------------------------------------------- card rows */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(2.2rem, 5vw, 4rem);
}

.card {
  border-top: 1px solid var(--teal);
  padding-top: 1.8rem;
}
.card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-1);
  margin: 0 0 0.6rem;
}
.card p { margin: 0 0 1rem; color: var(--ash); }
.card a {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal-lit);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.card a:hover { border-bottom-color: var(--teal-lit); }

/* ----------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--teal);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer a { text-decoration: none; color: var(--ash); }
.footer a:hover { color: var(--bone); }

.footer__note {
  font-size: var(--step--1);
  color: var(--ash-dim);
  letter-spacing: 0.06em;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- a11y */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------------------------------------------------------------- the wash */
/* Oxblood into teal, borrowed from the lock screen. It appears once,
   at the foot of the page, where there is no photograph for it to tint. */

.wash {
  position: relative;
  background:
    radial-gradient(90% 130% at 8% 110%, color-mix(in srgb, var(--oxblood) 62%, transparent) 0%, transparent 62%),
    radial-gradient(85% 120% at 96% 0%, color-mix(in srgb, var(--teal) 78%, transparent) 0%, transparent 60%),
    var(--ink);
}
.wash .footer__note,
.wash .card p { color: color-mix(in srgb, var(--bone) 72%, transparent); }

/* ------------------------------------------------------------- the series */
/* Her. Four frames, one column, titles set in the display face.
   The only page on the site where the photographs run this large alone. */

.series {
  max-width: 52rem;
  margin-inline: auto;
}

.series .frame {
  margin-bottom: var(--rhythm);
}
.series .frame:last-child { margin-bottom: 0; }

.series figcaption {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
}

.series .frame__title {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--bone);
  letter-spacing: 0.02em;
  text-transform: none;
}

.series .frame__num {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  color: var(--ash-dim);
}

/* ---------------------------------------------------------------- forms */

.form { max-width: 34rem; }

.form label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.5rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  background: var(--canvas);
  border: 1px solid #241F19;
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--step-0);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.25s ease;
}

.form input:hover,
.form textarea:hover,
.form select:hover { border-color: var(--teal); }

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--teal-lit);
  outline: none;
}

.form textarea { min-height: 9rem; resize: vertical; }

.form button {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--body);
  background: var(--oxblood);
  border: 1px solid var(--oxblood);
  color: var(--bone);
  padding: 0.95rem 1.9rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.form button:hover {
  background: transparent;
  border-color: var(--teal-lit);
  color: var(--teal-lit);
}

/* ------------------------------------------------------------- not found */

.lost {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: var(--rhythm);
}

.lost h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1;
  margin: 0 0 1rem;
}

/* ---------------------------------------------------------------- pricing */
/* One number per session. The number is set in the display face because
   it is part of the offer, not a footnote. */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(2.2rem, 5vw, 4rem);
}

.tier {
  border-top: 1px solid var(--teal);
  padding-top: 1.8rem;
}

.tier h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-1);
  margin: 0 0 0.3rem;
}

.tier__price {
  /* Prices stay in the body face: Bodoni's hairline numerals let a 4 read
     as a 1 at small sizes, and a price must never be ambiguous. */
  font-family: var(--body);
  font-weight: 500;
  font-size: calc(var(--step-2) * 0.88);
  letter-spacing: 0.01em;
  color: var(--teal-lit);
  margin: 0 0 1rem;
  line-height: 1;
}

.tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ash);
}
.tier ul li {
  padding-block: 0.45rem;
  border-bottom: 1px solid #241F19;
}
.tier ul li:last-child { border-bottom: 0; }

.services-line {
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--bone);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------- swatches */
/* The two canvases, cut from real frames. What you see is what you book. */

.swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2.5rem;
  max-width: 26rem;
}

.swatches img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.swatches figure { margin: 0; }

.swatches figcaption {
  padding-top: 0.8rem;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

/* Full-height variant for the backdrop set photographs on About. */
.swatches--tall { max-width: 44rem; }
.swatches--tall img { aspect-ratio: 2 / 3; }

