:root {
  --paper: #f5f1e6;
  --white: #fffcf4;
  --ink: #193b35;
  --muted: #535f54;
  --pine: #194941;
  --wine: #953e3f;
  --berry: #a74748;
  --gold: #d3aa66;
  --line: #c6c5ae;
  --serif: Georgia, "Songti SC", "Times New Roman", serif;
  --sans:
    "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(rgba(83, 77, 52, 0.09) 0.5px, transparent 0.8px) 0 0 / 5px
      5px,
    var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #a83938;
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(calc(100% - 9vw), 1280px);
  margin: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.shell > main {
  flex: 1;
}
main:focus {
  outline: 0;
}
header,
footer,
.dialog-top,
.calendar-top,
.actions,
.calendar-tools,
.village-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.brand,
.watch {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand {
  gap: 0.56rem;
  font: 600 1.7rem/1 var(--serif);
  letter-spacing: -0.065em;
}
.brand-seal {
  display: grid;
  place-items: center;
  width: 29px;
  height: 33px;
  color: #f4df9e;
  background: var(--pine);
  border: 1px solid var(--pine);
  outline: 1px dashed #e9d79d;
  outline-offset: -3px;
  border-radius: 3px 3px 9px 9px;
  font: normal 24px/1 var(--serif);
}
.watch {
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  font-size: 0.91rem;
  font-weight: 650;
}
.watch:hover,
.plain:hover,
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}
.landing {
  padding: clamp(36px, 6vh, 78px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(35px, 6vw, 95px);
}
.letterhead,
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 760;
  color: var(--wine);
  margin: 0 0 1.15rem;
}
.letterhead {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.letterhead > span:first-child {
  font: 1.35rem/1 var(--serif);
}
h1 {
  font: normal clamp(3.7rem, 6.45vw, 6.75rem) / 0.96 var(--serif);
  margin: 0;
  letter-spacing: -0.073em;
  text-wrap: balance;
}
.pitch h1 span,
.pitch h1 em {
  display: block;
}
.pitch h1 em {
  font-weight: 400;
  color: var(--wine);
}
.intro,
.calendar-lead {
  font-size: clamp(1.01rem, 1.28vw, 1.16rem);
  line-height: 1.56;
  color: var(--muted);
  max-width: 30em;
  margin: 1.4rem 0 1.7rem;
}
.actions,
.calendar-tools {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.primary,
.secondary,
.plain,
.icon {
  border: 0;
  min-height: 45px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0.82rem 1.13rem;
  font-weight: 710;
  font-size: 0.96rem;
  text-align: center;
  line-height: 1.25;
}
.primary {
  background: var(--wine);
  color: var(--white);
  border: 1px solid #823233;
  box-shadow: 0 2px 0 #722d2e;
}
.primary:hover {
  background: #803237;
}
.secondary {
  background: rgba(255, 252, 244, 0.65);
  color: var(--ink);
  border: 1px solid #728573;
}
.secondary:hover {
  background: #e6e9db;
}
.plain {
  background: transparent;
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
}
.free {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 1rem 0 0;
}
footer {
  border-top: 1px solid var(--line);
  min-height: 65px;
  color: var(--muted);
  font-size: 0.86rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer-brand {
  font: 1.12rem var(--serif);
  font-weight: 600;
  letter-spacing: -0.05em;
}
.village {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #284d43;
  background: #1e4141;
  box-shadow:
    0 9px 18px #1e40321a,
    0 2px 4px #504d351f;
  border-radius: 13px;
  color: #fff7df;
}
.village::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 1;
  border: 1px solid #c3ae765e;
  border-radius: 9px;
  pointer-events: none;
}
.sky {
  background-color: #193741;
  background-image: url("/village-sky.webp");
  background-size: 100% 100%;
  position: relative;
  min-height: 103px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 36px;
  text-align: center;
}
.sky h2 {
  margin: 0;
  color: #ffedbd;
  font: italic 400 clamp(1.5rem, 2.6vw, 2.6rem) / 1.04 var(--serif);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 3px #173137;
}
.sky .edition {
  margin: 0 0 3px;
  color: #f4e5b9;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}
.street {
  background: linear-gradient(
    180deg,
    #d9e2d2 0,
    #819c92 6%,
    #42635e 24%,
    #284c48 100%
  );
  padding: 0 12px 6px;
}
.doors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px 3px;
}
.door-option {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.door {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 130/116;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent url("/village-houses.webp") 0 center / 600% 100%
    no-repeat;
  color: #fff2c6;
  text-shadow: 0 1px 1px #122e2c;
  font-family: var(--serif);
  transition:
    transform 0.14s,
    filter 0.14s;
  -webkit-appearance: none;
  appearance: none;
}
.house-1 {
  background-position-x: 0%;
}
.house-2 {
  background-position-x: 20%;
}
.house-3 {
  background-position-x: 40%;
}
.house-4 {
  background-position-x: 60%;
}
.house-5 {
  background-position-x: 80%;
}
.house-6 {
  background-position-x: 100%;
}
.door:hover {
  transform: translateY(-2px);
  filter: brightness(1.17);
}
.door:focus-visible {
  outline: 2px solid #ffedac;
  outline-offset: -2px;
  z-index: 2;
}
.door-num {
  position: absolute;
  top: 55%;
  left: 36%;
  width: 29%;
  display: block;
  text-align: center;
  line-height: 1;
  font-size: clamp(1rem, 1.56vw, 1.72rem);
  letter-spacing: -0.055em;
  font-variant-numeric: lining-nums;
}
.door-flag {
  position: absolute;
  right: 13%;
  bottom: 7%;
  border: 1px solid #ffde8c;
  border-radius: 50%;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  font: 700 10px/1 var(--sans);
  background: #91393c;
  color: #fff7d0;
}
.ready .door-flag {
  background: #f4d183;
  color: #30483a;
}
.village .door-state {
  font-size: 0.7rem;
  line-height: 1.3;
  text-align: center;
  color: #fff5df;
  padding: 2px 0 4px;
}
.village-caption {
  min-height: 49px;
  padding: 9px 18px;
  color: #f1e4c7;
  border-top: 1px solid #9c9f7e70;
  font-size: 0.8rem;
  line-height: 1.4;
}
.village-caption .plain {
  color: #fae6ad;
  flex: none;
  min-height: 39px;
}
.calendar {
  padding: clamp(26px, 5vh, 48px) 0 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(25px, 5vw, 75px);
  align-items: start;
}
.calendar-top {
  align-items: start;
  flex-direction: column;
  gap: 0;
}
.calendar h1 {
  font-size: clamp(2.7rem, 4.6vw, 5.3rem);
  overflow-wrap: anywhere;
}
.calendar-lead {
  margin: 1rem 0 1.15rem;
}
.calendar .village {
  width: 100%;
}
.recovery {
  margin-top: 1rem;
  max-width: 35rem;
  color: var(--muted);
}
.recovery > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 0.65rem 0;
  font-size: 0.91rem;
  font-weight: 650;
}
.recovery p,
.hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.2rem 0 0.7rem;
}
.recovery .secondary {
  margin: 0.1rem 0 0.55rem;
}
.zone {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 1rem 0 0;
}
dialog {
  width: min(435px, calc(100vw - 28px));
  border: 1px solid #6c7664;
  color: var(--ink);
  border-radius: 10px;
  padding: 0;
  background: var(--white);
  max-height: calc(100dvh - 24px);
  box-shadow: 0 12px 45px #173a3440;
}
dialog::backdrop {
  background: #0f2525ae;
}
.dialog-body {
  padding: clamp(18px, 4vw, 29px);
  border-top: 6px solid var(--wine);
}
.dialog-top {
  min-height: 36px;
}
.flower {
  color: var(--wine);
  font: 1.9rem/1 var(--serif);
}
.icon {
  display: grid;
  place-items: center;
  min-width: 44px;
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
  border-radius: 50%;
  line-height: 1;
}
.icon:hover {
  background: #e8eadd;
}
dialog h2 {
  font: normal clamp(1.92rem, 4vw, 2.7rem) / 1.05 var(--serif);
  letter-spacing: -0.05em;
  margin: 0.5rem 0 1rem;
}
.input-pair {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0.7rem;
}
form {
  display: grid;
  gap: 0.82rem;
}
label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.92rem;
}
input,
select,
textarea {
  border: 1px solid #94a096;
  border-radius: 4px;
  background: #fffdfa;
  color: var(--ink);
  padding: 0.62rem 0.65rem;
  width: 100%;
  min-height: 44px;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.form-error {
  margin: 0;
  color: #8c303c;
  font-size: 0.91rem;
  line-height: 1.48;
}
.form-error:empty {
  display: none;
}
.panel-note {
  margin: 0.2rem 0 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.read-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: normal 1.55rem/1.36 var(--serif);
  margin: 1.1rem 0;
}
.signed {
  color: var(--wine);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #dddeca;
  border-radius: 5px;
  background: var(--ink);
  color: white;
  padding: 0.8rem 1rem;
  text-align: center;
  max-width: calc(100% - 2rem);
  width: max-content;
  z-index: 9;
}
.demo-video {
  display: block;
  max-height: min(65dvh, 608px);
  width: 100%;
  background: #152b24;
  object-fit: contain;
  border-radius: 4px;
}
.copy-fallback {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
}
@media (max-width: 1080px) and (min-width: 761px) {
  .shell {
    width: 93%;
  }
  .landing {
    gap: 3.5vw;
    grid-template-columns: 0.76fr 1.24fr;
  }
  .landing-actions {
    flex-direction: column;
    align-items: start;
  }
  .sky {
    min-height: 87px;
    padding-bottom: 24px;
  }
  .street {
    padding-inline: 9px;
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 36px);
  }
  header {
    min-height: 61px;
  }
  .brand {
    font-size: 1.48rem;
  }
  .watch {
    font-size: 0.84rem;
  }
  .landing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.65rem 0 2rem;
  }
  .pitch h1 {
    font-size: clamp(3rem, 9.1vw, 4.6rem);
    line-height: 0.99;
    max-width: 13em;
    letter-spacing: -0.067em;
  }
  .pitch h1 span,
  .pitch h1 em {
    display: inline;
  }
  .letterhead {
    font-size: 0.65rem;
    margin-bottom: 0.6rem;
  }
  .intro {
    font-size: 1rem;
    line-height: 1.47;
    margin: 0.85rem 0 1rem;
    max-width: 39em;
  }
  .primary,
  .secondary {
    padding: 0.71rem 0.9rem;
    font-size: 0.89rem;
  }
  .free {
    margin: 0.7rem 0 0;
  }
  .sky {
    min-height: 85px;
  }
  .calendar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.6rem 0 2rem;
  }
  .calendar-top {
    width: 100%;
  }
  .calendar h1 {
    font-size: clamp(2.45rem, 8.3vw, 3.4rem);
  }
  .calendar .eyebrow {
    margin-bottom: 0.55rem;
  }
  .calendar-lead {
    margin: 0.65rem 0 0.9rem;
  }
  .sky h2 {
    font-size: 1.75rem;
  }
  .door-num {
    font-size: clamp(1rem, 3.7vw, 1.65rem);
  }
  .village-caption {
    min-height: 42px;
    padding: 8px 13px;
  }
  .street {
    padding-inline: 9px;
  }
  .brand-seal {
    width: 25px;
    height: 29px;
    font-size: 19px;
  }
  footer {
    min-height: 59px;
  }
}
@media (max-width: 499px) {
  .doors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px 2px;
  }
  .village .door-num {
    font-size: clamp(0.97rem, 4.2vw, 1.42rem);
  }
  .sky {
    min-height: 74px;
    padding: 12px 8px 26px;
  }
  .sky .edition {
    font-size: 0.55rem;
  }
  .sky h2 {
    font-size: 1.6rem;
  }
  .village-caption {
    font-size: 0.72rem;
  }
  .door-flag {
    min-width: 12px;
    height: 12px;
    font-size: 8px;
  }
  .village .door-state {
    font-size: 0.66rem;
  }
  .input-pair {
    gap: 0.45rem;
  }
  .footer-brand {
    font-size: 0.96rem;
  }
  footer nav {
    gap: 0.75rem;
  }
}
@media (max-width: 355px) {
  .shell {
    width: calc(100% - 22px);
  }
  .landing-actions {
    gap: 0.45rem;
  }
  .landing-actions button {
    padding-inline: 0.67rem;
  }
  .calendar-tools .secondary,
  .calendar-tools .primary {
    font-size: 0.83rem;
  }
  .door-num {
    font-size: 0.95rem;
  }
}
@media (min-width: 761px) and (max-height: 580px) {
  .landing,
  .calendar {
    padding-block: 24px;
  }
  .sky {
    min-height: 76px;
    padding-block: 12px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
