:root {
  --oxford-blue: #002147;
  --oxford-blue-dark: #001124;
  --coral: #ff5a5f;
  --coral-soft: #ffecee;
  --cream: #faf9fc;
  --surface: #ffffff;
  --surface-container: #f1f3f9;
  --line: #e2e8f0;
  --ink: #1a1c1e;
  --muted: #637083;
  --shadow: 0 20px 40px -20px rgba(0, 33, 71, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(0, 33, 71, 0.035), transparent 44%),
    radial-gradient(circle at 100% 100%, rgba(0, 33, 71, 0.045), transparent 44%),
    var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border-radius: 0;
  min-height: clamp(460px, 66vh, 680px);
  display: flex;
  align-items: center;
  background: var(--oxford-blue);
  color: #ffffff;
  box-shadow: 0 18px 42px -28px rgba(0, 33, 71, 0.5);
}

.focus-topbar {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.focus-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  width: 100%;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0 clamp(38px, 5vw, 68px);
  text-align: center;
}

.eyebrow,
.topic-week,
.week-number {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  margin: 0 auto;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 650;
}

.hero-subcopy {
  max-width: 680px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.66);
}

.hero-email-button {
  margin-top: 28px;
}

.ghost-button,
.filled-button,
.back-button {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.ghost-button,
.back-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--oxford-blue);
}

.hero-banner .ghost-button {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.filled-button {
  border: 0;
  background: var(--oxford-blue);
  color: #ffffff;
}

.weeks-wrap {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px) clamp(16px, 4vw, 32px) 90px;
}

.eyebrow,
.topic-week,
.week-number {
  color: var(--coral);
}

.weeks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.week-card {
  position: relative;
  min-height: 232px;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  box-shadow: 0 4px 8px rgba(0, 33, 71, 0.035);
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.week-card:hover,
.week-card:focus-visible {
  border-color: var(--coral);
  box-shadow: var(--shadow);
  background: #fffefe;
}

.week-card.is-read {
  border-color: rgba(0, 33, 71, 0.22);
  background: #f4f7fb;
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.055);
}

.week-card.is-read:hover,
.week-card.is-read:focus-visible {
  border-color: rgba(0, 33, 71, 0.42);
  background: #f1f5fa;
}

.week-card:focus-visible,
.ghost-button:focus-visible,
.filled-button:focus-visible,
.back-button:focus-visible,
.email-button:focus-visible {
  outline: 3px solid rgba(255, 90, 95, 0.35);
  outline-offset: 4px;
}

.week-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 22px;
  overflow: hidden;
  display: block;
  background: var(--oxford-blue-dark);
}

.week-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.read-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 33, 71, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--oxford-blue);
  box-shadow: 0 8px 18px rgba(0, 33, 71, 0.12);
  font-weight: 900;
}

.read-badge[hidden] {
  display: none;
}

.week-title {
  display: block;
  color: var(--oxford-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.08;
}

.focus-view[hidden],
.home-view[hidden] {
  display: none;
}

.focus-article {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 32px) 90px;
}

.focus-banner {
  overflow: hidden;
  border-radius: 32px;
  background: var(--oxford-blue-dark);
  box-shadow: var(--shadow);
}

.focus-banner img {
  width: 100%;
  max-height: 430px;
  display: block;
  object-fit: cover;
}

.article-body {
  width: min(760px, 100%);
  margin: clamp(34px, 6vw, 58px) auto 0;
}

.week-progress {
  margin-bottom: 10px;
  display: grid;
  gap: 9px;
}

.progress-track {
  width: min(260px, 100%);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-container);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  display: block;
  background: var(--coral);
}

.article-body h1 {
  margin: 8px 0 26px;
  color: var(--oxford-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 0.98;
}

.topic-content p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 1.08rem;
}

.topic-content h3 {
  margin: 34px 0 10px;
  color: var(--oxford-blue);
  font-size: 1.1rem;
}

.topic-content ul {
  margin: 16px 0 22px;
  padding-left: 24px;
  color: #475569;
}

.topic-content li {
  margin-bottom: 9px;
}

.topic-content .checklist {
  padding-left: 0;
  list-style: none;
}

.topic-content .checklist li {
  padding: 0;
  border-radius: 16px;
  background: var(--surface-container);
  overflow: hidden;
}

.topic-content .checklist label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  cursor: pointer;
}

.topic-content .checklist input {
  width: 18px;
  height: 18px;
  margin: 0.22em 0 0;
  accent-color: var(--oxford-blue);
}

.topic-content .checklist input:checked + span {
  color: #7a8796;
  text-decoration: line-through;
}

.topic-content .copy-cta {
  margin: 22px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  color: var(--oxford-blue);
  font-size: 0.98rem;
  font-weight: 850;
}

.topic-content .copy-cta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  text-decoration-color: rgba(0, 33, 71, 0.24);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.topic-content .copy-cta span::before {
  content: "DPhil Essentials";
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-container);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.topic-content .journey-line {
  color: var(--oxford-blue);
  font-weight: 900;
}

.topic-content .tips-grid {
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.topic-content .tips-grid li {
  margin: 0;
  border: 1px solid #efe0b4;
  border-radius: 6px 18px 18px 18px;
  padding: 16px;
  background: #fff8d8;
  color: #3a4350;
  box-shadow: 0 8px 18px rgba(91, 76, 37, 0.08);
}

.topic-content .tips-grid li:nth-child(3n + 2) {
  border-color: #d9e3f7;
  background: #edf4ff;
}

.topic-content .tips-grid li:nth-child(3n + 3) {
  border-color: #f4d4d6;
  background: #fff0f1;
}

blockquote {
  margin: 24px 0;
  border-left: 4px solid var(--coral);
  border-radius: 0 24px 24px 0;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--cream), var(--surface-container));
  color: #334155;
  font-weight: 700;
}

cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
}

.article-actions {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.week-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.email-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  max-width: min(360px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  background: #ffffff;
  color: var(--oxford-blue);
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 900px) {
  .weeks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .focus-topbar {
    width: 100%;
    padding-inline: 16px;
  }

  .hero-banner {
    width: 100%;
    min-height: 560px;
    margin-top: 0;
    border-radius: 0;
  }

  .hero-copy {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .weeks-grid {
    grid-template-columns: 1fr;
  }

  .week-card {
    min-height: 0;
  }

  .focus-banner,
  .focus-banner img {
    border-radius: 24px;
  }

  .article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .week-actions,
  .week-actions button,
  .article-actions > button {
    width: 100%;
  }

  .topic-content .tips-grid {
    grid-template-columns: 1fr;
  }
}
