/* ============================================================
   3 Block — shared styles
   Palette: green gradient field, cream text, sun + sky accents
   Type: Fraunces (display) / Catamaran (body)
   ============================================================ */

:root {
  --green-fresh: #509b10;
  --green-deep: #2c5e00;
  --cream: #f7f3e7;
  --ink: #0a2416;
  --sun: #ffd500;
  --sky: #2b5be2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Catamaran", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background-color: var(--green-deep);
  background-image: radial-gradient(
    130% 130% at 50% -10%,
    var(--green-fresh) 0%,
    var(--green-deep) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Landing page
   ------------------------------------------------------------ */

.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.corner-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration-color: var(--sun);
  text-underline-offset: 0.25em;
}

.corner-contact:hover {
  color: var(--sun);
}

.landing-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
  padding: 4rem 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.wordmark-logo {
  line-height: 0;
  margin: 1.75rem 0;
}

.wordmark-logo img {
  width: clamp(18rem, 70vw, 36rem);
  max-width: 100%;
  height: auto;
}

.landing-about {
  max-width: 32rem;
  display: grid;
  gap: 0.75rem;
  font-size: 1.02rem;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.35;
  max-width: 26ch;
}

.cta-link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sun);
  text-underline-offset: 0.35em;
  transition: color 160ms ease, text-underline-offset 160ms ease;
}

.cta-link:hover {
  color: var(--sun);
  text-underline-offset: 0.5em;
}

/* ------------------------------------------------------------
   Apply page — header, sections, footer
   ------------------------------------------------------------ */

.apply-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.apply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.home-logo,
.footer-logo {
  display: block;
  width: 8.5rem;
  height: auto;
}

.header-cta {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sun);
  text-underline-offset: 0.3em;
}

.header-cta:hover {
  color: var(--sun);
}

.apply-main {
  flex: 1;
  width: min(42rem, 100% - 3rem);
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.hero {
  padding: 2.5rem 0 3rem;
}

.hero-lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.45;
  max-width: 38rem;
}

.section {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(247, 243, 231, 0.25);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section p {
  max-width: 36rem;
  margin-bottom: 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.req-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
  padding: 0;
}

.req-list + .req-list {
  margin-top: 1.1rem;
}

.req-list li {
  padding-left: 1.6rem;
  position: relative;
}

.req-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--sun);
}

.req-list strong {
  color: var(--sun);
}

.section a {
  font-weight: 700;
  text-decoration-color: var(--sun);
  text-underline-offset: 0.25em;
}

.section a:hover {
  color: var(--sun);
}

.apply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(247, 243, 231, 0.25);
}

.apply-footer a {
  font-weight: 600;
  text-decoration-color: var(--sun);
  text-underline-offset: 0.25em;
}

.apply-footer a:hover {
  color: var(--sun);
}

/* ------------------------------------------------------------
   Typeform-style application form
   ------------------------------------------------------------ */

.apply-form {
  scroll-margin-top: 2rem;
}

.form-note {
  font-size: 0.9rem;
  color: rgba(247, 243, 231, 0.75);
  margin-bottom: 0.5rem;
}

.req {
  color: var(--sun);
  margin-left: 0.2rem;
}

.stacked-form {
  display: grid;
  gap: 2rem;
  max-width: 36rem;
  margin-top: 1.5rem;
}

.field {
  min-width: 0;
}

fieldset.field {
  border: none;
  padding: 0;
  margin: 0;
}

.field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

legend.field-label {
  padding: 0;
}

.field-help {
  font-size: 0.95rem;
  color: rgba(247, 243, 231, 0.8);
  margin-bottom: 0.5rem;
}

.field-input {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(247, 243, 231, 0.4);
  padding: 0.35rem 0 0.45rem;
  transition: border-color 160ms ease;
}

.field-input:focus {
  outline: none;
  border-bottom-color: var(--sun);
  border-bottom-width: 3px;
}

.field-textarea {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.5;
  font-size: 1.05rem;
}

.field.has-error .field-input {
  border-bottom-color: var(--sun);
}

.field-error {
  min-height: 1.3rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sun);
}

/* radio choices */

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.choice {
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid rgba(247, 243, 231, 0.5);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.choice:hover span {
  border-color: var(--cream);
}

.choice input:checked + span {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

/* submit + results */

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-error {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sun);
}

.form-result {
  max-width: 36rem;
  padding: 1.5rem 0;
}

.form-result p {
  margin-bottom: 1.25rem;
}

.form-result a {
  font-weight: 700;
  text-decoration-color: var(--sun);
}

.result-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--sun);
  border: none;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms ease;
}

.btn-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* ------------------------------------------------------------
   Responsive + reduced motion
   ------------------------------------------------------------ */

@media (max-width: 600px) {
  .hero {
    padding-top: 1.5rem;
  }

  .choice-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
