@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --ink: #1d241f;
  --forest: #233e32;
  --green: #345345;
  --amber: #e9b480;
  --sand: #eee5d5;
  --line: #c4bcae;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.52 var(--sans);
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}

h1 {
  font-size: clamp(6.2rem, 12.5vw, 12rem);
  line-height: .79;
  letter-spacing: -.047em;
}

h2 {
  font-size: clamp(3.1rem, 6.4vw, 6rem);
  line-height: .96;
  letter-spacing: -.025em;
}

h3 {
  font-size: clamp(2.05rem, 3.6vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.016em;
}

p { margin: 0; }

a { color: inherit; }

a:focus-visible {
  outline: 3px solid #9a411f;
  outline-offset: 5px;
}

.frame {
  width: min(77rem, calc(100% - clamp(2.25rem, 10vw, 10rem)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 2;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  background: var(--forest);
  color: #fff;
  padding: .6rem 1rem;
}

.skip:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }

.masthead,
.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.masthead { min-height: 5.15rem; }

.wordmark {
  font: 400 2.75rem/.96 var(--serif);
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span,
.hero h1 span { color: #9a411f; }

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.8rem, 3.5vw, 2.65rem);
  font-size: 1.02rem;
  font-weight: 600;
}

nav a { text-decoration: none; }

nav a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.nav-contact {
  border: 1px solid var(--green);
  border-radius: 3rem;
  padding: .42rem .93rem;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2.6rem, 7vw, 6.6rem);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4.75rem, 9vw, 8rem);
}

.hero p {
  font-size: clamp(1.15rem, 1.9vw, 1.43rem);
  line-height: 1.4;
  max-width: 35ch;
  margin-top: clamp(1.6rem, 3.1vw, 2.55rem);
}

.portrait {
  min-width: 0;
  position: relative;
  isolation: isolate;
}

.portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  background: var(--amber);
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .95rem 1.3rem;
  margin-top: 1.6rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: .6em;
  font-size: 1rem;
  font-weight: 650;
}

.button {
  justify-content: space-between;
  padding: .76rem 1.14rem;
  border: 1px solid transparent;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
}

.button:hover { background: var(--green); }

.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: .26em;
  width: fit-content;
}

.text-link:hover { text-decoration-thickness: 2px; }

.work {
  padding-block: clamp(3.6rem, 7vw, 6.5rem);
  color: var(--paper);
  background: var(--forest);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2.4rem, 8vw, 8rem);
  margin-top: clamp(2.3rem, 4vw, 3.5rem);
}

.work article {
  border-top: 1px solid #809588;
  padding-top: 1.15rem;
}

.label {
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.work .label { color: #f4c99e; }

.work h3 {
  margin-top: .65rem;
  max-width: 20ch;
}

.work article > p:not(.label) {
  max-width: 48ch;
  margin-top: .85rem;
}

.projects { padding-block: clamp(3.8rem, 7.5vw, 7rem); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.2rem 2.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.45rem, 4vw, 4.2rem);
  margin-top: clamp(2.2rem, 3.8vw, 3.4rem);
}

.project-grid article {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}

.project-grid h3 { font-size: clamp(1.9rem, 2.8vw, 2.8rem); }

.project-grid p { margin-top: .65rem; }

:is(.project-grid, .journal-grid) h3 a { text-decoration: none; }

:is(.project-grid, .journal-grid) h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .13em;
}

:is(.project-grid, .journal-grid) h3 span {
  font: 600 .43em var(--sans);
  vertical-align: 15%;
  white-space: nowrap;
}

.journal {
  background: var(--sand);
  padding-block: clamp(3.75rem, 7.5vw, 7rem);
}

.journal-heading > div { min-width: 0; }

.journal-logo {
  width: min(100%, 24rem);
  height: auto;
}

.journal-heading p { margin-top: 1rem; }

.journal-heading .text-link {
  margin-bottom: .2rem;
  flex-shrink: 0;
}

.journal-grid {
  margin-top: clamp(2.1rem, 4vw, 3.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.1rem, 5vw, 5.5rem);
}

.story-image {
  display: block;
  margin-bottom: 1.15rem;
}

.story-image img {
  width: 100%;
  height: auto;
}

.journal-grid .label { color: #4b594e; }

.journal-grid h3 { margin-top: .28rem; }

.lead-story h3 { font-size: clamp(2.6rem, 4vw, 4.3rem); }

.journal-grid article > p:last-child {
  margin-top: .45rem;
  max-width: 52ch;
}

.stories article {
  border-top: 1px solid #b8ae9b;
  padding-block: .85rem 1rem;
}

.stories article:last-child { border-bottom: 1px solid #b8ae9b; }

.stories h3 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); }

.stories article > p:last-child {
  font-size: 1.04rem;
  line-height: 1.35;
}

.contact { padding-block: clamp(3.75rem, 7vw, 6.4rem); }

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 3rem;
}

.contact p { margin-top: .8rem; }

.contact .button { flex-shrink: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
  font-size: 1.02rem;
}

@media (max-width: 56rem) {
  .hero {
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  }

  .portrait::before { inset: .65rem -.65rem -.65rem .65rem; }

  h1 { font-size: clamp(5.25rem, 13vw, 7.25rem); }

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 42rem) {
  .masthead { min-height: 0; padding-block: 1rem; }
  .wordmark { font-size: 2.3rem; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.15rem;
    padding-top: 2.85rem;
  }

  h1 { font-size: clamp(4.7rem, 14vw, 6.1rem); line-height: .87; }
  h1 br { display: none; }
  .hero p { margin-top: 1.2rem; }
  .portrait { max-width: 30rem; margin-right: .65rem; }

  .work-grid,
  .project-grid,
  .journal-grid { grid-template-columns: minmax(0, 1fr); }

  .work-grid { gap: 2rem; }
  .project-grid { gap: 1.55rem; }
  .journal-grid { gap: 1.65rem; }
  .contact-layout { align-items: start; flex-direction: column; }
}

@media (max-width: 35rem) {
  .masthead { flex-wrap: wrap; gap: .65rem; }
  nav { width: 100%; justify-content: space-between; }
  .nav-contact { padding: .32rem .65rem; }
  h1 { font-size: clamp(3.9rem, 14vw, 5.1rem); }
}

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

.feed-note {
  margin-top: 1.5rem;
  max-width: 65ch;
}

.story-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
