/* TM Media — one-page photojournalism site
   Newsprint paper, ink black, one ember accent. */

@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap");

:root {
  --ink: #12110e;
  --paper: #f3eee6;
  --ember: #d63a2f;
  --ash: #6e675f;
  --line: #e3d9cc;
  --ink-soft: #1c1b17;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Newsreader", Georgia, serif;
  --space: 1.25rem;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  /* Keep in-page jumps below the sticky bar so the page does not slide under it. */
  scroll-padding-top: 4.25rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--ember);
  color: var(--paper);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  height: 3.9rem;
  margin: 0 auto;
  padding: 0 var(--space);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-logo {
  height: 3.1rem;
  width: auto;
}

.mark {
  display: none;
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.mark-third {
  fill: var(--ember);
}

.brand:not(.is-fallback) > span {
  display: none;
}
.brand.is-fallback .brand-logo {
  display: none;
}

.brand.is-fallback .mark {
  display: block;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.nav-toggle .close-icon {
  display: none;
}

/* Mobile menu sits under the bar */
.nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 3.9rem;
  padding: 0.5rem var(--space) 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav.is-open a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  font-size: 1.5rem;
}

/* Landing ------------------------------------------------- */

.hero,
.band,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--space);
}

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: end;
  padding-top: 2.75rem;
  scroll-margin-top: 4.25rem;
}

.kicker,
.eyebrow {
  margin: 0;
  font-family: var(--display);
  font-size: calc(0.9rem + 1pt);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker,
.eyebrow-hot {
  color: var(--ember);
}

.eyebrow {
  color: var(--ember);
}

h1,
h2,
h3,
.who {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  margin: 1rem 0 0;
  font-size: clamp(4.25rem, 16vw, 7.5rem);
}

h1 span {
  display: block;
}

.dot {
  color: var(--ember);
}

.deck,
.lede,
.press p {
  max-width: 38rem;
  text-wrap: pretty;
}

.deck {
  margin: 1.5rem 0 0;
  font-size: 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
  background: var(--ember);
}

.text-link,
.editor-body a,
.cards a,
.site-footer a {
  text-underline-offset: 0.25em;
}

.text-link {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link:hover,
.editor-body a:hover,
.cards a:hover,
.site-footer a:hover {
  color: var(--ember);
}

.cover,
.editor,
.frames figure,
.cards address {
  border: 1px solid var(--line);
  background: var(--paper);
}

.cover {
  margin: 0;
  background: var(--ink);
  border-color: var(--ink);
}

.slogan {
  margin: 0;
  padding: 1rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.cover img,
.frames img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.cover figcaption,
.frames figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover figcaption {
  background: var(--paper);
  color: var(--ink);
}

.cover figcaption span:last-child,
.num,
.role {
  color: var(--ash);
}

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

.band {
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
}

.lede {
  margin: 1.25rem 0 0;
}

.editors,
.frames,
.cards {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.editor {
  background: var(--paper);
}

.plate {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ink-soft);
  color: var(--paper);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-fallback {
  display: none;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.plate-fallback strong {
  font-family: var(--display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.9;
}

.plate-fallback strong::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 0.25rem;
  margin-bottom: 1rem;
  background: var(--ember);
}

/* Shown only when chaz.jpg / david.jpg is missing */
.plate.is-fallback img {
  display: none;
}

.plate.is-fallback .plate-fallback {
  display: flex;
}

.editor-body,
.cards address {
  padding: 1.25rem;
}

h3,
.who {
  margin: 0;
  font-size: 1.85rem;
}

.role {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editor-body a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.75rem;
}

.blurb {
  margin: 0.85rem 0 0;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Frames -------------------------------------------------- */

.frames {
  gap: 2rem;
}

.frames figure {
  margin: 0;
}

.frames figcaption {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--body);
  font-size: 1.1rem;
}

.num {
  font-family: var(--display);
  letter-spacing: 0.14em;
}

/* Press freedom ------------------------------------------- */

.press {
  background: var(--ink);
  color: var(--paper);
}

.press-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--space);
}

.press p {
  margin: 1.5rem 0 0;
}

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

.cards address {
  font-style: normal;
}

.cards a.phone {
  display: block;
  min-height: 0;
  margin-top: 1.25rem;
  font-family: var(--body);
  font-size: 1.25rem;
  letter-spacing: 0;
  text-decoration: none;
}

.cards a.mail {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 0.25rem;
  font-family: var(--body);
  font-size: 1.25rem;
  letter-spacing: 0;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ember);
}

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

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer span,
.site-footer a {
  color: var(--ash);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--body);
}

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

/* Desktop ------------------------------------------------- */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    padding-top: 4.5rem;
    padding-bottom: 6rem;
  }

  .cover {
    /* Top of the frame lines up with the top of THIRD, under the kicker. */
    margin-top: calc(1.55 * (0.9rem + 1pt) + 1rem);
  }

  .band {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .press-inner {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .editors,
  .frames,
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .frames {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
