:root {
  --page-bg: #f2edde;
  --footer-bg: #f5f1e5;
  --text-color: #454635;
  --muted-color: #78716c;
  --accent: #f3ce3e;
  --hero-overlay: rgba(255, 248, 235, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text-color);
  font-family: "Arima", serif;
}

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

button,
a {
  color: inherit;
}

.page-shell {
  width: 100%;
  background: var(--page-bg);
}

.hero {
  position: relative;
  min-height: 805px;
  background:
    linear-gradient(180deg, var(--hero-overlay) 0%, rgba(255, 248, 235, 0.04) 34%, rgba(255, 248, 235, 0) 100%),
    url("assets/sunny_bay_hero.jpg") center 34% / cover no-repeat;
}

.site-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 40px 8px;
}

.header-start,
.header-center,
.header-end {
  min-width: 0;
}

.header-start {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-mark {
  width: 47px;
  height: auto;
}

.about-link {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
}

.header-center {
  justify-self: center;
}

.header-wordmark {
  width: 146px;
  height: auto;
}

.header-end {
  width: 205px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(100%, 836px);
  margin: 0 auto;
  padding: 104px 16px 0;
  text-align: center;
}

.hero-copy h1,
.hero-copy p,
.intro h2,
.about-copy h3,
.about-copy p,
.document-link {
  margin: 0;
}

.hero-copy h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
}

.hero-copy p {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 96px 0 96px;
}

.intro {
  padding: 0 80px;
}

.intro h2 {
  max-width: 1310px;
  font-size: 30px;
  font-weight: 600;
  line-height: normal;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  align-items: center;
  gap: 40px;
  padding: 0 80px;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-copy h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.about-copy p {
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}

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

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
}

.external-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.about-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 407px;
}

.about-logo {
  width: 293px;
  height: auto;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 80px 36px;
  background: var(--footer-bg);
}

.footer-logo {
  width: 122px;
  height: auto;
}

.footer-copy {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  color: var(--muted-color);
}

.footer-copy p {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero {
    min-height: 681px;
    background-position: center 41%;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0;
    padding: 12px 16px 8px;
  }

  .header-start {
    min-width: 0;
    gap: 0;
  }

  .header-mark {
    width: 72px;
  }

  .header-center {
    display: none;
  }

  .header-end {
    display: none;
  }

  .about-link {
    justify-content: flex-end;
    padding: 0 8px 4px;
    margin-left: auto;
    white-space: nowrap;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    padding: 86px 16px 0;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 24px;
  }

  main {
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .intro,
  .about-section,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro h2 {
    max-width: none;
    font-size: 23px;
    line-height: normal;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-logo-wrap {
    order: -1;
    width: 100%;
  }

  .about-copy h3 {
    white-space: nowrap;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 40px;
  }

  .footer-copy {
    flex: none;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 23px;
    line-height: normal;
  }

  .hero-copy p,
  .about-copy h3 {
    font-size: 24px;
  }

  .about-copy p,
  .document-link {
    font-size: 18px;
    line-height: 1.45;
  }

  .document-links {
    gap: 10px 24px;
  }

  .footer-copy {
    font-size: 15px;
    line-height: 1.2;
  }

  .footer-copy p {
    white-space: normal;
  }
}
