@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16202a;
  --paper: #faf9f6;
  --navy: #1d3f66;
  --navy-dark: #122a45;
  --muted: #5b636b;
  --tint: #eef2f6;
  --rule: #e4e1d8;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 30;
  padding: 8px 14px;
  background: #ffffff;
  color: var(--navy);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Banner */

.hero {
  position: relative;
  height: 40rem;
  overflow: hidden;
  background: #24323d;
  color: #ffffff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 30, 0) 45%, rgba(10, 20, 30, 0.7) 100%);
}

.hero-logo {
  position: absolute;
  top: 32px;
  right: 40px;
  z-index: 1;
  width: 28%;
  min-width: 130px;
  max-width: 230px;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-text .wrap { padding-bottom: 44px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1.05;
}

.tagline {
  margin: 14px 0 0;
  max-width: 660px;
  font-size: 20px;
}

.hero a:focus-visible { outline-color: #ffffff; }

/* Menu */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

.nav-spacer { grid-column: 1; grid-row: 1; }

.nav-links {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 16px 0 14px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover { color: var(--navy); }

.nav-links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.nav-instagram {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  color: var(--navy);
  text-decoration: none;
}

.nav-instagram img,
.footer-instagram img {
  width: 29px;
  height: 29px;
  flex: none;
}

.nav-instagram:hover span { text-decoration: underline; }

.menu-toggle { display: none; }

@media (max-width: 899px) {
  .nav-inner { grid-template-columns: auto 1fr; }

  .nav-spacer { display: none; }

  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
  }

  .bars,
  .bars::before,
  .bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .bars { position: relative; }

  .bars::before,
  .bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .bars::before { top: -6px; }
  .bars::after { top: 6px; }

  .nav-instagram {
    grid-column: 2;
    padding: 12px 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }

  .js .nav-links { display: none; }
  .js .nav-open .nav-links { display: flex; }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links a[aria-current="page"] { border-bottom-color: var(--rule); }
}

/* Page sections */

main { padding-top: 60px; }

.lede {
  margin: 0;
  max-width: 900px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.5;
}

main section { margin-top: 60px; }

h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
}

.threads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.thread {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 10px;
  padding: 24px 28px;
  background: var(--tint);
  border-top: 4px solid var(--navy);
}

.thread h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.2;
  color: var(--navy);
}

.thread p { margin: 0; font-size: 16px; }

.more { margin: 16px 0 0; font-size: 16px; }

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.photos figure { margin: 0; }

.photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

.photos figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: #4b5560;
}

.people {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person { width: 140px; }

.person img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

.person .name { margin: 10px 0 0; font-weight: 600; }
.person .role { margin: 0; font-size: 14px; color: var(--muted); }

.join {
  padding: 32px 36px;
  background: var(--tint);
  border-top: 4px solid var(--navy);
}

.join h2 { margin-bottom: 10px; font-size: 28px; }
.join p { margin: 0; max-width: 820px; font-size: 16px; }

.pub {
  margin: 0 0 14px;
  max-width: 900px;
  font-size: 16px;
}

.pub a { font-weight: 600; }

.pub-meta { font-size: 15px; color: var(--muted); }

.note { margin: 0; font-size: 15px; color: var(--muted); }

/* Footer */

.site-footer {
  margin-top: 64px;
  background: var(--ink);
  color: #d3d8de;
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.site-footer p { margin: 0; }
.site-footer .lab { margin-bottom: 4px; color: #ffffff; font-weight: 600; }
.site-footer a { color: #ffffff; }

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.footer-instagram:hover span { text-decoration: underline; }
.site-footer a:focus-visible { outline-color: #ffffff; }

/* Not found page */

.notfound { padding: 80px 0 40px; }
.notfound img { width: 180px; height: auto; margin-bottom: 28px; }
.notfound h1 { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.15; }
.notfound p { margin: 0 0 12px; max-width: 620px; }

/* Phones */

@media (max-width: 600px) {
  body { font-size: 16px; }

  .wrap { padding-left: 20px; padding-right: 20px; }

  .hero { height: 36rem; }

  .hero::after {
    background: linear-gradient(180deg, rgba(10, 20, 30, 0) 18%, rgba(10, 20, 30, 0.72) 62%, rgba(10, 20, 30, 0.8) 100%);
  }

  .hero-logo { top: 20px; right: 20px; }

  .hero-text .wrap { padding-bottom: 32px; }

  .eyebrow { font-size: 12px; }

  .tagline { font-size: 18px; }

  main { padding-top: 44px; }

  .lede { font-size: 20px; }

  main section { margin-top: 48px; }

  h2 { font-size: 28px; }

  .thread { padding: 20px 22px; }

  .thread h3 { font-size: 22px; }

  .photos { grid-template-columns: 1fr 1fr; gap: 16px 12px; }

  .photos img { height: 120px; }

  .photos figcaption { font-size: 13px; line-height: 1.4; }

  .people { gap: 24px 16px; }

  .join { padding: 24px 22px; }

  .join h2 { font-size: 24px; }
}
