:root {
  --orange: #EF4A1F;
  --dark-espresson: #2D2017;
  --espresson: #3D261E;
  --cream: #FFF5EC;
  --burnt-cream: #fcf1e8;
  --blush: #F9EBDE;
  --taupe: #78645D;
  --mushroom: #C0ADA3;
  --sage: #6D975F;
  --sky: #9CC3D5;
  --peach: #FDAB67;
  --paleyellow: #FBF6C1;
  --font-display: "Henrietta", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-Light.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-Regular.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-Medium.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-SemiBold.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-SemiBold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Henrietta";
  src: url("/assets/fonts/Henrietta/VCHenrietta-Bold.woff2") format("woff2"),
    url("/assets/fonts/Henrietta/VCHenrietta-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

html {
  font-size: 1.25rem;
}

@media screen and (max-width:1920px) {
  html {
    font-size: calc(0.75rem + 0.41666666666666674vw);
  }
}

@media screen and (max-width:1440px) {
  html {
    font-size: calc(0.9376951092611863rem + 0.20811654526534862vw);
  }
}

@media screen and (max-width:479px) {
  html {
    font-size: 1rem;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--dark-espresson);
}

body.is--shared-result .screen.is--front{
  display: none;
  z-index: 1;
}



p {
  letter-spacing: -0.03em;
}
/* ── Global ───────────────────────────────── */
.global-padding{
  padding: 0rem 1rem;

}
@media screen and (max-width: 479px) {
 

}


/* ── Screen ───────────────────────────────── */
.main{
  position: relative;
}
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 3rem 0rem; */
  background-color: var(--cream);
  z-index: 2;
}

.screen.is--question,
.screen.is--result {
  display: none;
  z-index: 1;
}


@media screen and (max-width: 479px) {
  .screen {
    /* padding: 5rem 0rem; */
  }
  .screen.is--question {
    /* padding: 1.25rem 0rem; */
  }

}

/* ── Front screen ─────────────────────────── */

.front__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
   padding: 5rem 0rem 0rem;
  /* max-width: 32rem; */
}

.front__header {
  text-align: center;
  max-width: 32rem;
}

.front__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--dark-espresson);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.front__title span {
  color: var(--orange);
}

.front__subtitle {
  font-size: 1rem;
  color: var(--dark-espresson);
  opacity: 0.87;
  line-height: 1.4;
  margin: 0;
}

.front__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  max-width: 32rem;
  width: 100%;
}

@media screen and (max-width: 479px) {
  .front__title {
    font-size: 1.75rem;
        margin: 0 0 0.75rem;
  }
  .front__content{
    padding: 5rem 0;
    gap: 2rem;
  }

}

/* ── ID Card ──────────────────────────────── */

.id-card {
  background: var(--blush);
  border: 5px solid white;
  border-radius: 0.625rem;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.id-card__head {
  padding: 0.75rem 1.25rem 0;
}

.id-card__brand-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  margin-bottom: 0.125rem;
}

.id-card__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--orange);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: center;
  white-space: nowrap;
  position: relative;
}

.id-card__bird {
  height: 1.125rem;
  width: auto;
  position: absolute;
  top: -0.5rem;
  right: 0;
  transform: translate(100%, 20%);
}

.id-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
  letter-spacing: -0.06em;
}

.id-card__meta--right {
  text-align: right;
}

.id-card__rule {
  border: none;
  border-top: 1px dashed var(--orange);
  margin: 0 0 0.25rem;
}

.id-card__tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
  letter-spacing: -0.06em;
  text-align: center;
  margin: 0 0;
}

.id-card__body {
  display: flex;
  gap: 3rem;
  padding: 2rem 1.25rem 1.25rem;
  align-items: flex-start;
}

.id-card__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.id-card__stamp {
  width: 7rem;
  aspect-ratio: 3/4;
  /* flex-shrink: 0; */
  /* border: 1px dashed rgba(61, 38, 30, 0.5); */
  /* border-radius: 2px; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  /* min-height: 6.25rem; */
  position: relative;
}

.id-card__stamp-border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

}

.id-card__stamp p {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(61, 38, 30, 0.5);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
}

.id-card__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  /* padding: 2rem 0; */
}

.id-card__consent input[type="checkbox"] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background: #fbf1e8;
  border: 1px solid #3c1e13;
  border-radius: 3px;
  cursor: pointer;
  margin: 0;
}

.id-card__consent input[type="checkbox"]:checked {
  background: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l4 4 6-6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 0.875rem;
  background-repeat: no-repeat;
  background-position: center;
}

.id-card__consent label {
  font-size: 0.875rem;
  color: var(--dark-espresson);
  line-height: 1.2;
  cursor: pointer;
}

