:root {
  --paper: #f9f7f1;
  --ink: #202f2b;
  --muted: #59655d;
  --rule: #d7d7c9;
  --gold: #af7c38;
  --dark: #102d2c;
  --serif: "Baskervville","Iowan Old Style",Georgia,serif;
  --sans: "DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1060px,calc(100% - 64px));
  margin-inline: auto;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover,summary:hover {
  color: #9a682c;
}

:focus-visible {
  outline: 3px solid #ad7029;
  outline-offset: 4px;
}

.top,.foot,.brand,.issue,.actions,.section-head {
  display: flex;
  align-items: center;
}

.top,.foot,.section-head {
  justify-content: space-between;
}

.top {
  height: 84px;
}

.brand {
  gap: 9px;
  font: 34px/.95 var(--serif);
  text-decoration: none;
  letter-spacing: -2px;
}

.spark {
  color: var(--gold);
  font: 35px/1 Georgia,serif;
}

.brand-line {
  height: 20px;
  width: 1px;
  background: #c8c8ba;
  margin: 2px 4px 0 6px;
}

.brand-sub,.issue,.foot {
  font: 600 10px/1.5 var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
}

.brand-sub {
  letter-spacing: .14em;
}

.top-link,.actions a {
  font-size: 13px;
}

.top-link {
  text-decoration: none;
}

.top-link span {
  margin-left: 5px;
}

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: radial-gradient(ellipse at 77% 50%,#294540 0%,#153430 38%,#102d2c 75%);
  color: #faf6e9;
  min-height: 325px;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 38px 5%;
  width: 57%;
}

.issue {
  color: #e4c992;
  gap: 10px;
  letter-spacing: .16em;
  margin: 0 0 17px;
}

.issue span {
  width: 23px;
  height: 1px;
  background: currentColor;
}

.issue i {
  font-style: normal;
  font-size: 8px;
}

h1,h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(52px,6.1vw,82px);
  line-height: .96;
  letter-spacing: -.056em;
  margin: 0;
}

.hero em {
  color: #ebcf9b;
  font-weight: 400;
}

.intro {
  font-size: 15px;
  line-height: 1.55;
  color: #e4e7db;
  max-width: 355px;
  margin: 19px 0 0;
}

#sky {
  width: 55%;
  height: 100%;
  position: absolute;
  right: -1%;
  top: 0;
  z-index: 0;
  pointer-events: none;
}

.forecast-form {
  margin: 36px auto 46px;
  width: 90%;
}

h2 {
  font-size: clamp(28px,3vw,37px);
  line-height: 1.15;
  letter-spacing: -.045em;
  margin: 0 0 22px;
}

.section-head {
  gap: 15px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
}

summary,.actions a,.result a {
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  display: inline-block;
  padding-left: 3px;
}

details[open] summary span {
  transform: rotate(-90deg);
}

.birthday {
  max-width: 250px;
  margin-top: 12px;
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 9px;
}

.tile {
  cursor: pointer;
  position: relative;
}

.tile input,.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
}

.tile-face {
  min-height: 65px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fffdf7;
  font: 17px var(--serif);
  transition: background .12s,border-color .12s;
}

.glyph {
  font: 23px/1 Georgia,"Apple Symbols","Segoe UI Symbol",serif;
  color: #986d3e;
}

.tile:hover .tile-face {
  border-color: #8a998b;
}

.tile input:checked+.tile-face {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

.tile input:checked+.tile-face .glyph {
  color: #edcf90;
}

.tile input:focus-visible+.tile-face {
  outline: 3px solid #ad7029;
  outline-offset: 2px;
}

.details-section {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--rule);
}

.input-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 23px;
}

.input-grid label,.birthday label {
  font-size: 14px;
  font-weight: 600;
}

small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

input[type=email],input[type=date],select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  border: 1px solid #bfc5b9;
  border-radius: 4px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fffdf9;
  font: 16px var(--sans);
}

.check {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  margin: 10px 0;
}

