/* /week/ pages — layered on /guides/guide.css (same tokens). */

/* ---------- hero: words left, the week's fruit right ---------- */
.wk-hero {
  padding: 48px 0 8px;
}
.wk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 32px;
  align-items: center;
  max-width: 980px;
}
.wk-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 12px;
}
.wk-hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  margin-bottom: 14px;
}
.wk-size {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(21px, 2.6vw, 26px);
  color: var(--ink);
  line-height: 1.3;
}
.wk-size em {
  color: var(--terracotta-dark);
}
.wk-measure {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
}
.wk-facts {
  display: flex;
  margin-top: 26px;
  max-width: 440px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wk-facts div {
  flex: 1;
  padding: 13px 0 12px;
}
.wk-facts div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.wk-facts b {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: normal;
  font-size: 21px;
  color: var(--ink);
  line-height: 1.2;
}
.wk-facts span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.wk-find {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.wk-find a {
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--terracotta-dark) 30%, transparent);
}

/* the fruit sits on a soft glow and a fine baseline, like the share card */
.wk-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.wk-stage::before {
  content: "";
  position: absolute;
  inset: 6% 2% 4%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 56%,
    color-mix(in srgb, #f6d9a8 72%, transparent) 0%,
    transparent 68%
  );
}
.wk-stage::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cdbd9f, transparent);
}
.wk-stage img {
  position: relative;
  width: 82%;
  height: 82%;
  object-fit: contain;
  object-position: bottom;
  margin-bottom: 7%;
  filter: drop-shadow(0 18px 18px rgba(80, 55, 20, 0.12));
}

/* ---------- previous / next, each with its fruit ---------- */
.wk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 980px;
  margin: 10px auto 0;
  padding: 0 20px;
  font-size: 14px;
}
.wk-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 6px 12px 6px 8px;
  border-radius: 100px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.wk-nav a.r {
  padding: 6px 8px 6px 12px;
}
.wk-nav a:hover {
  background: var(--cream-2);
  color: var(--ink);
}
.wk-nav img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.wk-nav small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a8d78;
  line-height: 1.2;
}
.wk-nav .r {
  text-align: right;
}

/* ---------- body ---------- */
.wk-body {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

/* baby this week: a quiet spec sheet, label left */
.spec {
  margin: 14px 0 4px;
}
.spec div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.spec div:last-child {
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  color: var(--terracotta-dark);
  line-height: 1.5;
}
.spec dd {
  color: #3b342b;
  line-height: 1.65;
}

.notice {
  list-style: none;
  margin: 10px 0 0 !important;
  padding: 0;
}
.notice li {
  position: relative;
  padding: 12px 0 12px 22px;
  margin: 0 !important;
}
.notice li + li {
  border-top: 1px dashed var(--line);
}
.notice li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.call-box {
  border: 1px solid color-mix(in srgb, var(--terracotta-dark) 40%, transparent);
  border-left: 4px solid var(--terracotta-dark);
  background: color-mix(in srgb, var(--terracotta) 6%, var(--cream-2));
  border-radius: 14px;
  padding: 20px 24px;
  margin: 34px 0 10px;
}
.call-box h2 {
  font-size: 19px !important;
  margin: 0 0 8px !important;
}
.call-box ul {
  margin-bottom: 8px !important;
}
.call-box p {
  font-size: 14px;
  margin: 0 !important;
  color: var(--muted) !important;
}

.rail {
  position: relative;
  margin: 18px 0 6px;
  padding-left: 26px;
}
.rail::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 18px;
  width: 1px;
  background: var(--line);
}
.rail-item {
  position: relative;
  padding-bottom: 18px;
}
.rail-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid #bfb095;
}
.rail-item.now::before {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--terracotta) 18%, transparent);
}
.rail-when {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  font-weight: 600;
}
.rail-item p {
  margin: 2px 0 0 !important;
}

.q-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px 16px;
  margin: 16px 0 8px;
  box-shadow: 0 22px 44px -32px color-mix(in srgb, var(--ink-soft) 30%, transparent);
}
.q-card ol {
  margin: 0 0 0 20px !important;
}
.q-card li {
  margin-bottom: 12px !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.q-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  gap: 12px;
  flex-wrap: wrap;
}
.q-copy {
  font: inherit;
  font-weight: 600;
  color: var(--terracotta-dark);
  background: none;
  border: 1px solid color-mix(in srgb, var(--terracotta-dark) 35%, transparent);
  border-radius: 100px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.q-copy:hover {
  background: color-mix(in srgb, var(--terracotta) 10%, transparent);
}

.partner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin: 36px 0 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--terracotta) 8%, var(--cream));
}
.partner-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--terracotta) 20%, var(--cream-2));
  color: var(--terracotta-dark);
}
.partner h2 {
  margin: 0 0 6px !important;
  font-size: 19px !important;
}
.partner p {
  margin: 0 !important;
  font-size: 15px;
}

/* ---------- every week ---------- */
.all-weeks {
  max-width: 680px;
  margin: 56px auto 0;
  padding: 0 28px;
}
.all-weeks h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: normal;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
}
.tri-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 18px 0 8px;
}
.week-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
}
.week-row a {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  color: var(--ink-soft);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.week-row a:hover {
  border-color: #d1bf9c;
  transform: translateY(-1px);
}
.week-row a[aria-current] {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--cream-2);
  font-weight: 600;
}

/* ---------- /week/ index: a shelf of fruit ---------- */
.index-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}
.tri + .tri {
  margin-top: 44px;
}
.tri h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: normal;
  font-size: 24px;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tri h2 span {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 14px;
  border-radius: 18px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: #d8c9ac;
  box-shadow: 0 22px 40px -28px color-mix(in srgb, var(--ink-soft) 30%, transparent);
}
.tile img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 10px;
}
.tile-w {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.2;
}
.tile-f {
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .wk-hero {
    padding-top: 32px;
    text-align: center;
  }
  .wk-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* on phones the fruit sits between the title and the size line */
  .wk-copy {
    display: contents;
  }
  .wk-kicker {
    order: 1;
  }
  .wk-hero h1 {
    order: 2;
    margin-bottom: 0;
  }
  .wk-stage {
    order: 3;
    width: min(240px, 64vw);
    margin: 4px auto 0;
  }
  .wk-size {
    order: 4;
  }
  .wk-measure {
    order: 5;
  }
  .wk-facts {
    order: 6;
    margin: 20px auto 0;
    width: 100%;
  }
  .wk-facts div + div {
    padding-left: 0;
  }
  .wk-facts div {
    text-align: center;
  }
  .wk-find {
    order: 7;
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .spec div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .wk-facts b {
    font-size: 18px;
  }
  .wk-nav .label-name {
    display: none;
  }
  .partner {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .partner-mark {
    display: none;
  }
  .tiles {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  .tile img {
    width: 60px;
    height: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile,
  .week-row a {
    transition: none;
  }
}

/* ---------- sources ---------- */
.sources {
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.sources h2 {
  font-size: 13px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin: 0 0 6px !important;
}
.sources p {
  font-size: 13.5px;
  color: var(--muted) !important;
  margin: 0 0 8px !important;
}
.sources ul {
  list-style: none;
  margin: 0 !important;
  padding: 0;
}
.sources li {
  font-size: 14px;
  margin-bottom: 6px !important;
}
.sources li span {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #9a8d78;
  font-weight: 600;
  margin-left: 4px;
}
