/* Graduated from the approved FiftyDays mockup. No rotated or skewed elements. */
:root {
  --display: Cinzel, Georgia, serif;
  --accent: "Cormorant Garamond", Georgia, serif;
  --body: Montserrat, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #0c0c0c; }
a { color: var(--fd-gold); text-underline-offset: 4px; }
.fifty-days {
  --fd-paper: #e8e0d0;
  --fd-ink: #0c0c0c;
  --fd-gold: #c9a84c;
  --fd-ox: #6e1f20;
  --fd-muted: #a3a3a3;
  --fd-rule: #393326;
  min-height: 100dvh;
  overflow: hidden;
  background: radial-gradient(ellipse at 72% 8%, rgba(110,31,32,.28), transparent 31rem), var(--fd-ink);
  color: var(--fd-paper);
  font: 16px/1.65 var(--body);
  position: relative;
}
.fifty-days::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}
.fd-shell {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.fd-masthead {
  display: flex;
  align-items: center;
  padding: 28px 0 22px;
  border-bottom: 1px solid rgba(201,168,76,.48);
}
.fd-masthead img { display: block; width: 34px; height: auto; }
.fd-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(370px,.92fr);
  align-items: center;
  gap: 28px;
  padding: 62px 0 72px;
  position: relative;
}
.fd-hero-copy { position: relative; z-index: 2; padding: 14px 0 26px; }
.fd-eyebrow {
  margin: 0 0 26px;
  color: var(--fd-gold);
  font: 400 14px/1.4 var(--display);
  letter-spacing: .27em;
  text-transform: uppercase;
}
.fd-title {
  margin: 0;
  font: 700 clamp(44px,6.2vw,78px)/.99 var(--display);
  letter-spacing: .055em;
  text-transform: uppercase;
  max-width: 720px;
}
.fd-title span { display: block; }
.fd-title .fd-title-second {
  margin: 13px 0 0 9%;
  color: var(--fd-gold);
  font-size: .48em;
  letter-spacing: .27em;
}
.fd-rule { width: 91px; height: 2px; margin: 32px 0 24px; background: var(--fd-gold); }
.fd-lead {
  max-width: 570px;
  margin: 0;
  color: #e5ddcc;
  font: italic 400 clamp(20px,2.4vw,28px)/1.36 var(--accent);
}
.fd-calendar-art {
  align-self: stretch;
  min-height: 485px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 31px 14px 30px 24px;
}
.fd-calendar-art::before {
  content: "";
  position: absolute;
  inset: 1px -40px 1px -28px;
  border: 1px solid rgba(201,168,76,.35);
}
.fd-calendar-art::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 8%;
  right: -22px;
  width: 1px;
  background: linear-gradient(transparent,var(--fd-gold),transparent);
}
.fd-big-number {
  position: relative;
  z-index: 1;
  margin: -9px 0 -40px;
  color: var(--fd-gold);
  font: 700 clamp(155px,24vw,310px)/.82 var(--display);
  letter-spacing: -.105em;
  text-align: center;
  text-shadow: 13px 13px 0 rgba(110,31,32,.72);
}
.fd-day-grid {
  display: grid;
  grid-template-columns: repeat(10,minmax(0,1fr));
  gap: 7px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.fd-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201,168,76,.56);
  color: var(--fd-gold);
  font: 500 12px/1 var(--body);
  font-variant-numeric: tabular-nums;
  background: rgba(12,12,12,.75);
}
.fd-day:nth-child(10n + 1) { border-left: 3px solid var(--fd-ox); }
.fd-day:nth-child(5n) { color: var(--fd-paper); }
.fd-date-band {
  border-top: 1px solid var(--fd-gold);
  border-bottom: 1px solid var(--fd-gold);
  padding: 16px 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--fd-gold);
  font: 400 clamp(14px,1.5vw,17px)/1.4 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fd-date-band::before {
  content: "";
  width: 44px;
  height: 1px;
  flex: 0 0 44px;
  background: var(--fd-ox);
  order: 2;
}
.fd-date-band h2 { margin: 0; font: inherit; }
.fd-intro { max-width: 870px; margin: 0 auto; padding: 92px 12px 98px; text-align: center; }
.fd-intro p { margin: 0; font: 400 clamp(20px,1.5vw,22px)/1.6 var(--accent); }
.fd-intro p + p { margin-top: 1em; }
.fd-benefits { padding: 0 0 95px; }
.fd-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--fd-gold);
  padding-bottom: 13px;
}
.fd-section-head h2 {
  margin: 0;
  color: var(--fd-gold);
  font: 400 clamp(24px,3vw,36px)/1.2 var(--display);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.fd-benefit-list { border-top: 1px solid var(--fd-rule); list-style: none; margin: 0; padding: 0; }
.fd-benefit {
  display: grid;
  grid-template-columns: 70px minmax(180px,.7fr) minmax(0,1.3fr);
  gap: 18px;
  align-items: baseline;
  padding: 19px 14px 18px 0;
  border-bottom: 1px solid var(--fd-rule);
  transition: background-color .22s ease, padding-left .22s ease;
}
.fd-benefit:hover { padding-left: 12px; background: rgba(201,168,76,.055); }
.fd-benefit-index { color: var(--fd-gold); font: 700 15px/1 var(--display); letter-spacing: .08em; }
.fd-benefit h3 {
  margin: 0;
  color: var(--fd-gold);
  font: 700 16px/1.4 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fd-benefit p { margin: 0; color: var(--fd-paper); font-size: 16px; }
.fd-habit { grid-template-columns: minmax(180px,.7fr) minmax(0,1.3fr); padding-left: 88px; }
.fd-habit:hover { padding-left: 100px; }
.fd-privacy { max-width: 690px; margin: 22px 0 0 auto; color: var(--fd-muted); font-size: 16px; }
.fd-join {
  position: relative;
  padding: 48px 54px 47px;
  border: 1px solid rgba(201,168,76,.62);
  background: linear-gradient(112deg,rgba(110,31,32,.25),transparent 55%), #11100e;
}
.fd-join::before, .fd-join::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: var(--fd-gold);
  border-style: solid;
  pointer-events: none;
}
.fd-join::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.fd-join::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.fd-join h2 {
  margin: 0 0 18px;
  color: var(--fd-gold);
  font: 400 clamp(27px,3vw,38px)/1.2 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fd-price { max-width: 710px; margin: 0 0 25px; font-size: 16px; }
.fd-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid var(--fd-gold);
  border-radius: 0;
  padding: 13px 22px;
  background: var(--fd-gold);
  color: var(--fd-ink);
  font: 700 15px/1.4 var(--display);
  letter-spacing: .14em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.fd-button:hover { background: transparent; color: var(--fd-gold); }
.fd-button[disabled] { opacity: .5; cursor: default; }
.fd-returning { color: var(--fd-muted); font-size: 16px; margin: 23px 0 0; }
.fd-email-choice { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0; font-size: 18px; line-height: 1.6; cursor: pointer; }
.fd-email-choice input { width: 24px; height: 24px; flex: 0 0 24px; margin: 3px 0 0; accent-color: var(--fd-gold); cursor: pointer; }
.msg { border: 1px solid var(--fd-gold); padding: 16px; margin-bottom: 20px; font-size: 16px; }
.msg.bad { border-color: #b4504f; }
.msg h2 { font-size: 20px; margin: 0 0 6px; }
.msg p { margin: 0; }
.fd-footer { margin: 37px 0 0; padding: 17px 0 29px; border-top: 1px solid var(--fd-rule); color: var(--fd-muted); font-size: 14px; }
.fifty-days :focus-visible { outline: 2px solid var(--fd-gold); outline-offset: 4px; }

@media (max-width: 1000px) and (min-width: 761px) {
  .fd-hero { grid-template-columns: minmax(0,1.08fr) minmax(290px,.92fr); }
  .fd-title { font-size: clamp(40px,6.2vw,62px); }
  .fd-calendar-art::before { right: -20px; left: -10px; }
  .fd-calendar-art::after { right: -10px; }
}
@media (max-width: 760px) {
  .fd-shell { width: min(calc(100% - 36px),620px); }
  .fd-masthead { padding: 19px 0 16px; }
  .fd-hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 17px; padding: 48px 0 45px; }
  .fd-title { font-size: clamp(43px,11vw,70px); }
  .fd-title .fd-title-second { margin-left: 5%; }
  .fd-lead { max-width: 570px; }
  .fd-calendar-art { min-height: 0; padding: 22px 8px 27px; margin: 0 12px 4px; }
  .fd-calendar-art::before { inset: 4px -8px; }
  .fd-calendar-art::after { right: -10px; }
  .fd-big-number { font-size: clamp(170px,48vw,265px); margin-bottom: -30px; }
  .fd-day-grid { gap: 5px; max-width: 410px; }
  .fd-intro { padding: 65px 0 72px; }
  .fd-benefits { padding-bottom: 65px; }
  .fd-benefit { grid-template-columns: 42px minmax(0,1fr); gap: 5px 13px; padding: 15px 0; }
  .fd-benefit-index { grid-row: span 2; }
  .fd-benefit p { grid-column: 2; }
  .fd-habit { grid-template-columns: minmax(0,1fr); }
  .fd-habit p { grid-column: auto; }
  .fd-habit:hover { padding-left: 12px; }
  .fd-privacy { margin-left: 0; }
  .fd-join { padding: 34px 24px 31px; }
}
@media (max-width: 420px) {
  .fd-shell { width: calc(100% - 30px); }
  .fd-masthead img { width: 29px; }
  .fd-hero { padding-top: 39px; }
  .fd-eyebrow { margin-bottom: 19px; }
  .fd-title { font-size: clamp(34px,10.5vw,44px); letter-spacing: .025em; }
  .fd-title .fd-title-second { font-size: .46em; letter-spacing: .2em; }
  .fd-calendar-art { margin-inline: 5px; }
  .fd-day-grid { gap: 3px; }
  .fd-date-band { letter-spacing: .1em; }
  .fd-date-band::before { width: 20px; flex-basis: 20px; }
  .fd-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .fd-benefit { grid-template-columns: 32px minmax(0,1fr); }
  .fd-habit { grid-template-columns: minmax(0,1fr); }
  .fd-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fifty-days *, .fifty-days *::before, .fifty-days *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
