:root {
  --ink: #24332c;
  --paper: #f5f0e3;
  --paper-deep: #e9dfca;
  --clay: #b94f32;
  --moss: #2f5d4a;
  --cream: #fff8e8;
  --line: rgba(36, 51, 44, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cream);
  background: linear-gradient(
    180deg,
    rgba(15, 35, 35, 0.7),
    rgba(15, 35, 35, 0)
  );
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 248, 232, 0.75);
  border-radius: 50%;
  font-size: 15px;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
}

.nav a {
  font-size: 14px;
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--cream);
}

#sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 130px clamp(24px, 8vw, 120px) 96px;
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 248, 232, 0.84);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: 84px;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(7, 26, 24, 0.32);
}

.intro {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 248, 232, 0.9);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 248, 232, 0.55);
  font-size: 15px;
  font-weight: 600;
  transition: gap 0.25s ease;
}

.ghost-link:hover {
  gap: 20px;
  border-color: var(--cream);
}

.arrow {
  font-size: 22px;
  line-height: 1;
}

.house-sign {
  position: absolute;
  right: clamp(24px, 6vw, 90px);
  bottom: clamp(54px, 10vh, 110px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 12px 36px rgba(13, 35, 29, 0.35);
}

.house-sign span {
  margin-top: 23px;
  font-weight: 800;
  line-height: 1.1;
}

.house-sign small {
  font-size: 12px;
  line-height: 1;
  margin-top: 7px;
}

.diary,
.contact {
  padding: clamp(84px, 12vw, 150px) clamp(24px, 7vw, 110px);
}

.diary {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head .section-kicker {
  color: var(--clay);
}

.section-head h2,
.contact h2 {
  margin: 0;
  font-size: 56px;
  line-height: 1.15;
}

.section-head p:last-child,
.contact p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(36, 51, 44, 0.72);
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
}

.note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  min-height: 240px;
  background: rgba(255, 248, 232, 0.62);
  box-shadow: 0 18px 46px rgba(68, 55, 34, 0.08);
}

.note time {
  display: block;
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
}

.note h3 {
  margin: 18px 0 10px;
  font-size: 21px;
}

.note p {
  margin: 0;
  color: rgba(36, 51, 44, 0.72);
}

.contact {
  background: var(--ink);
  color: var(--cream);
}

.contact-inner {
  max-width: 720px;
}

.contact .section-kicker {
  color: #e4a657;
}

.contact p {
  color: rgba(255, 248, 232, 0.72);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 248, 232, 0.4);
  border-radius: 8px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.mail-link:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.mail-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.footer {
  padding: 26px clamp(24px, 7vw, 110px);
  background: var(--ink);
  color: rgba(255, 248, 232, 0.56);
  font-size: 13px;
  border-top: 1px solid rgba(255, 248, 232, 0.1);
}

.footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero h1 {
    font-size: 48px;
  }

  .section-head h2,
  .contact h2 {
    font-size: 38px;
  }

  .notes {
    grid-template-columns: 1fr;
  }

  .note {
    min-height: 0;
  }

  .house-sign {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 36px;
  }

  .section-head h2,
  .contact h2 {
    font-size: 32px;
  }

  .topbar {
    padding: 0 20px;
  }

  .nav {
    gap: 16px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .topbar {
    height: 60px;
  }

  .hero-copy {
    min-height: 100svh;
    padding-top: 84px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .intro {
    margin-top: 18px;
  }

  .ghost-link {
    margin-top: 26px;
  }
}

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

  #sky {
    animation: none !important;
  }
}
