@font-face {
  font-family: "EasyDisplay";
  src: url("./fonts/plus-jakarta-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "EasyBody";
  src: url("./fonts/be-vietnam-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "EasyBody";
  src: url("./fonts/be-vietnam-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color: #1b1c1c;
  background: #fbf9f8;
  font-family: "EasyBody", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #1b1c1c;
  color: #fffdfc;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
footer {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 76px;
}

.brand,
h1,
h2 {
  font-family: "EasyDisplay", system-ui, sans-serif;
  font-weight: 800;
}

.brand {
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
}

nav a,
footer a {
  font-weight: 700;
  text-underline-offset: 4px;
}

nav a:hover,
footer a:hover,
.text-link:hover {
  text-decoration-thickness: 3px;
}

button,
input,
summary {
  font: inherit;
}

button,
a,
input,
summary {
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid #2fb8ff;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(48px, 8vw, 112px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  color: #245c00;
  font-weight: 700;
}

h1 {
  margin: 14px 0;
  font-size: clamp(48px, 7.3vw, 102px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin: 10px 0 22px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.hero {
  min-height: min(900px, calc(100vh - 76px));
  align-items: center;
  padding: clamp(64px, 9vw, 124px) 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-lede {
  max-width: 58ch;
  margin: 28px 0 0;
  color: #596154;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.62;
}

.early-form {
  max-width: 650px;
  margin-top: 40px;
}

.early-form > label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.form-row input[type="email"] {
  min-width: 0;
  flex: 1;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid #becbb1;
  border-radius: 16px;
  background: #fffdfc;
  color: #1b1c1c;
  font-size: 16px;
}

.form-row input[type="email"]:focus {
  border-color: #245c00;
}

.form-row button {
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-bottom: 4px solid #245c00;
  border-radius: 18px;
  background: #58cc02;
  color: #173b00;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 90ms ease-out,
    border-bottom-width 90ms ease-out;
}

.form-row button:active {
  border-bottom-width: 2px;
  transform: translateY(2px) scale(0.99);
}

.form-note,
.form-status {
  margin: 10px 0 0;
  color: #596154;
  font-size: 13px;
  line-height: 1.5;
}

.form-status:not(:empty) {
  min-height: 24px;
  color: #245c00;
  font-weight: 700;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.hero-art {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
  padding: 24px 12px 0;
}

.hero-art img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid #1b1c1c;
  border-radius: 48px;
  box-shadow: 0 30px 80px rgb(36 92 0 / 14%);
  transform: rotate(2.5deg);
}

.orbit {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 999px;
  animation: orbit-pulse 4s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate;
}

.orbit-one {
  top: -20px;
  right: -72px;
  width: 210px;
  height: 210px;
  background: #eaf8e0;
}

.orbit-two {
  bottom: 80px;
  left: -76px;
  width: 130px;
  height: 130px;
  background: #fff0de;
  animation-delay: -1.2s;
}

.capture-story,
.control-section {
  padding: clamp(100px, 14vw, 190px) 0;
  border-top: 1px solid #becbb1;
}

.section-number {
  margin: 0;
  color: #245c00;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.capture-copy,
.control-list {
  align-self: center;
}

.capture-copy > p,
.signal-copy > p:last-child,
.control-list p {
  color: #596154;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
}

.capture-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.capture-modes li {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid #becbb1;
  border-radius: 999px;
  background: #fffdfc;
  font-weight: 700;
}

.capture-modes span {
  color: #58cc02;
}

.signal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(48px, 8vw, 120px);
  padding: clamp(90px, 12vw, 160px) max(20px, calc((100vw - 1180px) / 2));
  background: #245c00;
  color: #fffdfc;
}

.signal-section .section-number,
.signal-section .signal-copy > p:last-child {
  color: #dff8cf;
}

.signal-visual {
  align-self: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #6be026;
  border-radius: 34px;
  background: #173b00;
}

.signal-week {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.signal-week span {
  color: #b8d7a4;
}

.signal-week strong {
  font-size: clamp(18px, 2.3vw, 28px);
}

.signal-week b {
  color: #6be026;
  font-size: clamp(22px, 3.3vw, 42px);
  font-variant-numeric: tabular-nums;
}

.signal-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 34px 0;
}

.signal-line i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #58cc02;
}

.signal-line i:nth-child(4) {
  background: #b8d7a4;
}

.control-list p {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid #becbb1;
}

.control-list p:first-child {
  border-top: 1px solid #becbb1;
}

.control-list strong {
  display: block;
  margin-bottom: 4px;
  color: #1b1c1c;
}

.closing-cta {
  padding: clamp(90px, 15vw, 200px) max(20px, calc((100vw - 1180px) / 2));
  background: #ff9c27;
  color: #2f210f;
}

.closing-cta .eyebrow {
  color: #683a00;
}

.closing-cta h2 {
  max-width: 900px;
  font-size: clamp(54px, 9vw, 118px);
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 19px;
  font-weight: 700;
  text-underline-offset: 6px;
}

.legal-page,
.support-page {
  width: min(1100px, calc(100% - 40px));
  min-height: calc(100vh - 168px);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 128px) 0 clamp(100px, 12vw, 160px);
}

.legal-hero,
.support-hero {
  max-width: 780px;
  margin-bottom: clamp(72px, 10vw, 130px);
}

.legal-hero > p:last-child,
.support-hero > p:last-child {
  max-width: 68ch;
  color: #596154;
  font-size: 18px;
  line-height: 1.65;
}

.legal-copy {
  max-width: 760px;
  margin-left: auto;
}

.legal-copy section {
  padding: 34px 0;
  border-top: 1px solid #becbb1;
}

.legal-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.legal-copy p,
.support-list p {
  max-width: 72ch;
  color: #596154;
  font-size: 16px;
  line-height: 1.75;
}

.support-list {
  max-width: 860px;
  margin-left: auto;
}

.support-list details {
  border-top: 1px solid #becbb1;
}

.support-list details:last-child {
  border-bottom: 1px solid #becbb1;
}

.support-list summary {
  padding: 26px 4px;
  font-family: "EasyDisplay", system-ui, sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  cursor: pointer;
}

.support-list details p {
  margin: -8px 0 28px;
  padding-right: 40px;
}

[hidden] {
  display: none !important;
}

button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.58;
}

.admin-page {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 168px);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 128px) 0 clamp(100px, 12vw, 160px);
}

.admin-hero {
  margin-bottom: clamp(48px, 7vw, 84px);
}

.admin-sign-in {
  max-width: 700px;
  padding-top: 34px;
  border-top: 1px solid #becbb1;
}

.admin-sign-in h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 42px);
}

