:root {
  --bg-top: #f5b96b;
  --bg-bottom: #f7bf72;
  --text-light: #fff7ec;
  --text-dark: #31435a;
  --outline: #f3891d;
  --card-bg: #f5ece7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-light);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  overflow: hidden;
}

.back-glow {
  position: fixed;
  inset: auto auto -240px -140px;
  width: 840px;
  height: 540px;
  border-radius: 50%;
  background: linear-gradient(25deg, rgba(255, 210, 151, 0.44), rgba(255, 197, 123, 0.16));
  pointer-events: none;
}

.topbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 34px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-size: 24px;
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: 18px;
  padding-left: 0;
}

.nav-link {
  text-decoration: none;
  color: #fff3e0;
  font-size: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}

.nav-link.active {
  border-color: #fff3e0;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  height: calc(100vh - 96px);
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-areas: "copy cards";
  gap: 34px;
  align-items: center;
  padding: 8px 34px 20px;
}

.hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: center;
  transform: translateY(-34px);
}

.hero-copy h1 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(42px, 4.25vw, 68px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-highlight {
  font-weight: 800;
}

.hero-copy p {
  margin: 0;
  max-width: 560px;
  font-size: clamp(22px, 1.75vw, 34px);
  line-height: 1.22;
}

.hero-copy p strong {
  font-weight: 800;
}

.hero-cards {
  grid-area: cards;
  position: relative;
  height: 580px;
  align-self: center;
  transform: translateY(-18px);
}

.outline {
  position: absolute;
  border: 3px solid var(--outline);
  border-radius: 36px;
}

.outline-outer {
  inset: 76px 34px 30px 22px;
}

.outline-inner {
  inset: 98px 56px 52px 44px;
}

.photo-card {
  position: absolute;
  overflow: hidden;
  border-radius: 34px;
  border: 4px solid rgba(244, 238, 233, 0.9);
  background: #f6efe9;
  box-shadow: 0 8px 16px rgba(106, 65, 12, 0.22);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-top {
  left: 108px;
  top: 28px;
  width: 280px;
  height: 360px;
}

.photo-bottom {
  right: 78px;
  bottom: 0;
  width: 238px;
  height: 300px;
}

.detail-card {
  position: absolute;
  background: var(--card-bg);
  color: var(--text-dark);
  border-radius: 14px;
  padding: 20px 22px;
  min-width: 332px;
  box-shadow: 0 9px 18px rgba(74, 53, 25, 0.28);
}

.detail-card h3 {
  margin: 0;
  font-size: 20px;
}

.detail-card p {
  margin: 10px 0 0;
  font-size: 16px;
}

.people {
  color: #ef870a;
}

.detail-top {
  right: -56px;
  top: 180px;
}

.detail-bottom {
  left: -54px;
  bottom: 122px;
}

.mailing-list-card {
  position: absolute;
  left: 34px;
  bottom: 130px;
  background: rgba(255, 248, 236, 0.88);
  border: 1px solid rgba(255, 246, 233, 0.9);
  border-radius: 20px;
  box-shadow: 0 14px 24px rgba(106, 65, 12, 0.14);
  padding: 18px 18px;
  max-width: 420px;
  width: 100%;
}

.mailing-list-card h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 22px;
}

.mailing-list-form {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.mailing-list-form input {
  flex: 1;
  border: 1px solid #d4c6b8;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
}

.mailing-list-form button {
  border: none;
  border-radius: 12px;
  background: #ef870a;
  color: #fff8ef;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}

.mailing-status {
  margin: 10px 2px 0;
  min-height: 18px;
  color: #3f5168;
  font-size: 14px;
}

.mailing-status.is-error {
  color: #b22e2e;
}

.about-page {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.about-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 34px 70px;
}

.about-card {
  background: rgba(255, 248, 236, 0.9);
  color: var(--text-dark);
  border: 1px solid rgba(255, 246, 233, 0.9);
  border-radius: 20px;
  box-shadow: 0 14px 24px rgba(106, 65, 12, 0.14);
  padding: 32px;
}

.about-card h1 {
  margin: 0;
  font-size: 42px;
}

.about-card p {
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.45;
}

.about-card ul {
  margin: 18px 0 0;
  padding-left: 24px;
}

.about-card li {
  margin: 10px 0;
  font-size: 18px;
}

@media (max-width: 1350px) {
  .brand,
  .brand-text {
    font-size: 22px;
  }

  .brand-mark {
    font-size: 28px;
  }

  .nav-link {
    font-size: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "cards";
    grid-template-rows: auto auto;
    padding-top: 18px;
    height: auto;
    align-items: center;
  }

  .hero-copy,
  .hero-cards {
    transform: none;
  }

  .hero-cards {
    height: 640px;
  }

  .photo-top {
    left: 64px;
    width: 280px;
    height: 360px;
  }

  .photo-bottom {
    width: 250px;
    height: 300px;
    right: 52px;
  }

  .detail-card {
    min-width: 360px;
    padding: 22px 20px;
  }

  .detail-card h3 {
    font-size: 34px;
  }

  .detail-card p {
    font-size: 24px;
  }

  .mailing-list-card {
    position: static;
    left: auto;
    bottom: auto;
    max-width: 100%;
    margin-top: 14px;
  }
}

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav {
    margin-left: 0;
    padding-left: 0;
  }

  .hero {
    padding-inline: 18px;
    height: auto;
    grid-template-areas:
      "copy"
      "cards"
      "mail";
  }

  body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero-cards {
    height: 540px;
  }

  .outline-outer {
    inset: 70px 8px 36px 8px;
  }

  .outline-inner {
    inset: 84px 24px 52px 24px;
  }

  .photo-top {
    left: 24px;
    width: 180px;
    height: 240px;
    border-radius: 22px;
  }

  .photo-bottom {
    width: 176px;
    height: 220px;
    right: 14px;
    border-radius: 22px;
  }

  .detail-card {
    min-width: 250px;
    max-width: 84%;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(74, 53, 25, 0.2);
  }

  .detail-card h3 {
    font-size: 24px;
  }

  .detail-card p {
    margin-top: 10px;
    font-size: 16px;
  }

  .detail-top {
    top: 220px;
    right: 0;
  }

  .detail-bottom {
    bottom: 92px;
    left: 0;
  }

  .mailing-list-card h2 {
    font-size: 24px;
  }

  .mailing-list-card p {
    font-size: 16px;
  }

  .mailing-list-form {
    flex-direction: column;
  }

  .about-main {
    padding: 22px 18px 40px;
  }

  .about-card {
    padding: 20px;
  }

  .about-card h1 {
    font-size: 32px;
  }

  .about-card p {
    font-size: 18px;
  }

}
