@font-face {
  font-family: "Gelica Semibold";
  src: local("Gelica Semibold"), local("Gelica SemiBold"), local("Gelica-SemiBold");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Gelica Light";
  src: local("Gelica Light"), local("Gelica-Light");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --green: #45696b;
  --teal: #94d6da;
  --orange: #e6654a;
  --ink: #113235;
  --paper: #fffdf6;
  --cream: #fff3dc;
  --sun: #f4c95d;
  --line: rgba(17, 50, 53, 0.16);
  --shadow: rgba(17, 50, 53, 0.22);
  --display: "Gelica Semibold", Georgia, "Times New Roman", serif;
  --display-alt: "Gelica Light", Georgia, "Times New Roman", serif;
  --body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18px 18px, rgba(69, 105, 107, 0.13) 0 2px, transparent 2px) 0 0 / 42px 42px,
    linear-gradient(180deg, var(--paper), var(--cream));
  font-family: var(--body);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

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

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

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(22px, 6vw, 92px);
  color: var(--paper);
}

.topbar a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 900;
}

.topbar a:not(.brand-mark) {
  padding: 8px 12px;
  border: 1px solid rgba(255, 253, 246, 0.38);
}

.brand-mark {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.hero {
  position: relative;
  min-height: 74svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  overflow: hidden;
  padding: clamp(94px, 12vw, 154px) clamp(22px, 6vw, 92px) clamp(62px, 9vw, 130px);
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(17, 50, 53, 0.98), rgba(69, 105, 107, 0.86)),
    var(--green);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(760px, 56vw);
  height: 100%;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(148, 214, 218, 0.42) 42% 100%);
  opacity: 0.76;
}

.hero-copy,
.hero-collage {
  position: relative;
  z-index: 2;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-family: var(--display);
  font-size: clamp(3.3rem, 7.2vw, 7.2rem);
  line-height: 0.86;
}

h2 {
  margin-top: 16px;
  font-family: var(--display-alt);
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
  font-weight: 300;
  line-height: 0.96;
}

h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
}

.hero-copy p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px 0 0;
  font-size: 1.16rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-collage {
  min-height: 510px;
  align-self: center;
}

.hero-collage img {
  position: absolute;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 253, 246, 0.36);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.collage-main {
  right: 0;
  bottom: 20px;
  width: min(560px, 100%);
  height: 390px;
}

.collage-small {
  width: 240px;
  height: 170px;
}

.collage-small.top {
  top: 0;
  left: 0;
}

.collage-small.bottom {
  right: 42px;
  bottom: 0;
}

main {
  padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 76px);
}

.page-links {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(42px, 7vw, 88px);
  padding-bottom: clamp(34px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
}

.page-links > div > p {
  max-width: 540px;
  margin: 18px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.page-links ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.page-links li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.page-entry {
  min-height: 92px;
  display: grid;
  grid-template-columns: 94px auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  background: rgba(255, 253, 246, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(17, 50, 53, 0.12);
  text-decoration: none;
  font-weight: 900;
}

.page-entry::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--orange);
  font-family: var(--display);
  font-size: 1.28rem;
}

.page-entry img {
  width: 94px;
  height: 70px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
}

.page-entry span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.page-entry strong,
.page-entry em {
  overflow-wrap: anywhere;
}

.page-entry strong {
  line-height: 1.05;
}

.page-entry em {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  opacity: 0.76;
}

.page-live {
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
}

.page-entry:hover,
.page-entry:focus-visible,
.page-live:hover,
.page-live:focus-visible {
  color: var(--paper);
  background: var(--green);
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.page-entry:hover em,
.page-entry:focus-visible em {
  opacity: 1;
}

.grid {
  display: grid;
  gap: clamp(28px, 6vw, 76px);
}

.site-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px var(--shadow);
}

.feature-card {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.feature-card .screenshot-link {
  order: 2;
}

.feature-card .card-body {
  order: 1;
}

.screenshot-link {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--ink);
}

.screenshot-link::after {
  content: "Open";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  color: var(--paper);
  background: var(--orange);
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: 160ms ease;
}

.screenshot-link:hover::after,
.screenshot-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 240ms ease;
}

.screenshot-link:hover img,
.screenshot-link:focus-visible img {
  transform: scale(1.025);
}

.card-body {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(28px, 5vw, 66px);
}

.card-number {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
}

.card-body p {
  max-width: 560px;
  font-size: 1.05rem;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  color: var(--paper);
  background: var(--orange);
  text-decoration: none;
  font-weight: 900;
}

.button.light {
  color: var(--ink);
  background: var(--paper);
}

.button.ghost {
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 253, 246, 0.44);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 26px clamp(18px, 5vw, 76px);
  color: var(--paper);
  background: var(--orange);
}

footer strong {
  font-family: var(--display);
  font-size: 1.24rem;
}

footer span {
  justify-self: end;
  font-weight: 900;
}

@media (max-width: 1060px) {
  .hero,
  .page-links,
  .site-card,
  .feature-card,
  footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-collage {
    min-height: 420px;
  }

  .feature-card .screenshot-link,
  .feature-card .card-body {
    order: initial;
  }

  .screenshot-link {
    min-height: 360px;
  }

  footer span {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .topbar {
    position: relative;
    padding: 16px 18px;
    color: var(--ink);
    background: var(--paper);
  }

  .topbar a:not(.brand-mark) {
    border-color: var(--line);
  }

  .hero {
    min-height: auto;
    padding: 42px 18px 52px;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  main {
    padding: 34px 14px;
  }

  .page-links {
    padding-bottom: 34px;
  }

  .page-links li {
    grid-template-columns: 1fr;
  }

  .page-entry {
    grid-template-columns: 78px auto minmax(0, 1fr);
  }

  .page-entry img {
    width: 78px;
    height: 58px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-collage {
    min-height: 360px;
  }

  .collage-main {
    right: 0;
    bottom: 32px;
    height: 260px;
  }

  .collage-small {
    width: 158px;
    height: 112px;
  }

  .collage-small.bottom {
    right: 18px;
    bottom: 0;
  }

  .screenshot-link {
    min-height: 240px;
  }

  .card-body {
    padding: 24px;
  }
}
