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

:root {
  --green: #04301a;
  --green-deep: #021f10;
  --green-lift: #0a3f23;
  --gold: #fbc926;
  --gold-soft: rgba(251, 201, 38, 0.28);
  --ivory: #f2efdf;
  --sage: #a8bba9;
  --edge: clamp(1.25rem, 5vw, 4.5rem);
  --font: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--green);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem var(--edge);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.wordmark img { height: 2.1rem; width: auto; }
.wordmark strong { font-weight: 600; }

.site-nav {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.5rem);
  font-size: 1rem;
  font-weight: 400;
}

.site-nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover { color: var(--gold); }

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

main { flex: 1; }

/* Home hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem;
  min-height: min(70vh, 42rem);
  padding: 3rem var(--edge) 0;
  overflow: hidden;
}

.hero-copy { padding-bottom: clamp(3rem, 8vh, 6rem); }

.hero h1 {
  margin: 0 0 1.75rem;
  max-width: 13ch;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ivory);
}

.hero p {
  margin: 0 0 2.25rem;
  max-width: 34rem;
  color: var(--sage);
  font-size: 1.25rem;
}

.hero-ram {
  justify-self: end;
  align-self: end;
  width: min(100%, 21rem);
  margin-right: clamp(0rem, 4vw, 4rem);
}

.horizon {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--gold);
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .horizon { animation: draw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-ram { animation: rise 0.9s 0.35s ease-out both; }
}

@keyframes draw { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Buttons and links */

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

.button {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: var(--green-deep);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.button:hover { background: transparent; color: var(--gold); }

.button.quiet { background: transparent; color: var(--gold); }
.button.quiet:hover { background: var(--gold); color: var(--green-deep); }

/* Home: what we do */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--green-deep);
}

.pair > div { padding: clamp(2.5rem, 6vw, 4.5rem) var(--edge); }
.pair > div + div { border-left: 1px solid var(--gold-soft); }

.pair h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold);
}

.pair p { margin: 0; max-width: 30rem; color: var(--sage); }

/* Inner pages */

.page-head { padding: clamp(2.5rem, 7vw, 5rem) var(--edge) clamp(2rem, 4vw, 3rem); }

.page-head h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.page-head p { margin: 0; max-width: 36rem; color: var(--sage); font-size: 1.25rem; }

/* Projects */

.projects { padding: 0 var(--edge) clamp(3rem, 7vw, 6rem); }

.project { margin: 0 0 clamp(3rem, 6vw, 5rem); }

.project img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--green-lift);
}

.project figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--gold);
}

.project h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
}

.project .place { color: var(--gold); font-weight: 400; }
.project .note { color: var(--sage); }
.project p { margin: 0; }

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: 0 var(--edge) clamp(3rem, 7vw, 6rem);
}

.contact-details { border-top: 1px solid var(--gold); padding-top: 1.5rem; }
.contact-details dl { margin: 0; }
.contact-details dt { color: var(--sage); font-size: 1rem; }
.contact-details dd { margin: 0 0 1.5rem; font-size: 1.3rem; }
.contact-details a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }

.contact-form { border-top: 1px solid var(--gold); padding-top: 1.5rem; }

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--sage);
  font-size: 1rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(242, 239, 223, 0.25);
  border-radius: 2px;
  background: var(--green-deep);
  color: var(--ivory);
  font: inherit;
  font-size: 1.05rem;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-note { margin: 1rem 0 0; color: var(--sage); font-size: 1rem; }

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem var(--edge);
  border-top: 1px solid var(--gold-soft);
  color: var(--sage);
  font-size: 0.95rem;
}

.site-footer img { height: 2.25rem; width: auto; opacity: 0.9; }

/* Small screens */

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .hero-copy { padding-bottom: 1.5rem; }
  .hero-ram { width: 11rem; margin-right: 0; }
  .pair { grid-template-columns: 1fr; }
  .pair > div + div { border-left: 0; border-top: 1px solid var(--gold-soft); }
  .project figcaption { grid-template-columns: 1fr; gap: 0.35rem; }
  .contact { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