.admin-sign-in > p {
  color: #596154;
}

.admin-sign-in form {
  margin-top: 30px;
}

.admin-sign-in label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #becbb1;
}

.admin-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-filters label {
  display: grid;
  gap: 7px;
  color: #596154;
  font-size: 13px;
  font-weight: 700;
}

.admin-filters input,
.admin-filters select,
.admin-table-wrap select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #becbb1;
  border-radius: 12px;
  background: #fffdfc;
  color: #1b1c1c;
}

.admin-filters input {
  width: min(320px, 72vw);
}

.admin-filters button,
.load-more,
.quiet-button,
.copy-button,
.delete-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #8fa381;
  border-radius: 12px;
  background: #fffdfc;
  color: #1b1c1c;
  font-weight: 700;
  cursor: pointer;
}

.admin-filters button {
  border-color: #245c00;
  background: #58cc02;
  color: #173b00;
}

.admin-status {
  min-height: 28px;
  color: #596154;
}

.admin-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #becbb1;
  border-bottom: 1px solid #becbb1;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table-wrap th,
.admin-table-wrap td {
  min-width: 120px;
  padding: 18px 14px;
  border-bottom: 1px solid #e2e7de;
  vertical-align: middle;
}

.admin-table-wrap th {
  color: #596154;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table-wrap td:first-child {
  min-width: 270px;
  font-weight: 700;
}

.copy-button,
.delete-button {
  min-height: 32px;
  margin-left: 10px;
  padding: 0 10px;
  border-color: #becbb1;
  font-size: 12px;
}

.delete-button {
  margin-left: 0;
  color: #9e260f;
}

.admin-empty {
  padding: 36px 14px;
  color: #596154;
  text-align: center;
}

.load-more {
  margin-top: 24px;
}

@keyframes orbit-pulse {
  from {
    transform: scale(0.92);
  }
  to {
    transform: scale(1.05);
  }
}

footer {
  min-height: 92px;
  border-top: 1px solid #becbb1;
  color: #596154;
  font-size: 14px;
}

@media (max-width: 640px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-header {
    padding: 18px 0;
  }

  footer {
    padding: 24px 0;
  }

  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-row button {
    width: 100%;
  }

  .signal-week {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-toolbar,
  .admin-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filters input,
  .admin-filters select,
  .admin-filters button,
  .quiet-button {
    width: 100%;
  }
}

@media (max-width: 880px) {
  .section-grid,
  .signal-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    justify-self: center;
    width: min(84vw, 440px);
  }

  .hero {
    padding-bottom: 110px;
  }

  .legal-copy,
  .support-list {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
