:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #1c201b;
  --paper: #f5f0e6;
  --cream: #fffaf0;
  --moss: #26382c;
  --acid: #d9ef72;
  --line: rgba(28, 32, 27, 0.18);
  --white-line: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #4169e1; outline-offset: 3px; }

.shell { width: min(100% - 48px, 1380px); margin-inline: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: inherit;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.sun-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.sun-mark::before,
.sun-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.sun-mark::before { width: 39px; height: 1px; }
.sun-mark::after { width: 1px; height: 39px; }
.sun-mark span { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.66); }

/* Homepage — the selected “Daily ritual” direction. */
.home-page main { width: 100%; margin: 0; padding: 0; }

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.site-header nav { display: flex; gap: 36px; font-size: 12px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.manage-link {
  justify-self: end;
  border-bottom: 1px solid currentColor;
  padding-block: 3px;
  font-size: 11px;
  text-decoration: none;
}

.word-hero {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 44px;
  padding-block: 52px 72px;
}

.word-hero__meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding-block: 10px;
  border-right: 1px solid var(--line);
}

.today-date { display: grid; gap: 3px; margin: 0; }
.today-date strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.today-date span {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.level-selector { display: grid; justify-items: start; gap: 10px; }

/* These are the only control in the hero, and at 10px in 48% grey they read
   as a caption rather than something you can press. Bigger, darker and
   underlined — the underline stays on the active option too, because
   removing it there would put the label back to looking like a heading. */
.level-selector button {
  position: relative;
  border: 0;
  padding: 3px 4px 3px 19px;
  background: none;
  color: rgba(28, 32, 27, 0.66);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.level-selector button:hover:not(:disabled) { color: var(--ink); }
.level-selector button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.level-selector button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  translate: 0 -50%;
}

.level-selector button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 750;
  text-decoration-thickness: 2px;
}
.level-selector button[aria-pressed="true"]::before { background: currentColor; }
.level-selector button:disabled { cursor: not-allowed; opacity: 0.52; }

.word-card { min-width: 0; }
.word-card__kicker {
  margin: 0 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.5vw, 23px);
  font-style: italic;
}

.word-card h1 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 11.5vw, 176px);
  font-weight: 400;
  letter-spacing: -0.082em;
  line-height: 0.9;
}

.word-card[data-state="loading"] h1,
.word-card[data-state="empty"] h1 {
  max-width: 12ch;
  margin-top: 20px;
  font-size: clamp(58px, 7vw, 108px);
  line-height: 0.92;
}

.word-card__pronunciation {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 35px;
  margin-top: 25px;
  font-size: 12px;
}

#today-part:not(:empty) {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.sound-button {
  margin-left: auto;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.sound-button:hover { background: var(--ink); color: var(--paper); }

.word-card__definition {
  display: grid;
  grid-template-columns: 64px minmax(250px, 1fr) minmax(220px, 0.55fr);
  gap: 32px;
  align-items: start;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.word-number { margin: 4px 0; color: rgba(28, 32, 27, 0.42); font-size: 11px; }
.definition {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 39px);
  line-height: 1.17;
  letter-spacing: -0.025em;
}

.example { margin: 22px 0 0; color: rgba(28, 32, 27, 0.66); font-size: 13px; font-style: italic; }
.word-note { padding-left: 28px; border-left: 1px solid var(--line); }
.word-note span { font-size: 9px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.word-note p { margin: 12px 0 0; font-size: 13px; line-height: 1.55; }

.ritual-section { background: var(--moss); color: #fffdf5; }
.ritual-section__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 9vw;
  padding-block: 88px 112px;
}

.ritual-copy h2 {
  margin: 20px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6vw, 92px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.ritual-copy > p:not(.eyebrow) {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.65;
}

.ritual-steps {
  display: grid;
  gap: 0;
  max-width: 480px;
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--white-line);
  list-style: none;
}

.ritual-steps li {
  display: flex;
  gap: 20px;
  padding-block: 13px;
  border-bottom: 1px solid var(--white-line);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 650;
}

.ritual-steps span { color: var(--acid); font-size: 9px; letter-spacing: 0.1em; }

.subscription-card {
  display: flex;
  flex-direction: column;
  align-self: end;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--white-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.subscription-card label,
.subscription-card legend {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.delivery-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 18px;
}

.delivery-row input {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  padding: 0 0 6px;
  background: transparent;
  color: #fff;
  color-scheme: dark;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.delivery-row > span { padding-bottom: 8px; color: rgba(255, 255, 255, 0.52); font-size: 10px; }
.day-fieldset { border: 0; margin: 0; padding: 0; }
.day-fieldset legend { margin-bottom: 12px; }
.day-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.day-picker label { margin: 0; }
.day-picker input { position: absolute; opacity: 0; }
.day-picker span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  cursor: pointer;
}

.day-picker input:checked + span { background: #fff; color: var(--moss); }
.day-picker input:focus-visible + span { outline: 3px solid var(--acid); outline-offset: 2px; }

.career-group { display: grid; gap: 8px; }
.career-group label { display: flex; justify-content: space-between; }
.career-group label span { color: rgba(255, 255, 255, 0.42); font-size: 8px; }
.career-group input,
.ratio-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  color-scheme: dark;
  font-size: 13px;
}

.career-group input::placeholder { color: rgba(255, 255, 255, 0.38); }
.match-message { margin: 0; color: var(--acid); font-size: 10px; line-height: 1.45; }
.ratio-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; margin: 0; }
.ratio-row select { justify-self: stretch; }

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 18px 20px;
  background: var(--acid);
  color: #182018;
  font-weight: 750;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.primary-button:hover { filter: brightness(1.04); transform: translateY(-2px); }
.primary-button:disabled { cursor: wait; filter: saturate(0.4); opacity: 0.7; transform: none; }
.status-message { min-height: 1.3em; margin: -12px 0 0; color: var(--acid); text-align: center; font-size: 10px; }
.subscription-note { margin: -14px 0 0; color: rgba(255, 255, 255, 0.44); text-align: center; font-size: 10px; }
.subscription-card details { border-top: 1px solid var(--white-line); }
.subscription-card summary { padding-top: 17px; color: rgba(255, 255, 255, 0.62); font-size: 10px; cursor: pointer; }
.subscription-card details p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.56); font-size: 11px; line-height: 1.55; }

