:root {
  --ink:#202c28;
  --paper:#f6f1e7;
  --green:#153b36;
  --teal:#305e53;
  --gold:#e8ba70;
  --line:#d8d6c9;
  --muted:#535e56;
  --header-height:78px
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.65
}

::selection {
  background:var(--gold);
  color:var(--ink)
}

a {
  color:inherit;
  text-underline-offset:5px
}

h1,h2,h3,p {
  margin:0
}

h1,h2,h3 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  line-height:1.12
}

section {
  scroll-margin-top:var(--header-height)
}

.section-inner {
  width:min(1180px,calc(100% - 80px));
  margin:auto
}

.section {
  padding:100px 0
}

.eyebrow,.small-label {
  font-size:.75rem;
  font-weight:650;
  letter-spacing:.11em;
  text-transform:uppercase
}

.eyebrow {
  color:var(--teal)
}

h2 {
  font-size:clamp(2.3rem,4vw,3.5rem);
  margin-top:18px
}

h3 {
  font-size:2rem
}

.skip-link {
  position:fixed;
  z-index:50;
  left:16px;
  top:12px;
  padding:10px 16px;
  background:var(--paper);
  transform:translateY(-160%)
}

.skip-link:focus {
  transform:translateY(0)
}

a:focus-visible {
  outline:3px solid #b56928;
  outline-offset:6px
}

.site-header {
  height:var(--header-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(40px,calc((100vw - 1180px)/2));
  background:var(--paper);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:20
}

.brand-mark {
  display:flex;
  gap:20px;
  align-items:center;
  text-decoration:none;
  font-family:Georgia,serif;
  font-size:1.7rem
}

.brand-mark span {
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:.9rem;
  font-weight:600;
  border-left:1px solid var(--line);
  padding-left:20px
}

.site-nav {
  display:flex;
  gap:28px;
  font-size:.9rem
}

.site-nav a {
  text-decoration:none;
  padding:10px 0
}

.site-nav a:hover,.site-nav a.is-active {
  color:var(--teal);
  text-decoration:underline
}

.hero {
  background:var(--green);
  color:var(--paper);
  padding:105px 0 90px
}

.hero-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 245px;
  gap:60px;
  align-items:end
}

.hero .eyebrow {
  color:#bfcec0
}

h1 {
  font-size:clamp(4rem,8vw,7.3rem);
  letter-spacing:-.045em;
  margin:28px 0
}

.hero-statement {
  font-family:Georgia,serif;
  font-size:clamp(1.6rem,3vw,2.55rem);
  line-height:1.3
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:30px;
  text-decoration:none;
  font-size:.9rem;
  font-weight:600;
  padding:15px 21px;
  background:var(--gold);
  color:var(--ink);
  border-radius:3px;
  min-height:50px
}

.hero .button {
  margin-top:40px
}

.button:hover {
  background:#f3ca8a
}

.hero-aside {
  border-top:1px solid #688078;
  padding-top:24px;
  padding-bottom:6px
}

.hero-aside .small-label {
  color:#bfcec0
}

.hero-aside p {
  margin:14px 0 24px;
  font-size:1.05rem
}

.hero-aside a {
  font-size:.85rem
}

.about-layout {
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:80px
}

.prose {
  max-width:690px;
  font-size:1.05rem
}

.prose p+p {
  margin-top:23px
}

.prose .education {
  font-size:.9rem;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:25px;
  margin-top:30px
}

.projects-section {
  background:#eaece2;
  border-top:1px solid var(--line)
}

.projects-heading {
  display:flex;
  gap:50px;
  align-items:end;
  justify-content:space-between;
  margin-bottom:50px
}

.projects-heading>p {
  max-width:295px;
  color:var(--muted);
  font-size:.95rem
}

.project-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px
}

.project-card {
  padding:34px;
  background:#fcfaf4;
  border:1px solid #d4d9cb;
  border-radius:4px;
  display:flex;
  flex-direction:column;
  align-items:start
}

.project-topline {
  display:flex;
  justify-content:space-between;
  gap:20px;
  width:100%;
  align-items:baseline;
  margin-bottom:40px
}

.project-number {
  font-family:Georgia,serif;
  color:var(--teal);
  font-size:1.2rem
}

