:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-2: #fbf8f1;
  --ink: #111827;
  --muted: #6c665d;
  --line: rgba(38, 48, 58, 0.13);
  --card: rgba(255, 253, 246, 0.88);
  --navy: #172235;
  --sage: #687d66;
  --clay: #b45f48;
  --gold: #c8922f;
  --sky: #dae7ed;
  --shadow: rgba(35, 32, 25, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #e4edf0 0, rgba(228, 237, 240, 0) 18rem),
    linear-gradient(135deg, rgba(200, 146, 47, 0.12), rgba(104, 125, 102, 0) 24rem),
    var(--paper);
  color: var(--ink);
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 3px;
  background: transparent;
}

.read-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 120ms ease;
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(30px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.app-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
}

.eyebrow,
.author {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 1px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 10vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.76);
  color: var(--navy);
  box-shadow: 0 12px 28px var(--shadow);
  backdrop-filter: blur(18px);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notify-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: 0 14px 30px rgba(35, 32, 25, 0.08);
  backdrop-filter: blur(18px);
}

.notify-panel[hidden] {
  display: none;
}

.notify-panel h2,
.notify-panel p {
  margin: 0;
}

.notify-panel h2 {
  color: var(--navy);
  font-size: 0.98rem;
}

.notify-panel p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.text-button {
  min-width: 86px;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: #fffdf8;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.22);
}

.text-button:disabled {
  border-color: var(--line);
  background: var(--line);
  color: var(--muted);
}

.brief-view {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.deep-card {
  display: grid;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.98), rgba(255, 250, 239, 0.92)),
    var(--card);
  box-shadow: 0 22px 56px rgba(35, 32, 25, 0.13);
}

.book-head {
  display: grid;
  gap: 4px;
}

.rank {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(104, 125, 102, 0.13);
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 8vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.author {
  font-size: 0.95rem;
}

.plain-summary {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(104, 125, 102, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(218, 231, 237, 0.58), rgba(255, 253, 246, 0.42));
  color: #26303a;
  font-size: 1.08rem;
  line-height: 1.62;
}

.section-block,
.two-col {
  display: grid;
  gap: 9px;
}

.section-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

h3 {
  margin: 0;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-block p,
.section-block li {
  color: #2f352f;
  font-size: 0.98rem;
  line-height: 1.58;
}

.section-block p,
.section-block ol,
.section-block ul {
  margin: 0;
}

.section-block ol,
.section-block ul {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.section-block li {
  position: relative;
  padding: 11px 12px 11px 36px;
  border: 1px solid rgba(38, 48, 58, 0.08);
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.58);
}

.section-block li::before {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: #fffdf8;
  content: "";
}

.two-col {
  gap: 12px;
}

.daily-footer {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.done-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), #263a4f);
  color: #fffdf8;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.22);
}

.done-button:disabled {
  background: linear-gradient(135deg, var(--sage), #7f927b);
}

.done-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.empty {
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 680px) {
  .shell {
    padding-top: 34px;
  }

  .app-mark {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .deep-card {
    padding: 28px;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}
