:root {
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cream: #f7f2e8;
  --cream-muted: rgba(247, 242, 232, 0.92);
  --text-white: #ffffff;
  --submissions: #3a2554;
  --footer-bg: #0a0a0a;
  --btn-bg: #e8e2d6;
  --btn-border: #1a1a1a;
  --line: rgba(255, 255, 255, 0.35);
  --nav-footer-link: rgba(255, 255, 255, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text-white);
  background: var(--footer-bg);
}

/* Full-viewport gradient + grain (matches live site mood) */
.page-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    175deg,
    #3d2b6e 0%,
    #6b3d8f 18%,
    #c4548a 38%,
    #e8846a 62%,
    #f0c9a8 82%,
    #f5efe4 100%
  );
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--cream);
  color: #1a1a1a;
  font-weight: 700;
  padding: 0.6rem 0.8rem;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 5vw, 3.5rem) 0;
}

.header-sub {
  position: relative;
  z-index: 20;
  padding: 0 clamp(1rem, 5vw, 3.5rem) clamp(0.85rem, 2vw, 1.1rem);
  border-bottom: 1px solid var(--line);
}

.header-feedback-link {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  font-weight: 600;
  color: var(--cream-muted);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  transition: color 160ms ease;
}

.header-feedback-link:hover {
  color: var(--cream);
}

.logo {
  display: inline-flex;
  line-height: 0;
}

.logo-img {
  display: block;
  height: auto;
  width: clamp(10.5rem, 28vw, 14rem);
  max-width: 100%;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2.2vw, 1.75rem);
  padding-top: 0.35rem;
  max-width: min(720px, 100%);
}

.nav-link,
.nav-open-feedback {
  color: var(--cream-muted);
  font-size: clamp(0.8rem, 1.35vw, 0.95rem);
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-open-feedback:hover {
  color: var(--cream);
}

.nav-link--current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  color: var(--cream);
}

/* Allow nav feedback button to visually act like a current nav link when active */
.nav-open-feedback.nav-link--current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  color: var(--cream);
}

.nav-toggle {
  display: none;
}

.nav-open-feedback {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font: inherit;
  font-family: var(--font);
  font-size: clamp(0.8rem, 1.35vw, 0.95rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: inline-block;
  vertical-align: middle;
  text-align: inherit;
}

/* Keep font size/weight the same as nav links, but prevent hover/current visual changes */
.nav-open-feedback:hover {
  /* keep same color as default nav link */
  color: var(--cream-muted);
}

.nav-open-feedback.nav-link--current {
  /* don't apply the heavier weight/underline used for current links */
  font-weight: 600;
  text-decoration: none;
  color: var(--cream-muted);
}

main {
  position: relative;
  z-index: 10;
  width: min(720px, 92vw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 10vw, 6rem);
}

.hero {
  text-align: center;
}

.hero-date {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(3.25rem, 13vw, 8.75rem);
  line-height: 0.92;
  color: var(--cream);
}

.hero-date-line {
  display: block;
}

.rule {
  border: none;
  height: 1px;
  margin: clamp(1.5rem, 4vw, 2.25rem) auto;
  max-width: 100%;
  background: var(--line);
}

.hero-body {
  margin: 0 auto 1rem;
  max-width: 52ch;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-white);
}

.hero-returns {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.65rem, 5.5vw, 3rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.08;
}

.hero-submissions {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.45rem, 5vw, 2.85rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--submissions);
  line-height: 1.06;
}

.btn-guidelines {
  display: inline-block;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: #1a1a1a;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-guidelines:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.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;
}

/* Closed <dialog> must stay display:none — a bare `display:grid` overrides UA hiding. */
.feedback-modal:not([open]) {
  display: none;
}

.feedback-modal[open] {
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
}

.feedback-modal::backdrop {
  background: rgba(8, 6, 14, 0.75);
  backdrop-filter: blur(8px);
}