@media screen and (max-width: 479px) {
  .id-card__head {
    padding: 1rem 0.75rem 0;
  }

  .id-card__bird {
    height: 1.125rem;
  }
  .id-card__brand-wrap{
    margin-bottom: 0.25rem;
  }

  .id-card__body {
    gap: 4rem;
    padding: 2rem 0.75rem 2rem;
    flex-direction: column-reverse;

  }

  .id-card__fields {
    gap: 1.25rem;
  }

  /* .field__label {
    font-size: 0.7rem;
  } */

  .id-card__stamp {
    width: 5rem;
    margin-left: auto;
    padding: 0.35rem;
    display: none;
  }

  .id-card__stamp p {
    font-size: 8px;
  }

  .id-card__brand {
    font-size: 1.125rem;
    letter-spacing: 0.01em
  }

  .id-card__meta,
  .id-card__tagline {
    font-size: 0.6rem;
  }
  .id-card__consent input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  
  }

}

/* ── Field ────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(61, 38, 30, 0.8);
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-bottom: 1px solid rgba(239, 74, 31, 0.4);
  border-radius: 3px 3px 0 0;
  padding: 0.5rem 0.625rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--dark-espresson);
  outline: none;
}

.field__input::placeholder {
  color: rgba(61, 38, 30, 0.5);
}

.field__input:focus {
  background: rgba(255, 255, 255, 0.5);
}

/* .field__label_error-text{
  display: none;
} */

/* ── CTA Button ───────────────────────────── */

.cta-btn {
  width: 100%;
  background: var(--orange);
  border: none;
  border-radius: 0.375rem;
  height: 3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  color: white;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cta-btn:hover {
  opacity: 0.88;
}

/* ── Quiz screen ──────────────────────────── */

.screen.is--question {
  align-items: stretch;
}

.screen.is--question .global-padding {
  display: flex;
  width: 100%;
}

.quiz__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 0rem;

}

.quiz__back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--dark-espresson);
  opacity: 0.87;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 0;
  transition: opacity 150ms;
}
.quiz__back:hover{
  opacity: 1;
}
.quiz__question-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark-espresson);
  line-height: 1.2;
  margin: 0 0 2rem;
}
.quiz__question-wrap{
  margin-top: 15vh;
}
.quiz__answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.quiz__option {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--burnt-cream);
  border: 1px solid rgba(61, 38, 30, 0.1);
  border-radius: 5px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
  width: 100%;
}

.quiz__option:not(.is--selected):not(:disabled):hover {
  background: rgba(61, 38, 30, 0.07);
}

.quiz__option.is--selected {
  background: var(--dark-espresson);
  border-color: var(--dark-espresson);
}

.quiz__option-letter {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: rgba(61, 38, 30, 0.7);
  flex-shrink: 0;
}

.quiz__option.is--selected .quiz__option-letter {
  color: rgba(255, 245, 236, 0.7);
}

.quiz__option-text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--dark-espresson);
  letter-spacing: -0.02em;
}

.quiz__option.is--selected .quiz__option-text {
  color: var(--cream);
}

/* Progress */
.quiz__progress{
  margin-top: auto;
}
.quiz__progress-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--dark-espresson);
  text-transform: uppercase;
  letter-spacing: 0em;
  margin: 0 0 0.8125rem;
  opacity: 0.87;
}

.quiz__progress-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.quiz__progress-fill {
  height: 8px;
  background: var(--orange);
  border-radius: 62px;
  flex-shrink: 0;
  min-width: 4px;
}

.quiz__progress-remaining {
  flex: 1;
  height: 8px;
  background: rgba(61, 38, 30, 0.15);
  border-radius: 62px;
  min-width: 0;
}

@media screen and (max-width: 479px) {
  .quiz__question-wrap{
margin-top: auto;
  }

  .quiz__answers {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .quiz__question-text {
    font-size: 1.25rem;
   line-height: 1.3;
    margin: 0 0 1.5rem;
  }
}

/* ── Result screen ────────────────────────── */

.screen.is--result {
  align-items: stretch;
  overflow-y: auto;
}

.screen.is--result .global-padding {
  display: flex;
  width: 100%;
}

.result__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  flex: 1;
  width: 100%;
  margin: auto;
  padding: 5rem 0 0;
}

.result__header {
  /* text-align: center; */
  width: 100%;
  max-width: 32rem;
}

.result__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--dark-espresson);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  
}

.result__archetype-name {
  color: var(--orange);
}

.result__blurb {
  font-size: 1rem;
  color: var(--dark-espresson);
  opacity: 0.87;
  line-height: 1.5;
  margin: 0;
  margin-inline: auto;
}

.result__card-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 32rem;
  width: 100%;
}

