:root {
  --ink: #101112;
  --slate: #202222;
  --muted: #686f77;
  --line: #d9dbe0;
  --paper: #f7f5ef;
  --white: #ffffff;
  --algae: #1acc6c;
  --algae-dark: #119f51;
  --moss: #304b35;
  --clay: #b75837;
  --sky: #d7e8ef;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: roc-grotesk, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  min-height: 76px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(16, 17, 18, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 168px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(26, 204, 108, 0.14);
  outline: none;
}

.hero {
  position: relative;
  min-height: 88svh;
  padding: 132px 28px 34px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-image: url("./assets/artizen-village-hero.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 11, 0.58);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-bottom: 82px;
}

.eyebrow,
.section-kicker,
.fact-label,
.thread-number {
  margin: 0 0 14px;
  color: var(--algae);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 1120px;
  font-family: p22-mackinac-pro, Georgia, serif;
  font-size: 4.3rem;
  line-height: 0.95;
  font-weight: 800;
  white-space: nowrap;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
}

.hero-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--algae);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #2be77d;
}

.button-secondary {
  border: 1px solid currentColor;
  color: inherit;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.hero-meta {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 1;
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(16, 17, 18, 0.62);
}

.hero-meta span {
  min-height: 58px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-meta span:last-child {
  border-right: 0;
}

section {
  scroll-margin-top: 88px;
}

.section-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.intro-band,
.program-band,
.logistics-band {
  padding: 92px 0;
  background: var(--paper);
}

.facts-band,
.experience-band {
  padding: 70px 0;
  background: var(--ink);
  color: var(--white);
}

.image-band,
.apply-band {
  padding: 92px 0;
  background: var(--white);
}

.intro-grid,
.experience-grid,
.logistics-grid,
.apply-grid,
.image-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2,
h3,
p {
  overflow-wrap: break-word;
}

h2 {
  margin: 0;
  font-family: p22-mackinac-pro, Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

.intro-copy,
.setting-copy,
.apply-copy,
.muted-copy {
  color: var(--slate);
  font-size: 1.08rem;
}

.intro-copy,
.setting-copy,
.apply-copy {
  display: grid;
  gap: 18px;
}

.apply-grid {
  align-items: stretch;
}

.apply-copy {
  grid-template-rows: auto auto auto minmax(260px, 1fr);
}

.application-image {
  min-height: 260px;
  margin: 2px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--slate);
}

.application-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.muted-copy {
  margin-top: 22px;
  color: var(--muted);
}

.facts-grid,
.thread-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fact-card,
.thread-card {
  min-height: 220px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.thread-card {
  background: var(--white);
  border-color: var(--line);
}

.fact-card strong {
  display: block;
  margin-bottom: 16px;
  font-family: p22-mackinac-pro, Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.fact-card p,
.experience-item p {
  color: rgba(255, 255, 255, 0.74);
}

.event-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--slate);
  aspect-ratio: 1 / 1;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-card h3 {
  font-family: p22-mackinac-pro, Georgia, serif;
  font-size: 1.75rem;
}

.thread-card p {
  color: var(--muted);
}

.experience-list,
.timeline {
  display: grid;
  gap: 12px;
}

.experience-item {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.experience-item:first-child {
  border-top: 0;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row time {
  color: var(--clay);
  font-weight: 800;
}

.timeline-row p {
  color: var(--slate);
}

.application-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label,
fieldset {
  min-width: 0;
}

label,
legend {
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 800;
}

.field-link {
  display: inline-block;
  margin-left: 6px;
  color: var(--algae-dark);
  text-underline-offset: 3px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c8ccd1;
  border-radius: var(--radius);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--algae-dark);
  box-shadow: 0 0 0 3px rgba(26, 204, 108, 0.18);
}

fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid #c8ccd1;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 12px;
}

.checkbox-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.checkbox-grid input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--algae);
  flex: 0 0 auto;
}

.form-footer {
  margin-top: 4px;
}

.form-footer .button-secondary {
  color: var(--ink);
}

.form-footer .button-secondary:hover,
.form-footer .button-secondary:focus-visible {
  background: var(--sky);
}

.form-status {
  min-height: 24px;
  color: var(--moss);
  font-weight: 800;
}

.form-status.has-error {
  color: #a12f2f;
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-grid p {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration-color: rgba(26, 204, 108, 0.72);
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    background: rgba(247, 245, 239, 0.96);
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    padding-left: 0;
  }

  .hero {
    min-height: 92svh;
    padding: 174px 20px 30px;
  }

  .hero h1 {
    font-size: 3.35rem;
    white-space: normal;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-content {
    padding-bottom: 118px;
  }

  .hero-meta {
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
  }

  .hero-meta span {
    min-height: 42px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-meta span:last-child {
    border-bottom: 0;
  }

  .intro-grid,
  .experience-grid,
  .logistics-grid,
  .apply-grid,
  .image-grid,
  .field-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .apply-copy {
    grid-template-rows: none;
  }

  .application-image {
    aspect-ratio: 3 / 4;
  }

  .facts-grid,
  .thread-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h2 {
    font-size: 2.35rem;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 148px;
  }

  .nav-links {
    gap: 4px 10px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-content {
    padding-bottom: 140px;
  }

  .intro-band,
  .program-band,
  .logistics-band,
  .image-band,
  .apply-band {
    padding: 62px 0;
  }

  .facts-band,
  .experience-band {
    padding: 52px 0;
  }

  .facts-grid,
  .thread-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .fact-card,
  .thread-card {
    min-height: 0;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .application-form {
    padding: 18px;
  }

  .button {
    width: 100%;
  }
}
