/* Chad Johnston Photographer: values match the approved prototype. */

@font-face { font-family: 'Fjalla One'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/fjalla-one-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/dm-mono-300.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/dm-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-400.woff2) format('woff2'); }

:root {
  --photo-h: min(780px, calc(100vh - 120px));
  --text: #111111;
  --grey: #6E6E6E;
  --light: #A3A3A3;
  --words: 'DM Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --nums: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--text); font-family: var(--words); font-weight: 300; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
img { border: 0; }
:focus-visible { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- page grid ---------- */

.page { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; overflow-x: clip; }
.main { min-width: 0; padding: 40px 0; }

/* ---------- sidebar ---------- */

.side { width: 240px; padding: 40px; display: flex; flex-direction: column; gap: 48px; }
.sidecol { min-height: var(--photo-h); flex: 0 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.sidetop { display: grid; grid-template-columns: min-content; row-gap: 56px; }

.wordmark { justify-self: start; align-self: start; display: inline-flex; flex-direction: column; align-items: flex-end; font-family: 'Fjalla One', Oswald, 'Arial Narrow', sans-serif; font-weight: 400; font-size: 32px; line-height: 1; text-transform: uppercase; }
.wm-name { color: #262626; }
.wm-sub { font-size: 0.45em; letter-spacing: 0.04em; margin-top: 0.15em; margin-right: -0.04em; color: #7E9FB5; }

/* menu: width locked to the wordmark */
.menu { width: 0; min-width: 100%; font-family: var(--words); font-weight: 400; font-size: 13px; }
.sections { display: flex; flex-direction: column; gap: 14px; }
.sec-row { position: relative; display: flex; gap: 14px; align-items: baseline; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; white-space: nowrap; }
.sec-row .num { font-family: var(--nums); font-size: 12px; color: var(--grey); }
.sec.is-current .sec-row .num { color: var(--text); }
.sec-row .lbl { border-bottom: 1px solid transparent; transition: border-color 150ms ease; }
a.sec-row:hover .lbl, button.sec-row:hover .lbl, .sec-row:focus-visible .lbl, .sec.is-current .lbl { border-bottom-color: var(--text); }
.sec.is-empty .sec-row { cursor: default; }
.sec.is-empty .num, .sec.is-empty .lbl { color: var(--light); }
.chev { display: inline-flex; align-self: center; transition: transform 160ms ease; }
.sec.is-open .chev { transform: rotate(180deg); }

.stories { margin: 12px 0 6px 0; padding: 0 0 0 30px; display: flex; flex-direction: column; gap: 4px; }
.stories[hidden] { display: none; }
.story-link { position: relative; display: flex; gap: 10px; align-items: baseline; min-height: 32px; font-size: 14px; color: var(--light); transition: color 150ms ease; }
.snum-slot { flex: 0 0 auto; min-width: 26px; font-family: var(--nums); font-size: 11px; }
.snum { border-bottom: 1px solid transparent; transition: border-color 150ms ease; }
.stitle { min-width: 0; font-family: var(--words); font-weight: 300; font-size: 12px; }
.story-link:hover, .story-link:focus-visible, .story-link.is-current, .story-link.is-hover { color: var(--text); }
.story-link:hover .snum, .story-link:focus-visible .snum, .story-link.is-current .snum, .story-link.is-hover .snum { border-bottom-color: var(--text); }

/* contact */
.contact { margin-bottom: -2.9px; display: flex; flex-direction: column; gap: 8px; font-family: var(--words); font-weight: 300; font-size: 12px; line-height: 1; }
.foot { align-self: flex-start; color: var(--grey); border-bottom: 1px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
.foot:hover, .foot:focus-visible { color: var(--text); border-bottom-color: var(--text); }
.copy { font-size: 10px; color: var(--grey); }

/* ---------- photo rows ---------- */

.strip { display: flex; gap: 24px; overflow-x: auto; overflow-y: hidden; padding-right: 40px; scrollbar-width: none; -ms-overflow-style: none; }
.strip::-webkit-scrollbar { display: none; width: 0; height: 0; }
.strip.story { gap: 6px; }
.strip picture { display: block; flex: 0 0 auto; }
.strip img { display: block; height: var(--photo-h); width: auto; }

.cover { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.cover picture { flex: none; }
.cover:focus-visible img { outline: 1px solid var(--text); outline-offset: -1px; }
.cap { display: flex; gap: 14px; align-items: baseline; }
.cap-num { font-family: var(--nums); font-size: 12px; color: var(--grey); }
.cnum { border-bottom: 1px solid transparent; transition: border-color 150ms ease; }
.cover:hover .cnum, .cover:focus-visible .cnum { border-bottom-color: var(--text); }
.cap-title { font-family: var(--words); font-weight: 300; font-size: 12px; }

.sbar { position: relative; height: 1px; background: #F0F0F0; margin: 16px 40px 0 0; }
.sbar[hidden] { display: none; }
.sbar-thumb { position: absolute; top: 0; left: 0; height: 1px; width: 100%; background: #B8B8B8; }

/* ---------- story title + credits ---------- */

.storymeta { display: flex; align-items: baseline; gap: 16px; padding: 28px 40px 0 0; }
.crumb { flex: 0 0 auto; font-family: var(--words); font-weight: 300; font-size: 12px; color: var(--grey); border-bottom: 1px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
.crumb:hover, .crumb:focus-visible { color: var(--text); border-bottom-color: var(--text); }
.storyhead { display: flex; flex-direction: column; min-width: 0; }
.titleline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.titleline h1 { font-family: var(--words); font-weight: 300; font-size: 12px; }
.tnum { font-family: var(--nums); font-size: 12px; color: var(--grey); }
.credits { margin: 10px 0 0; display: flex; flex-direction: column; gap: 0; font-family: var(--words); font-weight: 300; font-size: 10px; line-height: 1.35; }
.credits div { display: flex; gap: 8px; }
.credits dt { flex: 0 0 auto; color: var(--grey); }
.credits dd { min-width: 0; color: var(--text); }

/* ---------- info ---------- */

.infowrap { font-family: var(--words); font-weight: 300; font-size: 12px; padding: 0 40px 0 0; display: flex; flex-wrap: nowrap; gap: 24px; }
.infopanel { flex: 0 1 585px; min-width: 0; height: var(--photo-h); display: flex; flex-direction: column; }
.bio { display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin-top: -4.4px; }
.bio p { font-size: 12px; line-height: 1.7; color: var(--text); }
.clients { gap: 28px; }
.clients h2 { margin: -4.4px 0 0; font-size: 12px; font-weight: 300; line-height: 1.7; color: var(--grey); }
.clientcols { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.clientcol { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; }
.clientcol h3 { font-size: 12px; font-weight: 400; color: var(--text); }
.clientcol ul { font-size: 12px; line-height: 1.5; color: var(--grey); }

/* ---------- 404 ---------- */

.notfound { padding-right: 40px; max-width: 520px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; line-height: 1.7; }
.notfound h1 { margin-top: -4.4px; font-size: 12px; font-weight: 400; line-height: 1.7; }

/* ---------- phone footer (hidden on desktop) ---------- */

.mfoot { display: none; flex-direction: column; gap: 10px; margin-top: 56px; padding-top: 20px; border-top: 1px solid #F0F0F0; font-family: var(--words); font-weight: 300; font-size: 12px; color: var(--grey); }
.mcopy { font-size: 10px; }

/* ---------- phone ---------- */

@media (max-width: 700px) {
  .page { display: block; }
  .side { width: auto; padding: 20px 20px 8px; gap: 0; }
  .sidecol { min-height: 0; gap: 0; }
  .side .contact, .side .copy { display: none; }
  .main { padding: 16px 20px 32px; }

  /* bigger invisible tap areas, without changing the look */
  .sec-row::after { content: ''; position: absolute; left: -8px; right: -8px; top: -7px; bottom: -7px; }
  .story-link::after { content: ''; position: absolute; left: -8px; right: 0; top: -2px; bottom: -2px; }
  .foot { position: relative; }
  .foot::after { content: ''; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }

  .strip { flex-direction: column; overflow: visible; padding-right: 0; gap: 12px; }
  .strip picture, .strip img { width: 100%; height: auto; }
  .cover .cap { display: none; }
  .sbar { display: none !important; }
  .storymeta { padding-right: 0; }
  .infowrap { flex-wrap: wrap; row-gap: 48px; padding-right: 0; }
  .infopanel { height: auto; flex-basis: 100%; }
  .notfound { padding-right: 0; }
  .mfoot { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
