@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,600&display=swap');

:root {
  --night: #132c33;
  --lake: #3d6f76;
  --mist: #dbe7e4;
  --sand: #f2ede2;
  --white: #fffdf8;
  --rust: #b66845;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--night);
  font-family: 'Manrope', sans-serif;
}

header {
  padding: 24px clamp(20px, 5vw, 76px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.wordmark {
  font-family: 'Newsreader', serif;
  font-size: 1.55rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-list,
.footer-links {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.nav-list a,
.footer-links a {
  color: inherit;
  text-decoration: none;
}

.nav-list a[aria-current='page'],
.nav-list a:hover {
  color: var(--rust);
}

.residency-hero {
  width: min(1320px, calc(100% - 40px));
  margin: 30px auto 100px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.hero-copy {
  padding: clamp(34px, 6vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 28px;
  background: var(--night);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(3.6rem, 7vw, 7rem);
  line-height: 0.9;
}

.hero-copy > p:last-child {
  line-height: 1.75;
}

figure {
  margin: 0;
  display: grid;
}

figure img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: 28px;
}

figcaption {
  padding: 12px 4px 0;
  color: var(--lake);
  font-size: 0.86rem;
}

.stay-selector,
.rhythm,
.practical {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 110px;
}

.stay-selector {
  padding: clamp(30px, 5vw, 64px);
  border-radius: 30px;
  background: var(--mist);
}

.selector-intro {
  max-width: 760px;
}

.selector-intro h2,
.practical h2 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.96;
}

.selector-intro > p:last-child {
  line-height: 1.75;
}

.selector-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.selector-controls button {
  padding: 13px 20px;
  border: 1px solid var(--night);
  border-radius: 999px;
  background: transparent;
  color: var(--night);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.selector-controls button.is-active {
  background: var(--night);
  color: var(--white);
}

.selected-stay {
  padding: 30px;
  border-radius: 22px;
  background: var(--white);
}

.selected-stay span {
  color: var(--rust);
  font-weight: 700;
}

.selected-stay h3 {
  margin: 15px 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.selected-stay p {
  max-width: 830px;
  line-height: 1.75;
}

.rhythm {
  display: grid;
  gap: 1px;
  background: rgba(19, 44, 51, 0.16);
  border: 1px solid rgba(19, 44, 51, 0.16);
}

.rhythm article {
  padding: clamp(30px, 6vw, 72px);
  background: var(--white);
}

.rhythm span {
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rhythm h2 {
  margin: 15px 0 24px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.rhythm p {
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.practical {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.practical ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(19, 44, 51, 0.22);
}

.practical li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(19, 44, 51, 0.22);
  line-height: 1.55;
}

footer {
  padding: 40px clamp(20px, 5vw, 76px);
  display: flex;
  justify-content: space-between;
  gap: 26px;
  background: var(--night);
  color: var(--white);
}

@media (max-width: 850px) {
  header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .residency-hero,
  .practical {
    grid-template-columns: 1fr;
  }

  figure img {
    height: 520px;
  }
}