input[type=checkbox] {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0;
  align-self: flex-start;
  accent-color: var(--dark);
  transform: translateY(2px);
}

.actions {
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
}

button {
  border: 0;
  background: var(--dark);
  color: #fffdf6;
  border-radius: 4px;
  min-height: 47px;
  padding: 12px 22px;
  cursor: pointer;
  font: 600 15px var(--sans);
}

button:hover {
  background: #234940;
}

button span {
  margin-left: 18px;
  color: #eacf94;
}

.foot {
  border-top: 1px solid var(--rule);
  padding: 20px 0 26px;
  color: var(--muted);
  letter-spacing: .10em;
}

.foot a {
  text-transform: none;
  letter-spacing: normal;
  font-size: 12px;
}

.errors,.note {
  border-left: 3px solid #a15d32;
  background: #f0e8db;
  padding: 10px 15px;
  margin: 15px 0;
}

.errors p {
  margin: .3em 0;
}

.article,.admin,.result {
  padding-block: 25px 45px;
}

.article {
  max-width: 720px;
}

.article h1,.admin h1,.result h1 {
  font-size: clamp(39px,6vw,62px);
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 12px 0;
}

.article h2,.admin h2 {
  font-size: 27px;
  margin: 28px 0 8px;
}

.result {
  background: var(--dark);
  border-radius: 5px;
  color: var(--paper);
  text-align: center;
  padding: 64px 20px;
  margin-bottom: 40px;
}

.seal {
  font: 48px/1 Georgia,serif;
  color: #dfbe83;
}

.result p {
  max-width: 430px;
  margin: 20px auto;
}

.result a {
  color: #ead3a9;
}

.result button {
  background: #f0dfb9;
  color: #1d3833;
  margin: 6px 0 20px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

td,th {
  border-bottom: 1px solid var(--rule);
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #edece1;
}

@media(max-width:820px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .hero-copy {
    width: 58%;
    padding: 30px;
  }
  .forecast-form {
    width: 100%;
  }
  .tile-face {
    flex-direction: column;
    gap: 3px;
    font-size: 15px;
  }
  .hero {
    min-height: 290px;
  }
}

@media(max-width:560px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .top {
    height: 61px;
  }
  .brand {
    font-size: 30px;
  }
  .spark {
    font-size: 29px;
  }
  .brand-sub {
    font-size: 9px;
  }
  .hero {
    min-height: 238px;
    align-items: flex-start;
  }
  .hero-copy {
    width: 100%;
    padding: 22px 16px;
  }
  .issue {
    font-size: 8px;
    letter-spacing: .12em;
    margin-bottom: 16px;
    gap: 6px;
  }
  .issue span {
    width: 14px;
  }
  .hero h1 {
    font-size: clamp(43px,11.6vw,60px);
  }
  .intro {
    font-size: 14px;
    line-height: 1.45;
    max-width: 76%;
    margin-top: 15px;
  }
  .hero #sky {
    width: 65%;
    height: 83%;
    right: -21%;
    top: 9%;
    opacity: .84;
  }
  .forecast-form {
    margin: 25px auto 32px;
  }
  .section-head {
    gap: 6px;
    margin-bottom: 13px;
  }
  .section-head h2 {
    font-size: 28px;
  }
  .sign-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
  }
  .tile-face {
    flex-direction: row;
    gap: 5px;
    min-height: 46px;
    font-size: 15px;
  }
  .glyph {
    font-size: 18px;
  }
  .input-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .actions {
    align-items: stretch;
    text-align: center;
    flex-direction: column;
    gap: 12px;
  }
  .foot {
    font-size: 8px;
  }
  .section-head details[open] {
    width: 100%;
  }
  .result,.article,.admin {
    padding-block: 26px;
  }
  .details-section {
    margin-top: 20px;
    padding-top: 20px;
  }
}

@media(max-width:350px) {
  .tile-face {
    font-size: 13px;
  }
  .hero #sky {
    opacity: .55;
  }
  .top-link {
    font-size: 12px;
  }
}
