:root {
  --ink: #173c35;
  --muted: #667d77;
  --cream: #f5f0e5;
  --paper: #fffcf6;
  --line: #ddd7ca;
  --coral: #df6f55;
  --yellow: #e8b84e;
  --green: #6f9a88;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
}

button { font: inherit; }

.page-shell { max-width: 1240px; margin: 0 auto; padding: 0 42px; }

.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--paper); background: var(--ink); font-family: "DM Serif Display"; font-size: 22px; }
.header-note { color: var(--muted); font-size: 13px; }

.hero { display: flex; justify-content: space-between; align-items: end; padding: 72px 0 54px; gap: 48px; }
.eyebrow { margin: 0 0 13px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
h1, h2 { font-family: "DM Serif Display", serif; font-weight: 400; }
h1 { max-width: 660px; margin: 0; font-size: clamp(52px, 7vw, 88px); line-height: .98; letter-spacing: -.035em; }
.hero-description { max-width: 540px; margin: 25px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.week-panel { min-width: 310px; padding: 24px 26px; border: 1px solid var(--line); background: rgba(255, 252, 246, .55); }
.week-panel > p { margin: 0 0 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.week-range { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.week-range strong { font-family: "DM Serif Display"; font-size: 21px; white-space: nowrap; }
.arrow-button { border: 0; padding: 4px; color: var(--ink); background: none; cursor: pointer; font-size: 19px; transition: transform .2s; }
.arrow-button:hover { transform: scale(1.25); }
.today-button { margin-top: 14px; border: 0; padding: 0; color: var(--coral); background: none; cursor: pointer; font-size: 12px; font-weight: 700; }

.progress-section { padding: 18px 0 28px; border-top: 1px solid var(--line); }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 600; }
.progress-track { height: 5px; overflow: hidden; background: #dfd9cc; }
.progress-fill { width: 0; height: 100%; background: var(--coral); transition: width .35s ease; }

.assignments { padding: 45px 0 75px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 27px; }
.section-heading h2 { margin: 0; font-size: 35px; }
.legend { color: var(--muted); font-size: 11px; }
.legend span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border: 1px solid var(--coral); border-radius: 50%; }
.roommate-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.roommate-card { padding: 33px 28px 35px; }
.roommate-card + .roommate-card { border-left: 1px solid var(--line); }
.person { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; color: var(--paper); font-family: "DM Serif Display"; font-size: 20px; }
.roommate-card:nth-child(1) .avatar { background: var(--coral); }
.roommate-card:nth-child(2) .avatar { background: var(--green); }
.roommate-card:nth-child(3) .avatar { background: var(--yellow); }
.person h3 { margin: 0 0 2px; font-family: "DM Serif Display"; font-size: 24px; font-weight: 400; }
.person p { margin: 0; color: var(--muted); font-size: 11px; }
.task-list { display: grid; gap: 11px; }
.task { width: 100%; min-height: 77px; display: flex; align-items: center; gap: 14px; padding: 15px; text-align: left; color: var(--ink); border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: transform .2s, border-color .2s; }
.task:hover { transform: translateY(-2px); border-color: var(--ink); }
.task-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: none; border-radius: 50%; background: #f1ebdf; font-size: 18px; }
.task-name { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.35; }
.check { width: 20px; height: 20px; flex: none; border: 1px solid #b9b4aa; border-radius: 50%; }
.task.complete { color: var(--muted); }
.task.complete .task-name { text-decoration: line-through; }
.task.complete .check { display: grid; place-items: center; color: white; border-color: var(--coral); background: var(--coral); }
.task.complete .check::after { content: "✓"; font-size: 12px; }

.rotation-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 19px; padding: 28px 31px; color: var(--paper); background: var(--ink); }
.rotation-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 22px; }
.rotation-note h2 { margin: 0 0 4px; font-size: 24px; }
.rotation-note p { margin: 0; color: #b9ccc5; font-size: 12px; }
.next-rotation { color: #b9ccc5; text-align: right; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.next-rotation strong { display: block; margin-top: 4px; color: white; font-family: "DM Serif Display"; font-size: 18px; letter-spacing: 0; text-transform: none; }

footer { display: flex; justify-content: space-between; padding: 33px 0 38px; color: var(--muted); font-size: 11px; }
footer span { color: var(--coral); }

@media (max-width: 800px) {
  .page-shell { padding: 0 22px; }
  .header-note { display: none; }
  .hero { display: block; padding-top: 52px; }
  .week-panel { margin-top: 35px; min-width: 0; }
  .section-heading { display: block; }
  .legend { margin-top: 12px; }
  .roommate-grid { grid-template-columns: 1fr; }
  .roommate-card + .roommate-card { border-top: 1px solid var(--line); border-left: 0; }
  .rotation-note { grid-template-columns: auto 1fr; }
  .next-rotation { grid-column: 2; text-align: left; }
}

@media (max-width: 450px) {
  h1 { font-size: 49px; }
  .roommate-card { padding-inline: 10px; }
  .progress-copy span:last-child { display: none; }
  footer { display: block; }
}
