:root {
  --green: #0e372d;
  --green-deep: #082b23;
  --cream: #fdf6e9;
  --terracotta: #c56436;
  --ink: #24342f;
  --muted: #61706a;
  --white: #ffffff;
  --line: rgba(14, 55, 45, 0.14);
  --shadow: 0 16px 40px rgba(14, 55, 45, 0.12);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
p {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--terracotta);
  border-radius: 6px;
  transform: translateY(-170%);
}

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

.pixel-image {
  display: none;
}

.site-header {
  color: var(--white);
  background: var(--green);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  width: fit-content;
}

.brand img,
.footer-brand img {
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
}

.header-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  text-align: right;
}

.choice-section {
  padding-block: 50px 62px;
}

.intro {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.intro h1 {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 14px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  line-height: 1.08;
}

.intro h1::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 58px;
  height: 2px;
  content: "";
  background: var(--terracotta);
  transform: translateX(-50%);
}

.intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project-card {
  min-width: 0;
}

.project-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(14, 55, 45, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  border-color: var(--terracotta);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9ded9;
}

.project-media picture,
.project-media img {
  width: 100%;
  height: 100%;
}

.project-media img {
  object-fit: cover;
  object-position: center;
  transition: transform 260ms ease;
}

.project-card:first-child .project-media img {
  object-position: 53% center;
}

.project-card:nth-child(2) .project-media img {
  object-position: 64% center;
}

.project-card-soon .project-media img {
  object-position: center;
  filter: blur(4px) saturate(0.78);
  transform: scale(1.025);
}

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

.project-card-soon .project-link:hover .project-media img,
.project-card-soon .project-link:focus-visible .project-media img {
  transform: scale(1.05);
}

.status {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-content {
  min-height: 190px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 22px;
  text-align: center;
}

.project-content h2 {
  margin-bottom: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.08;
}

.project-content h2 span {
  display: block;
  color: var(--terracotta);
}

.project-rule {
  width: 46px;
  height: 2px;
  display: block;
  margin: 16px auto 18px;
  background: var(--terracotta);
}

.project-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: var(--green);
  font-weight: 750;
}

.arrow,
.lock {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--terracotta);
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.lock {
  position: relative;
  color: var(--green);
  background: rgba(14, 55, 45, 0.12);
}

.lock::before {
  position: absolute;
  top: 9px;
  left: 11px;
  width: 10px;
  height: 9px;
  content: "";
  border: 2px solid var(--green);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.lock::after {
  position: absolute;
  top: 16px;
  left: 9px;
  width: 14px;
  height: 11px;
  content: "";
  border: 2px solid var(--green);
  border-radius: 3px;
}

.project-link:hover .arrow,
.project-link:focus-visible .arrow {
  transform: translateX(3px);
}

.site-footer {
  padding-top: 44px;
  color: var(--white);
  background: var(--green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 38px;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a,
.footer-contact a {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.83);
  text-decoration-color: rgba(255, 255, 255, 0.36);
  text-underline-offset: 4px;
}

.footer-nav span {
  margin-left: 5px;
  color: #e9a27e;
}

.footer-brand {
  align-self: center;
}

.footer-brand img {
  width: 136px;
}

.footer-contact p {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

:focus-visible {
  outline: 3px solid #f2a47e;
  outline-offset: 3px;
}

@media (min-width: 680px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .project-media {
    aspect-ratio: 4 / 3;
  }

  .project-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: 1.25fr 0.75fr 1fr;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .header-inner {
    min-height: 106px;
  }

  .brand img {
    width: 126px;
  }

  .choice-section {
    padding-block: 42px 56px;
  }

  .intro {
    margin-bottom: 32px;
  }

  .intro h1 {
    font-size: 2.85rem;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .project-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .project-media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 82px;
    gap: 18px;
  }

  .brand img {
    width: 88px;
  }

  .header-inner p {
    max-width: 180px;
    font-size: 0.83rem;
  }

  .choice-section {
    padding-block: 38px 46px;
  }

  .intro {
    margin-bottom: 28px;
  }

  .intro h1 {
    font-size: 2.1rem;
  }

  .intro p {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
