@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: Lora;
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("./lora-italic-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --ink: #193c3c;
  --muted: #596763;
  --teal: #287674;
  --line: #d8ddd4;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
html { scroll-padding-block: 24px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { color: var(--ink); background: #edc96b80; }
:where(a):focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; border-radius: 2px; }

.page-shell { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-200%); z-index: 5; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 112px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 28px; font-weight: 600; letter-spacing: -1.3px; }
.brand img { width: 44px; height: 44px; }
.brand-period { color: var(--teal); }
.header-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; font-size: 14px; font-weight: 500; }
.header-link svg { width: 17px; height: 17px; }

.introduction { display: grid; grid-template-columns: 1.03fr 1fr; gap: 56px; align-items: center; padding-block: 66px 70px; }
.intro-copy { padding-bottom: 16px; }
h1 { font-size: clamp(46px, 5.25vw, 72px); font-weight: 500; line-height: 1.08; letter-spacing: -3.8px; }
h1 em { font-family: Lora, Georgia, serif; font-weight: 500; color: var(--teal); letter-spacing: -3.4px; }
.intro-text { max-width: 370px; margin-top: 26px; color: var(--muted); font-size: 16px; line-height: 1.8; text-wrap: pretty; }
.explore-link { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; margin-top: 28px; font-size: 13px; font-weight: 600; }
.round-arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #b9c6bd; border-radius: 50%; }
.round-arrow svg { width: 18px; height: 18px; }