.modal-scrim {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.feedback-inner {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2rem));
  max-height: min(85vh, 900px);
  overflow-y: auto;
  margin: clamp(1rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: clamp(1.35rem, 4vw, 2rem);
  padding-top: clamp(2.75rem, 6vw, 3.25rem);
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.feedback-title {
  margin: 0 0 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.feedback-lead {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: clamp(0.55rem, 1.5vw, 0.85rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.form-section legend {
  padding: 0 0.35rem;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.field {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.req {
  color: var(--cream);
}

.optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: #141414;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  width: 100%;
}

.feedback-form textarea {
  resize: vertical;
  min-height: 2.5rem;
  line-height: 1.35;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: 2px solid var(--submissions);
  outline-offset: 2px;
}

.field-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  line-height: 1.3;
}

.field-hint.is-over-limit {
  color: #ffb4b4;
  font-weight: 700;
}

.confirmation-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--cream-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.feedback-form .confirmation-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  padding: 0;
  accent-color: var(--submissions);
}

.attachment-section .feedback-lead {
  margin-bottom: 0;
}

.form-status {
  margin: 0.25rem 0 0;
  min-height: 1.35rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
}

.form-status.is-error {
  color: #ffb4b4;
}

.form-status.is-success {
  color: #c8f5c4;
}

.feedback-submit {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: #141414;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.feedback-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.feedback-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.feedback-page-main {
  position: relative;
  z-index: 10;
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.page-submissions .feedback-page-main {
  width: 100%;
  max-width: none;
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.35rem, 1vw, 0.65rem) clamp(1.25rem, 3vw, 2rem);
}

.feedback-page-wrap {
  width: 100%;
}

.feedback-standalone {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(0.55rem, 1.5vw, 0.9rem) clamp(0.35rem, 1vw, 0.65rem);
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: rgba(10, 10, 14, 0.96);
  backdrop-filter: blur(14px);
}

.page-submissions .form-section {
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.45rem, 1.2vw, 0.7rem);
}

.page-submissions .feedback-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
}

.page-submissions .feedback-lead {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

body.is-embed .site-footer,
body.is-embed .skip-link {
  display: none;
}

body.is-embed {
  background: #0a0a0e;
}

body.is-embed .page-gradient,
body.is-embed .grain {
  display: none;
}

body.is-embed .feedback-page-main {
  padding: 0;
  background: #0a0a0e;
}

body.is-embed .feedback-standalone {
  padding: 0.45rem 0.4rem 0.75rem;
  background: #0a0a0e;
  backdrop-filter: none;
}

body.is-embed .form-section {
  padding: 0.5rem 0.4rem;
  border-radius: 6px;
}

body.is-embed .feedback-title {
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
}

body.is-embed .feedback-lead {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .form-row-split {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .page-submissions .feedback-page-main {
    padding: 0.35rem 0.25rem 1rem;
  }

  .feedback-standalone,
  body.is-embed .feedback-standalone {
    padding: 0.35rem 0.25rem 0.65rem;
  }

  .feedback-form {
    gap: 0.4rem;
  }

  .form-section,
  .page-submissions .form-section,
  body.is-embed .form-section {
    gap: 0.4rem;
    padding: 0.45rem 0.4rem;
    border-radius: 6px;
  }

  .form-section legend {
    font-size: 0.78rem;
    padding: 0 0.25rem;
  }

  .field {
    font-size: 0.65rem;
  }

  .feedback-form input,
  .feedback-form select,
  .feedback-form textarea {
    font-size: 16px; /* avoid iOS zoom */
    padding: 0.35rem 0.5rem;
  }

  .feedback-form textarea {
    min-height: 2.15rem;
  }

  .page-submissions .feedback-title,
  body.is-embed .feedback-title {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .page-submissions .feedback-lead,
  body.is-embed .feedback-lead {
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .field-hint {
    font-size: 0.68rem;
  }

  .confirmation-row {
    font-size: 0.76rem;
    gap: 0.4rem;
  }

  .feedback-submit {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    margin-top: 0.15rem;
  }

  .form-status {
    min-height: 1.1rem;
    font-size: 0.8rem;
  }
}

.site-footer {
  position: relative;
  z-index: 20;
  background: var(--footer-bg);
  color: var(--nav-footer-link);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-white);
}

.social {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-white);
  transition: background 160ms ease, border-color 160ms ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.footer-inline-link {
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--nav-footer-link);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--nav-footer-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-end {
  justify-self: end;
  text-align: right;
}

.footer-tagline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-copy {
  margin: clamp(1.5rem, 4vw, 2rem) auto 0;
  max-width: 1100px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.15);
    color: var(--cream);
    padding: 0.45rem 0.75rem;
    font-family: var(--font);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 6px;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0 0;
    max-width: none;
  }

  .site-nav.open {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-end {
    justify-self: start;
    text-align: left;
  }
}
