@font-face {
  font-family: "Source Serif 4";
  src: url("SourceSerif4-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #172e26;
  --muted: #526258;
  --accent: #42614b;
  --line: #d9ddd2;
  --forest: #19362d;
  --cream: #f7f5e9;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.25em; }

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.shell {
  width: min(72rem, calc(100% - 6rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
}

.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.header-inner, .footer-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  flex: none;
  border-radius: 50%;
  color: var(--cream);
  background: var(--forest);
  font-size: 1.2rem;
  line-height: 1;
}

nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }

nav a, .footer-inner > a:last-child {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover, .footer-inner > a:last-child:hover { text-decoration: underline; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 21rem);
  align-items: end;
  gap: 2rem;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3.25rem, 6vw, 5.5rem);
}

h1, .project-copy h3, .experience h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

h1 {
  font-size: clamp(3.5rem, 8.2vw, 7.5rem);
  line-height: 0.98;
}

.intro em {
  color: var(--accent);
  font-family: Georgia, serif;
  font-weight: 400;
}

.intro > p {
  max-width: 27ch;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.33rem);
  line-height: 1.55;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

#projects { margin-bottom: clamp(3.5rem, 8vw, 6rem); }

.section-heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.project-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  overflow: hidden;
  border-radius: 1.5rem;
  color: var(--cream);
  background: var(--forest);
}

.project-copy {
  align-self: center;
  padding: clamp(1.75rem, 5vw, 4.5rem);
}

.app-icon {
  border-radius: 25%;
  box-shadow: 0 0 0 1px #e7ebdc40;
}

.project-copy h3 {
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 1.03;
}

.project-copy > p {
  max-width: 22ch;
  margin-top: 0.75rem;
  color: #d8e4d9;
  font-size: 1.125rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.75rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.button-light { background: var(--cream); color: var(--forest); }
.button-light:hover { background: #e4e9db; }
.button-light:focus-visible { outline-color: var(--cream); }
.button-dark { background: var(--forest); color: var(--cream); }
.button-dark:hover { background: var(--accent); }
.button-dark:focus-visible { outline-color: var(--forest); }

.project-art, .verse-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #253e32;
}

.project-art {
  min-height: 29rem;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 2.4rem 1rem 0;
}

.lake-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-art .lake-backdrop { object-position: 66% center; }

.phone {
  width: min(100%, 16.25rem);
  padding: 0.6rem 0.75rem 1.25rem;
  border: 0.38rem solid #162a22;
  border-radius: 1.85rem;
  color: var(--ink);
  background: #fbfaf5;
  box-shadow: 0 1.25rem 3rem #0a1a15a0, 0 0 0 1px #f4eee45c;
}

.phone-camera {
  width: 1.8rem;
  height: 0.35rem;
  margin: 0 auto 0.85rem;
  border-radius: 0.5rem;
  background: #21382e;
}

.phone-title, .phone-rhythm {
  font-family: var(--serif);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.phone-title { font-size: 2rem; }

.phone-subtitle {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.phone-verse {
  margin-top: 0.75rem;
  padding: 0.7rem;
  border-radius: 0.55rem;
  color: white;
  background: linear-gradient(105deg, #1a3027f0, #1a302755), url("stillwater-lake.jpg") 65% center / cover;
}

.phone-verse span, .phone-verse cite {
  font-size: 0.625rem;
  font-style: normal;
}

.phone-verse span { text-transform: uppercase; letter-spacing: 0.075em; }
.phone-verse p { font: 1.0625rem/1.18 var(--serif); }

.phone-rhythm {
  margin-top: 0.9rem;
  font-size: 1.2rem;
}

.phone-progress {
  height: 0.2rem;
  margin-block: 0.45rem 0.55rem;
  border-radius: 1rem;
  background: #dde4d8;
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.27rem 0.45rem;
  border: 1px solid #dde4d8;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.phone-item i {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: #dce8d9;
}

.phone-item:nth-last-child(2) i { background: #eee5cf; }
.phone-item:last-child i { background: #eae8f0; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #eef0e8;
}

.detail { padding-bottom: clamp(3.5rem, 8vw, 6rem); }

.detail-intro {
  padding-block: clamp(3.75rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
}

.detail-intro .app-icon { margin-bottom: 1.3rem; }

.detail-intro p {
  max-width: 35ch;
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
}

.verse-banner {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 0.8rem;
  min-height: clamp(19rem, 44vw, 32rem);
  padding: clamp(1.6rem, 6vw, 4.5rem);
  border-radius: 1.5rem;
  color: var(--cream);
}

.verse-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(18deg, #0c211bed 9%, #11261d84 50%, #172c2108 85%);
}

.verse-banner blockquote {
  max-width: 17ch;
  font: clamp(2.3rem, 6vw, 5.25rem)/1.02 var(--serif);
  letter-spacing: -0.05em;
}

.verse-banner figcaption { font-weight: 600; }

.experience {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 8vw, 6.5rem);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.experience h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
}

.experience p {
  max-width: 38ch;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.feature-list { display: grid; }

.feature-list > div {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.feature-list > div:last-child { border-bottom: 1px solid var(--line); }

dt { font-weight: 700; }
dd { margin-top: 0.2rem; color: var(--muted); }

.project-notes {
  padding: clamp(1.35rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #eef0e8;
}

.project-notes dl {
  display: grid;
  grid-template-columns: 1fr 1fr 0.65fr;
  gap: clamp(1.25rem, 5vw, 3.5rem);
  margin-top: 1.25rem;
}

@media (max-width: 54rem) {
  .shell { width: calc(100% - 3rem); }
  .intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .intro > p { max-width: 32ch; }
  .project-card { grid-template-columns: 1fr 1.25fr; }
}

@media (max-width: 40rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner, .footer-inner { min-height: 4.25rem; }
  .wordmark { gap: 0.45rem; }
  .brand-mark { width: 1.75rem; height: 1.75rem; }
  h1 { font-size: clamp(2.85rem, 12vw, 4.75rem); }
  .project-card, .experience, .project-notes dl { grid-template-columns: 1fr; }
  .project-copy { padding: 1.75rem; }
  .project-copy .app-icon { width: 3rem; height: 3rem; }
  .project-art { min-height: 0; padding-block: 1.55rem; }
  .verse-banner .lake-backdrop { object-position: 58% center; }
}
