:root {
  --green: #4b5320;
  --green-deep: #2f3818;
  --cloudy-blue: #91adbd;
  --cloudy-blue-light: #c8d7df;
  --ivory: #f8f6ef;
  --gold: #b89a50;
  --white: #fffdf8;
  --ink: #20291f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: linear-gradient(145deg, var(--cloudy-blue-light), var(--ivory) 58%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: var(--cloudy-blue);
  color: var(--green-deep);
  border-bottom: 4px solid var(--green);
}

.header-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: auto;
  height: 68px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: .35rem 0;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .03em;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] { border-color: var(--green-deep); }

main { flex: 1; }

.hero {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 5rem 4%;
  background:
    radial-gradient(circle at 82% 22%, rgba(200, 215, 223, .8), transparent 24rem),
    linear-gradient(135deg, var(--green) 0 38%, var(--cloudy-blue-light) 38% 100%);
}

.hero-card {
  width: min(850px, 100%);
  margin-left: 10%;
  padding: clamp(2rem, 6vw, 4.75rem);
  background: rgba(255, 253, 248, .96);
  border: 1px solid rgba(52, 73, 52, .2);
  box-shadow: 0 24px 70px rgba(31, 49, 36, .18);
}

.eyebrow {
  margin: 0 0 .5rem;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1.25rem;
  color: var(--green-deep);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.15rem, 2.25vw, 1.55rem);
  font-weight: 400;
}

h2 span { display: block; margin-top: 1.1rem; }

.page-intro {
  width: min(900px, 90%);
  margin: 0 auto;
  padding: 7rem 0;
}

.page-intro h1 { font-size: clamp(2.7rem, 7vw, 5rem); }

.page-intro p { max-width: 650px; font-size: 1.15rem; }

.site-footer {
  padding: 1.25rem 4%;
  color: var(--white);
  background: var(--green-deep);
  text-align: center;
  font-size: .9rem;
}

.signup-dialog {
  width: min(480px, calc(100% - 2rem));
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-top: 7px solid var(--cloudy-blue);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.signup-dialog::backdrop { background: rgba(18, 30, 21, .66); }

.dialog-body { position: relative; padding: 2.5rem; }

.dialog-close {
  position: absolute;
  top: .65rem;
  right: .8rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  color: var(--green-deep);
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible { background: var(--ivory); }

.signup-dialog h2 { margin-bottom: .7rem; font-size: 2rem; font-weight: 700; }

.signup-dialog p { margin: 0 0 1.4rem; }

.signup-form { display: flex; gap: .65rem; }

.signup-form input {
  min-width: 0;
  flex: 1;
  padding: .85rem 1rem;
  border: 1px solid #849186;
  border-radius: 0;
  font: inherit;
}

.signup-form button {
  padding: .85rem 1.15rem;
  border: 1px solid var(--green-deep);
  color: var(--white);
  background: var(--green-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.signup-form button:hover,
.signup-form button:focus-visible { background: var(--green); }

.form-message { min-height: 1.5rem; margin: .75rem 0 0 !important; font-weight: 700; }

@media (max-width: 760px) {
  .header-inner { flex-direction: column; gap: .75rem; }
  .nav-list { width: 100%; gap: 1rem; overflow-x: auto; padding-bottom: .25rem; }
  .nav-list li { flex: 0 0 auto; }
  .brand img { height: 60px; }
  .hero { background: linear-gradient(180deg, var(--green) 0 18%, var(--cloudy-blue-light) 18% 100%); }
  .hero-card { margin-left: 0; }
  .signup-form { flex-direction: column; }
}

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