.photo-composition { position: relative; padding: 0 0 94px 28px; }
.beach-photo { position: relative; z-index: 1; }
.beach-photo > img { width: 100%; height: 405px; object-fit: cover; object-position: 53% 50%; border-radius: 4px 110px 4px 4px; }
.beach-photo > figcaption { position: absolute; top: 16px; left: 16px; padding: 8px 10px; background: var(--paper); color: var(--ink); font-size: 9px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.beach-photo > figcaption span { margin-inline: 7px; color: #7a857d; }
.pool-photo, .travel-photo { position: absolute; z-index: 2; bottom: 0; padding: 7px 7px 0; background: var(--paper); box-shadow: 0 4px 15px #193c3c0d; }
.pool-photo { width: 158px; left: -6px; transform: rotate(-6deg); }
.pool-photo > img { width: 100%; height: 166px; object-fit: cover; }
.pool-photo > figcaption, .travel-photo > figcaption { padding-block: 10px 11px; text-align: center; color: var(--ink); font-size: 10px; letter-spacing: .3px; }
.travel-photo { z-index: 3; width: 250px; right: -4px; transform: rotate(6deg); }
.travel-photo > img { width: 100%; height: auto; aspect-ratio: 1024 / 684; }
.travel-photo > figcaption span { margin-inline: 6px; color: var(--muted); }

.projects { padding-bottom: 40px; scroll-margin-top: 20px; }
.section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.section-label h2 { font-size: 13px; font-weight: 500; }
.section-label > p { color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 14px 0 0; }
.project-list > li { display: flex; min-width: 0; }
.project-list > li + li { border-left: 1px solid var(--line); padding-left: 36px; }
.project-list > li:not(:last-child) { padding-right: 36px; }
.project-link { display: block; width: 100%; padding-block: 3px 10px; }
.project-category { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.project-category > span { color: #879187; margin-inline: 1px; }
.project-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.project-title h3 { font-family: "DM Sans", "Segoe UI", sans-serif; font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -1.3px; }
.project-title svg { width: 22px; height: 22px; color: var(--teal); }
.project-link > p { max-width: 280px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.75; text-wrap: pretty; }
.project-domain { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: 11px; font-weight: 500; color: var(--teal); }
.language-label { color: var(--muted); font-size: 9px; border-left: 1px solid var(--line); padding-left: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding-block: 25px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer > p:last-child { letter-spacing: .3px; }

@media (hover: hover) {
  .header-link:hover, .explore-link:hover { color: var(--teal); }
  .explore-link:hover .round-arrow { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .project-link:hover .project-title { color: var(--teal); }
  .project-link:hover .project-domain { text-decoration: underline; text-underline-offset: 4px; }
  .project-link:hover .project-title svg { transform: translate(3px, -3px); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .project-title svg { transition: transform 180ms ease; }
  .round-arrow { transition: background-color 180ms ease, color 180ms ease; }
}

@media (min-width: 1450px) {
  .introduction { padding-block: 80px; }
  .beach-photo > img { height: 435px; }
}

@media (max-width: 1080px) {
  .page-shell { width: calc(100% - 80px); }
  .introduction { gap: 36px; padding-block: 58px; }
  h1 { letter-spacing: -2.8px; }
  h1 em { letter-spacing: -2.8px; }
  .intro-text { font-size: 15px; }
  .photo-composition { padding-left: 10px; }
  .beach-photo > img { height: 370px; border-top-right-radius: 88px; }
  .pool-photo { width: 125px; left: -5px; }
  .pool-photo > img { height: 142px; }
  .beach-photo > figcaption { font-size: 8px; letter-spacing: .5px; }
  .beach-photo > figcaption span { margin-inline: 3px; }
  .travel-photo { width: 195px; right: -4px; }
  .project-list > li + li { padding-left: 24px; }
  .project-list > li:not(:last-child) { padding-right: 24px; }
  .project-title h3 { font-size: 24px; }
}

@media (max-width: 700px) {
  .page-shell { width: calc(100% - 48px); }
  .site-header { min-height: 88px; }
  .brand { gap: 9px; font-size: 25px; }
  .brand img { width: 37px; height: 37px; }
  .header-link { font-size: 12px; gap: 10px; }
  .introduction { grid-template-columns: 1fr; gap: 45px; padding-block: 44px 50px; }
  .intro-copy { padding-bottom: 0; }
  h1 { font-size: clamp(43px, 10.6vw, 66px); line-height: 1.08; letter-spacing: -2.7px; }
  h1 em { letter-spacing: -2.5px; }
  .intro-text { max-width: 390px; margin-top: 23px; font-size: 15px; line-height: 1.8; }
  .explore-link { margin-top: 20px; gap: 20px; }
  .photo-composition { margin-inline: 8px; padding-left: 20px; }
  .beach-photo > img { height: auto; aspect-ratio: 1.12; border-top-right-radius: 85px; }
  .pool-photo { width: 122px; left: -9px; bottom: 0; padding: 6px 6px 0; }
  .pool-photo > img { height: 132px; }
  .pool-photo > figcaption, .travel-photo > figcaption { padding-block: 9px; font-size: 9px; }
  .travel-photo { width: 190px; right: -8px; padding: 6px 6px 0; }
  .beach-photo > figcaption { top: 12px; left: 12px; padding: 7px 8px; font-size: 8px; letter-spacing: .5px; }
  .section-label { padding-block: 18px 5px; }
  .section-label h2 { font-size: 13px; }
  .section-label > p { display: none; }
  .project-list { grid-template-columns: 1fr; margin-top: 0; }
  .project-list > li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .project-list > li:not(:last-child) { padding-right: 0; }
  .project-link { padding-block: 24px; }
  .project-title { margin-top: 13px; }
  .project-title h3 { font-size: 27px; }
  .project-link > p { max-width: 310px; margin-top: 10px; }
  .project-domain { margin-top: 13px; }
  .projects { padding-bottom: 8px; }
  .site-footer { padding-block: 23px; font-size: 9px; }
}

@media (max-width: 360px) {
  .page-shell { width: calc(100% - 36px); }
  .header-link { gap: 6px; font-size: 11px; }
  .brand { font-size: 22px; gap: 7px; }
  .brand img { width: 33px; height: 33px; }
  h1 { font-size: 41px; letter-spacing: -2.5px; }
  .pool-photo { width: 106px; }
  .pool-photo > img { height: 112px; }
  .travel-photo { width: 152px; }
}
