/* Lady's Lady
   The valet: engraved letterhead, navy ink on ivory stock, one touch of brass. */
:root {
  --stock: #F8F5EE;
  --card: #FFFDF8;
  --ink: #14213D;
  --soft: #55607A;
  --brass: #9C7C3C;
  --rule: #D9D3C5;
  --after: #E9EDF3;
  --display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --body: "EB Garamond", "Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stock); color: var(--ink);
  font-family: var(--body); font-size: 1.25rem; line-height: 1.55;
}
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.masthead, main, .foot { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---- letterhead ---- */
.masthead { padding-top: 2.5rem; text-align: center; position: relative; }
.wordmark { display: inline-block; color: var(--ink); text-decoration: none; }
.wordmark svg { display: block; width: 4.25rem; height: 4.25rem; margin: 0 auto .7rem; }
.wordmark span {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em;
  display: block; white-space: nowrap;
}
.masthead-note { margin: .35rem 0 0; font-style: italic; font-size: 1.05rem; color: var(--soft); }
.masthead::after { content: ""; display: block; width: 3.5rem; height: 1px; background: var(--brass); margin: 1.5rem auto 0; }
.account {
  position: absolute; right: 1.5rem; top: 1.25rem;
  display: flex; gap: .9rem; align-items: baseline; font-size: 1rem;
}
.account span { color: var(--soft); max-width: 13rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- introduction ---- */
.intro { padding: 3rem 0 .5rem; text-align: center; }
h1 {
  font-family: var(--display); font-weight: 500; letter-spacing: -.005em;
  font-size: clamp(2.5rem, 7.5vw, 4rem); line-height: 1.04; margin: 0 auto 1.4rem; max-width: 15em;
  text-wrap: balance;
}
.lede { margin: 0 auto; max-width: 33rem; color: #2B3653; }

/* ---- the form, filled in like a card ---- */
.survey {
  background: var(--card); border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 5px;
  padding: 1rem 2.25rem 2.5rem; margin: 3rem 0 4rem;
}
.field { border: 0; padding: 0; margin: 2rem 0 0; min-width: 0; }
.field > label, .field > legend {
  font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2;
  padding: 0; margin-bottom: .45rem; display: block;
}
.hint { margin: .45rem 0 0; font-size: 1.05rem; font-style: italic; color: var(--soft); }

input[type="date"], input[type="text"], input[type="email"], input[type="password"], select {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: .3rem .1rem .35rem; width: 100%; max-width: 15rem;
}
select { margin-top: .9rem; }
.pair { display: flex; flex-wrap: wrap; gap: 1.1rem 2rem; margin-top: .9rem; align-items: baseline; }
.pair select { margin-top: 0; width: auto; min-width: 6.5rem; }
.pair label { font-family: var(--display); font-weight: 600; font-size: 1.25rem; display: flex; align-items: baseline; gap: .6rem; }
input[type="number"] {
  font: inherit; font-family: var(--body, inherit); font-weight: 400; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: .3rem .1rem .35rem; width: 5.5rem;
}
input:focus-visible, select:focus-visible { outline: 0; border-bottom: 2px solid var(--brass); }

.segmented { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .15rem; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: .32rem 1rem .38rem; border: 1px solid var(--ink); font-size: 1.1rem; }
.segmented input:checked + span { background: var(--ink); color: var(--stock); }
.segmented input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }

button { font: inherit; cursor: pointer; }
.primary {
  margin-top: 2.5rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .2em; text-transform: uppercase;
  background: var(--ink); color: var(--stock); border: 1px solid var(--ink); border-radius: 0;
  padding: .95rem 1.9rem .9rem;
}
.primary:hover { background: #1E2F57; }
.primary:disabled { opacity: .55; cursor: default; }
.quiet { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.form-error { color: #8C1C2B; margin: 1.5rem 0 0; }

/* ---- account ---- */
.keep-plan {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--card); border: 1px solid var(--rule); padding: 1.4rem 1.75rem; margin: 2.25rem 0 0;
}
.keep-plan h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 0 0 .15rem; }
.keep-plan p { margin: 0; max-width: 24rem; font-size: 1.1rem; color: #2B3653; }
.keep-plan .primary { margin-top: 0; }

.auth {
  border: 1px solid var(--ink); border-radius: 0; padding: 2rem 2.25rem 2.25rem; width: min(26rem, calc(100vw - 2rem));
  background: var(--card); color: var(--ink);
}
.auth::backdrop { background: rgba(20, 33, 61, .6); }
.auth h2 { font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1.1; margin: 0 0 .4rem; }
.auth > p { margin: 0 0 1rem; font-size: 1.1rem; color: #2B3653; }
.auth .field { margin-top: 1.25rem; }
.auth .field > label { font-size: 1.2rem; margin-bottom: .2rem; }
.auth input { max-width: none; }
.auth .primary { width: 100%; margin-top: 1.75rem; }
.auth-close { text-align: right; margin: -.9rem -.75rem .1rem 0; font-size: 1rem; }
.auth-switch { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin: 1.25rem 0 0 !important; font-size: 1.05rem; }
.google {
  width: 100%; font-family: var(--body); font-size: 1.15rem;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 0; padding: .6rem 1rem .65rem;
}

/* ---- the plan ---- */
.results { padding: 3rem 0 4rem; }
.results-head { text-align: center; }
.results-head h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.06;
  margin: 0 auto .7rem; max-width: 14em; text-wrap: balance;
}
.results-head p { margin: 0 auto .6rem; max-width: 32rem; color: #2B3653; }
.results-head .quiet { font-size: 1.05rem; }

/* The course of the year: three trimesters and the months after, with today marked. */
.course-wrap { margin: 3.75rem 0 1rem; }
.course { display: flex; position: relative; border-top: 1px solid var(--ink); }
.seg { position: relative; padding: .55rem .25rem 0; text-align: center; font-size: .98rem; font-style: italic; color: var(--soft); min-width: 0; }
.seg + .seg::before { content: ""; position: absolute; left: 0; top: -5px; width: 1px; height: 9px; background: var(--ink); }
.seg span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today { position: absolute; top: -5.5px; width: 10px; height: 10px; margin-left: -5px; background: var(--brass); border-radius: 50%; }
.today b {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--display); font-weight: 600; font-style: normal; font-size: 1.05rem; white-space: nowrap; color: var(--ink);
}
.today.left b { left: 0; transform: none; }
.today.right b { left: auto; right: 0; transform: none; }

.notice { background: var(--card); border: 1px solid var(--rule); padding: 1rem 1.25rem; margin: 1.75rem 0 0; font-size: 1.1rem; }
.notice p { margin: 0 0 .75rem; }

.months { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.month { border-top: 1px solid var(--ink); padding: 2rem 0 2.25rem; }
.month-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem 1.5rem; }
.month-head h3 { font-family: var(--display); font-weight: 500; font-size: 2.4rem; line-height: 1; margin: 0; }
.month-when { font-style: italic; color: var(--soft); font-size: 1.08rem; }
.month-body { margin: .7rem 0 0; max-width: 35rem; color: #2B3653; }
.month.post .month-head h3 { font-style: italic; }

.picks { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.pick {
  border-bottom: 1px solid var(--rule); padding: 1.05rem 0 1.15rem;
  display: grid; gap: .1rem 2rem; grid-template-columns: 1fr auto;
}
.pick h4 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin: 0; }
.pick .cat { font-family: var(--body); font-weight: 400; font-style: italic; color: var(--soft); font-size: 1.02rem; margin-left: .35rem; }
.pick .note { margin: .25rem 0 0; font-size: 1.12rem; grid-column: 1; max-width: 30rem; }
.pick .order { grid-column: 1; margin: .6rem 0 0; font-size: 1.12rem; }
.pick .order span {
  display: inline-block; min-width: 2.1em; text-align: center; padding: 0 .4em; margin: 0 .1em;
  border: 1px solid var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.45;
}
.pick .money { grid-column: 2; grid-row: 1 / span 3; text-align: right; }
.pick .price { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; display: block; }
.pick .per { font-size: 1rem; font-style: italic; color: var(--soft); display: block; max-width: 11rem; margin-left: auto; line-height: 1.3; }
.pick .link { font-size: 1rem; color: var(--soft); display: block; margin-top: .45rem; }
.still, .empty { margin: 1.1rem 0 0; font-size: 1.08rem; font-style: italic; color: var(--soft); }

.fineprint { font-size: 1.02rem; font-style: italic; color: var(--soft); border-top: 1px solid var(--ink); padding-top: 1.4rem; margin: 0; }
.foot { padding-top: 1rem; padding-bottom: 3rem; font-size: 1rem; color: var(--soft); text-align: center; }
.foot::before { content: ""; display: block; width: 3.5rem; height: 1px; background: var(--brass); margin: 0 auto 1.25rem; }
.foot a { margin-left: .75rem; }

.prose { padding: 2.5rem 0 3rem; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); text-align: center; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 2.25rem 0 .25rem; }
.prose p, .prose li { max-width: 36rem; }

@media (max-width: 34rem) {
  body { font-size: 1.15rem; }
  .survey { padding: .5rem 1.25rem 2rem; outline: 0; }
  .account { position: static; justify-content: center; margin-bottom: 1.25rem; }
  .pick { grid-template-columns: 1fr; }
  .pick .money { grid-column: 1; grid-row: auto; text-align: left; margin-top: .6rem; }
  .pick .price, .pick .per { display: inline; margin-right: .6rem; }
  .pick .per { max-width: none; }
  .seg { font-size: .85rem; }
}
