:root {
  color-scheme: light;
  --paper: #eee9de;
  --ivory: #f5f0e4;
  --sea: #172d30;
  --ink: #203835;
  --muted: #566b61;
  --moss: #9fad80;
  --line: rgba(40, 66, 57, .22);
  --focus: #80582e;
  --gutter: clamp(24px, 5.55vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: var(--muted) var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { color: var(--ivory); background: var(--sea); }
[hidden] { display: none !important; }
.page-shell { max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 5; top: 16px; left: 24px; padding: 10px 18px; background: var(--sea); color: var(--ivory); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: "Fraunces", Georgia, serif; font-size: 42px; font-weight: 550; line-height: 1; letter-spacing: -.04em; text-decoration: none; }
.wordmark:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.wordmark span, .site-footer > p:first-child span { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 42px; }
.project-nav { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; text-decoration: none; }
.project-nav:hover { text-decoration: underline; }
.language-switch { display: flex; gap: 2px; }
.language-switch button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.language-switch button:hover { color: var(--ink); }
.introduction { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); align-items: end; gap: 56px; padding-block: 108px 100px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 450; text-wrap: balance; }
h1 { font-size: clamp(50px, 5.55vw, 82px); line-height: 1.07; letter-spacing: -.04em; }
h1 span { display: block; }
h1 span + span { color: var(--muted); }
.intro-copy { max-width: 30ch; padding-bottom: 4px; font-size: 20px; line-height: 1.55; }
.project { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); background: var(--sea); color: var(--ivory); }
.project-image { position: relative; display: grid; min-width: 0; margin: 0; }
.project-image img { width: 100%; height: 100%; min-height: 510px; max-height: 650px; object-fit: cover; object-position: 54% center; }
.project-image figcaption { position: absolute; left: 20px; bottom: 18px; padding: 3px 9px; color: var(--ivory); background: rgba(16, 36, 38, .84); font-size: 13px; line-height: 1.55; }
.project-story { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 50px clamp(30px, 3.5vw, 50px) 46px; }
h2 { font-size: clamp(48px, 4.1vw, 62px); line-height: 1.1; letter-spacing: -.035em; }
.project-status { display: flex; align-items: center; gap: 9px; margin-top: 15px; color: #c8d0bc; font-size: 16px; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--moss); }
.project-description { max-width: 32ch; color: #dddccf; font-size: 19px; line-height: 1.6; }
.project-link { display: inline-flex; min-height: 52px; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid rgba(245, 240, 228, .3); font-weight: 600; text-decoration: none; }
.project-link svg { flex-shrink: 0; transition: transform 220ms var(--ease); }
.project-link:hover svg { transform: translateX(4px); }
.project-link:hover { color: #d3dcbd; }
.project-link:focus-visible { outline-color: var(--moss); }
.site-footer { display: flex; align-items: baseline; gap: 32px; margin-top: 88px; padding-block: 28px 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer > p:first-child { color: var(--ink); font-family: "Fraunces", Georgia, serif; font-size: 25px; font-weight: 550; letter-spacing: -.04em; }
.footer-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-footer a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (min-width: 1600px) {
  .introduction { padding-block: 125px 110px; }
}

@media (max-width: 1100px) {
  .introduction { grid-template-columns: 1fr; gap: 28px; padding-block: 80px 70px; }
  .intro-copy { max-width: 46ch; }
  .project { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .project-story { padding: 36px 28px; }
  .project-image img { min-height: 485px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 100px; }
  .wordmark { font-size: 36px; }
  .header-actions { gap: 19px; }
  .project-nav { font-size: 16px; }
  .introduction { padding-block: 64px 54px; gap: 28px; }
  h1 { font-size: clamp(42px, 8.6vw, 62px); line-height: 1.1; }
  .intro-copy { max-width: 34ch; font-size: 19px; }
  .project { grid-template-columns: 1fr; }
  .project-image img { height: auto; min-height: 0; max-height: none; aspect-ratio: 1.35; object-position: 56% center; }
  .project-image figcaption { left: 14px; bottom: 13px; font-size: 12px; }
  .project-story { gap: 28px; padding: 30px 26px 24px; }
  h2 { font-size: 49px; }
  .project-status { margin-top: 12px; }
  .project-description { max-width: 40ch; font-size: 18px; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; margin-top: 56px; padding-block: 24px 28px; }
  .site-footer > p:first-child { grid-column: 1; }
  .site-footer > p:nth-child(2) { grid-column: 1; font-size: 14px; }
  .footer-links { grid-column: 2; grid-row: 1 / span 2; align-self: center; flex-direction: column; align-items: flex-end; gap: 0; margin-left: 0; }
  .site-footer a { font-size: 14px; }
}

@media (max-width: 370px) {
  .header-actions { gap: 8px; }
  .language-switch { gap: 0; }
  h1 { font-size: 38px; }
  .site-footer { grid-template-columns: 1fr; gap: 5px; }
  .footer-links { grid-column: 1; grid-row: auto; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .project-link:hover svg { transform: none; }
}