.result__canvas {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  position: relative;
  z-index: 97;
  aspect-ratio: 1500 / 810;
}

.result__actions {
  display: flex;
  gap: 0.875rem;
}

.result__btn {
  flex:1;
  flex-basis: 3rem;
  height: 2.75rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.result__btn:hover {
  opacity: 0.88;
}

.result__btn--primary {
  background: var(--orange);
  color: white;
}

.result__btn--secondary {
  background: var(--burnt-cream);
  color: var(--dark-espresson);
  border: 1px solid rgba(61, 38, 30, 0.2);
}

.result__share-wrap {
  position: relative;
  display: flex;
  flex: 1;
}
.result__btn--share-main {
  flex: 1;
  border-radius: 6px 0 0 6px;
}
.result__btn--share-toggle {
  flex: none;
  width: 2.75rem;
  border-radius: 0 6px 6px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.result__share-dropdown[hidden] { display: none; }
.result__share-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--burnt-cream);
  border-radius: 6px;
  /* box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15); */
  border: 1px solid rgba(61, 38, 30, 0.2);
  overflow: hidden;
}
.result__share-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.result__share-option:hover { background: var(--blush); }
.result__share-option + .result__share-option { border-top: 1px solid rgba(61, 38, 30, 0.2); }
.result__share-option__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: var(--dark-espresson);
}
.result__share-option__desc {
  font-size: 0.7rem;
  color: var(--dark-espresson);
  opacity: 0.7;

}

/* Stamp picker */
.stamp-picker[hidden] { display: none; }
.stamp-picker {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}
.stamp-picker__backdrop[hidden] { display: none; }
.stamp-picker__backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, 0.35);
}
.stamp-picker__wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  height: min(37rem, 94svh);
  pointer-events: all;
}
.stamp-picker__close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 1rem;
  transition: opacity 0.15s;
}
.stamp-picker__close:hover { opacity: 0.8; }
.stamp-picker__close img { display: block; }
.stamp-picker__panel {
  width: 17.5rem;
  height: 100%;
  background-image: url('/assets/images/stamp-panel-bg.svg');
  background-size: cover;
  background-repeat: no-repeat;
  padding: 1.5rem 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}
.stamp-picker__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--espresso);
  text-align: center;
  margin: 0;
  line-height: 1.4;
  flex-shrink: 0;
}
.stamp-picker__stamps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 1.5rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  width: 100%;
}
.stamp-picker__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  flex-shrink: 0;
}
.stamp-picker__bottom[hidden] { display: none; }
.stamp-option {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.stamp-option--default,
.stamp-option--custom {
  width: 100%;
}
.stamp-option__inner {
  transform: rotate(2.96deg);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.1));
}
.stamp-option:not(.stamp-option--active):hover .stamp-option__inner {
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.2));
}
.stamp-option--active .stamp-option__inner {
  filter: drop-shadow(1.5px 1.5px 3px rgba(0, 0, 0, 0.5));
}
.stamp-option__preview {
  width: 100%;
  height: auto;
  display: block;
}
.stamp-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--cream);
  border-radius: 5px;
  padding: 0.4rem 1rem;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--espresso);
  letter-spacing: 0.02em;
}
.stamp-action-btn.stamp-option--active {
  background: rgba(61, 38, 30, 0.12);
}
.stamp-action-btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: transparent;
}
.stamp-action-btn img { display: block; }

@media screen and (max-width: 479px) {
  .stamp-picker__panel { width: min(17.5rem, 75vw); }
  .stamp-picker__wrap { height: min(32rem, 94svh); }
}

@media screen and (max-width: 479px) {
  .result__title {
    font-size: 1.75rem;
  }

  .result__actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  .result__btn {
  flex-basis: 2.5rem;
  height: 2.5rem;
  
}
}

/* ── Footer ───────────────────────────────── */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 8rem;
  padding-bottom: 1.5rem;
  width: 100%;
  margin-top: auto;
}

.footer__logo {
  height: 5rem;
  width: auto;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--dark-espresson);
  opacity: 0.7;
  margin: 0;
  text-align: center;
}

.footer__copy a {
  color: inherit;
  text-decoration: underline;
}

@media screen and (max-width: 479px) {
  .footer__logo {
    height: 4rem;
  }
  .footer__copy {
    font-size: 0.8125rem;
  }
}

/* ── Reduced motion ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .cta-btn,
  .quiz__back,
  .quiz__option {
    transition: none;
  }
}

/* ── Error Page ───────────────────────── */

.error-page {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      text-align: center;
      padding: 2rem;
      gap: 0.5rem;
    }

.error-page h1{
  margin:0;
}
.error-page p{
  margin:0;
}
.error-page a{
  margin:1rem 0rem 0rem;
}