.archive-section {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 8vw;
  padding-block: 82px 120px;
}

.archive-section header h2 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.archive-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-row li {
  min-height: 180px;
  padding: 18px 22px;
  border-left: 1px solid var(--line);
}

.archive-row time { font-size: 9px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.archive-row h3 { margin: 35px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 400; }
.archive-row p { margin: 0; color: rgba(28, 32, 27, 0.62); font-size: 12px; line-height: 1.5; }
.archive-row .archive-empty { grid-column: 1 / -1; min-height: auto; color: rgba(28, 32, 27, 0.52); font-family: Georgia, serif; font-style: italic; }

/* Shared footer convention across Daniel Workman Worker sites. */
.site-footer { background: #19291f; color: rgba(255, 253, 246, 0.62); }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px 60px;
  align-items: end;
  padding-block: 55px 40px;
}

.wordmark--footer { margin-bottom: 16px; color: #fffdf5; }
.site-footer__about p { max-width: 360px; margin: 0; font-size: 12px; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; font-size: 11px; font-weight: 650; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover,
.site-footer__credit a:hover { color: var(--acid); }
.site-footer__credit {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 11px;
}

.site-footer__credit > span a { font-weight: 750; }
.bmc-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1.5px solid #0d0c22;
  border-radius: 999px;
  background: #ffdd00;
  color: #0d0c22;
  font-size: 11px;
  font-weight: 760;
  text-decoration: none;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.bmc-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bmc-button:hover { color: #0d0c22; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.25); }

/* The management page keeps a compact utility layout while sharing the brand footer. */
.manage-page main {
  width: min(100% - 40px, 560px);
  min-height: 72vh;
  margin: 0 auto;
  padding-block: 56px 90px;
  font-family: Georgia, "Times New Roman", serif;
}

.manage-page h1 { margin: 0 0 24px; font-size: 42px; letter-spacing: -0.04em; }
.manage-page h2 { margin-top: 48px; color: rgba(28, 32, 27, 0.58); font: 750 11px/1.4 Inter, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.manage-page label { display: block; margin: 14px 0; font-family: Inter, sans-serif; font-size: 13px; }
.manage-page select,
.manage-page input[type="time"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px;
  background: var(--cream);
  color: var(--ink);
}

.manage-page fieldset { border: 1px solid var(--line); border-radius: 5px; margin: 18px 0; }
.manage-page fieldset label { display: inline-block; margin: 7px 12px 7px 0; }
.manage-page button {
  margin: 8px 8px 0 0;
  border: 1px solid var(--ink);
  border-radius: 5px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.manage-page button.danger { background: transparent; color: var(--ink); }
.manage-page .muted { color: rgba(28, 32, 27, 0.58); }
.manage-page ol { padding-left: 20px; }
.manage-page li { margin-block: 7px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .word-card__definition { grid-template-columns: 45px 1fr; }
  .word-note { grid-column: 2; border-left: 0; padding: 0; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 30px, 1380px); }
  .site-header { min-height: 70px; }
  .word-hero { grid-template-columns: 1fr; padding-block: 32px 48px; }
  .word-hero__meta { flex-direction: row; min-height: auto; border: 0; padding: 0 0 34px; }
  .today-date strong { font-size: 29px; }
  .level-selector { grid-auto-flow: column; align-items: center; gap: 8px; }
  .level-selector button { padding-left: 12px; font-size: 8px; }
  .word-card h1 { font-size: clamp(59px, 20vw, 108px); }
  .word-card[data-state="loading"] h1,
  .word-card[data-state="empty"] h1 { font-size: 56px; }
  .word-card__pronunciation { flex-wrap: wrap; }
  .sound-button { margin-left: 0; }
  .word-card__definition { grid-template-columns: 30px 1fr; gap: 12px; margin-top: 35px; }
  .word-note { grid-column: 2; }
  .ritual-section__inner { grid-template-columns: 1fr; gap: 48px; padding-block: 64px 85px; }
  .delivery-row { grid-template-columns: 1fr auto; }
  .delivery-row > label { grid-column: 1 / -1; }
  .delivery-row input { font-size: 34px; }
  .subscription-card { padding: 26px 22px; }
  .archive-section { grid-template-columns: 1fr; padding-block: 60px 90px; }
  .archive-row { grid-template-columns: 1fr; }
  .archive-row li { min-height: 130px; border-top: 1px solid var(--line); border-left: 0; }
  .site-footer__inner { grid-template-columns: 1fr; align-items: start; }
  .site-footer__links { justify-content: flex-start; }
  .site-footer__credit { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Turnstile renders invisibly until a visitor is asked to solve something, at
   which point the widget needs somewhere to appear that does not shove the
   submit button off the card. Empty hosts collapse to nothing. */
.turnstile-host:not(:empty) {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}