.project-type {
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.07em;
  text-align:right;
  color:var(--muted)
}

.project-card p {
  color:var(--muted);
  font-size:.96rem;
  margin-top:20px;
  margin-bottom:30px;
  max-width:650px
}

.project-link {
  display:flex;
  gap:24px;
  align-items:center;
  font-weight:600;
  font-size:.88rem;
  margin-top:auto;
  padding-top:10px
}

.project-note {
  font-size:.85rem;
  font-style:italic;
  color:var(--muted);
  margin-top:auto;
  padding-top:10px
}

.featured {
  background:var(--green);
  color:var(--paper);
  border-color:var(--green)
}

.featured .project-number {
  color:var(--gold)
}

.featured .project-type,.featured p {
  color:#d0dbce
}

.wide {
  grid-column:1/-1
}

.contact-section {
  background:var(--green);
  color:var(--paper)
}

.contact-section .eyebrow {
  color:#bfcec0
}

.contact-layout {
  display:flex;
  justify-content:space-between;
  gap:45px;
  align-items:center
}

.contact-layout p:not(.eyebrow) {
  margin-top:20px;
  color:#d0dbce
}

.site-footer {
  width:min(1180px,calc(100% - 80px));
  margin:auto;
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:28px 0;
  font-size:.8rem;
  color:var(--muted)
}

@media(max-width:900px) {
  .hero-layout {
    grid-template-columns:minmax(0,1fr) 200px;
    gap:35px
  }
  .about-layout {
    grid-template-columns:1fr;
    gap:40px
  }
  .section {
    padding:75px 0
  }
  .projects-heading {
    display:block
  }
  .projects-heading>p {
    margin-top:22px;
    max-width:none
  }
  .project-card {
    padding:26px
  }
  .project-type {
    font-size:.64rem
  }
  .contact-layout {
    align-items:start;
    flex-direction:column
  }
}

@media(max-width:600px) {
  :root {
    --header-height:70px
  }
  .section-inner,.site-footer {
    width:calc(100% - 40px)
  }
  .site-header {
    padding:0 20px
  }
  .brand-mark {
    font-size:1.5rem
  }
  .brand-mark span {
    display:none
  }
  .site-nav {
    gap:20px;
    font-size:.85rem
  }
  .hero {
    padding:58px 0 48px
  }
  .hero-layout {
    grid-template-columns:1fr;
    gap:48px
  }
  h1 {
    margin:25px 0
  }
  .hero-statement {
    font-size:1.65rem
  }
  .hero .button {
    margin-top:30px
  }
  .hero-aside {
    max-width:none
  }
  .hero-aside p {
    margin:12px 0 16px
  }
  .section {
    padding:58px 0
  }
  .about-layout {
    gap:30px
  }
  .prose {
    font-size:1rem
  }
  .projects-heading {
    margin-bottom:30px
  }
  .project-grid {
    grid-template-columns:1fr;
    gap:16px
  }
  .wide {
    grid-column:auto
  }
  .project-card {
    padding:25px
  }
  .project-topline {
    margin-bottom:28px
  }
  .project-type {
    max-width:210px
  }
  .project-card h3 {
    font-size:1.8rem
  }
  .contact-layout {
    gap:28px
  }
  .site-footer {
    flex-wrap:wrap;
    column-gap:24px
  }
  .site-footer a {
    margin-left:auto
  }
}

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

/* Live project screenshots and card layout. */
.project-card {
  padding: 0;
  overflow: hidden;
}

.project-preview {
  display: block;
  width: 100%;
  background: #e4e8dc;
  border-bottom: 1px solid var(--line);
}

.project-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.project-preview:focus-visible {
  outline-offset: -4px;
}

.project-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  width: 100%;
  padding: 30px;
}

.project-topline {
  margin-bottom: 24px;
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
}

.featured .project-preview {
  align-self: center;
  border: 0;
}

.featured .project-details {
  justify-content: center;
  padding: 36px;
}

.featured .project-link {
  margin-top: 0;
}

@media (max-width: 900px) {
  .project-card.featured {
    display: flex;
  }
  .featured .project-details {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .project-details, .featured .project-details {
    padding: 25px;
  }
}
