:root {
  --deep: #123f43;
  --teal: #2a7478;
  --gold: #85682a;
  --gold-light: #c9ad6a;
  --text: #2d3b3b;
  --cream: #fcfaf6;
  --sage: #edf3ee;
  --white: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --space: clamp(3.5rem, 8vw, 6.5rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 1.0625rem/1.75 var(--sans);
}

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

a { color: var(--teal); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { color: var(--deep); }
a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--deep); text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 1.5rem; }
h2::after { content: ""; display: block; width: 3.5rem; height: 2px; margin-top: .9rem; background: var(--gold-light); }
h3 { font-size: 1.4rem; margin: 0 0 .5rem; }
p { margin: 0 0 1.2rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
.center { text-align: center; }
.center h2::after { margin-inline: auto; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2; background: var(--white); padding: .5rem 1rem; }

/* Header */
.site-header { padding: 1.4rem 1.25rem; background: var(--white); }
.site-header a { display: block; width: min(100%, 25rem); margin-inline: auto; }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  min-height: clamp(18rem, 42vh, 24rem);
  padding-block: 3rem;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 45, 46, .82) 0%, rgba(8, 45, 46, .55) 45%, rgba(8, 45, 46, .08) 80%),
    url("img/leaf.jpg") center / cover no-repeat;
}
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 6.2vw, 4.4rem); margin: 0 0 1rem; }
.hero p { max-width: 34rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero .subtitle { font: italic 400 clamp(1.2rem, 2.4vw, 1.55rem)/1.5 var(--serif); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

/* Sections */
section { padding-block: var(--space); }
.tinted { background: var(--sage); }

.welcome { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
figure { margin: 0; text-align: center; }
figure img { width: 100%; border-radius: 12rem 12rem 1rem 1rem; box-shadow: 0 1.5rem 3rem -1.5rem rgba(18, 63, 67, .45); }
figcaption { margin-top: 1.25rem; line-height: 1.5; }
figcaption strong { display: block; font: 400 1.45rem var(--serif); color: var(--deep); }
figcaption span { font-size: .9rem; color: var(--gold); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; margin-top: 3rem; text-align: left; }
.card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--white);
  border-top: 3px solid var(--teal);
  border-radius: .75rem;
  box-shadow: 0 .75rem 2rem -1.25rem rgba(18, 63, 67, .35);
  font-size: 1rem;
}
.card .claim { font: italic 400 1.08rem/1.5 var(--serif); color: var(--gold); }
.card .link { margin: auto 0 0; padding-top: .5rem; font-weight: 600; font-size: .95rem; }

/* Closing band */
.band { background: var(--deep); color: #e4eeec; }
.band h2 { color: var(--white); }
.button {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 1.6rem;
  border: 1px solid var(--gold-light);
  border-radius: 3rem;
  color: var(--white);
  text-decoration: none;
}
.button:hover { background: var(--gold-light); color: var(--deep); }
.contact-label { display: block; margin-top: 1.75rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }

/* Footer */
.site-footer { padding: 3rem 1.25rem; text-align: center; font-size: .92rem; background: var(--white); border-top: 1px solid #e4e9e4; }
.site-footer .name { font: 400 1.35rem var(--serif); color: var(--deep); margin-bottom: .2rem; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; list-style: none; margin: 1.25rem 0; padding: 0; }
.site-footer small { color: #667474; }

/* Legal pages */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid #e4e9e4; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 2rem; }
.legal h2 { font-size: 1.5rem; margin: 2.75rem 0 1rem; }
.legal h2::after { width: 2.5rem; margin-top: .6rem; }
.legal h3 { font-size: 1.18rem; margin: 1.75rem 0 .6rem; }
.legal ul { margin: 0 0 1.2rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .35rem; }
.legal li::marker { color: var(--gold); }
.back { margin-top: 3rem; }

@media (max-width: 46rem) {
  .welcome { grid-template-columns: 1fr; }
  .welcome figure { width: min(100%, 25rem); margin-inline: auto; }
  .hero {
    background:
      linear-gradient(rgba(8, 45, 46, .62), rgba(8, 45, 46, .62)),
      url("img/leaf-small.jpg") center / cover no-repeat;
  }
}
