/* ===== Clean notebook cover (second-image style) ===== */

:root{
  --ink:#1a1b1e;
  --paper:#ffffff;
  --bg:#f6f7f9;
  --rule:#e6ebf2;
  --accent:#2f80ed;
  --border:#24272c;
  --radius:24px;
  --line:44px;              /* rule spacing */
}

@font-face{
  font-family:'Futura';
  src:url('../fonts/futura.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
}

*{box-sizing:border-box}
html{height:auto}
body{
  margin:0;
  font-family:'Futura', Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  /* remove flex on body to avoid mobile Safari scroll issues */
  padding:16px;
  line-height:1.25;
}

/* Notebook wrapper */
.notebook{
  display:flex;
  width:100%;
  max-width:1200px;
  /* let content define height; allow page to scroll */
  margin:0 auto;
  border-radius:18px;
  box-shadow:0 22px 48px rgba(0,0,0,.14), 0 4px 14px rgba(0,0,0,.07);
  background:var(--paper);
  overflow:visible; /* was hidden: could block scrolling on iOS */
}

/* Spine */
.spine{ width:68px; background:#0e0f12; }

/* Cover */
.cover{
  flex:1;
  padding:20px 20px 28px;
  display:flex; flex-direction:column; gap:28px;
  background:repeating-linear-gradient(45deg,#eaf0f6 0 12px,#f3f6fb 12px 24px);
}

/* Curved title label */
.label{
  width:min(86%, 980px);
  margin:0 auto;
  background:#fff;
  border:3px solid var(--border);
  border-radius:28px;
  text-align:center;
  padding:18px 22px;
}
.label h1{
  margin:0;
  font-weight:700;
  letter-spacing:.02em;
  font-size:clamp(2rem, 2.2vw + 1rem, 3rem);
}
.label h2{
  margin:.35rem 0 0;
  font-weight:400;
  color:#697384;
  font-size:clamp(1rem, .6vw + .9rem, 1.35rem);
}

/* Rounded sheet with rules (no pink margin band) */
.sheet{
  position:relative;
  width:min(86%, 980px);
  margin:0 auto;
  border:3px solid var(--border);
  border-radius:28px;
  background:#fff;
  /* keep rounded look but allow content size to drive height */
  background-image:
    repeating-linear-gradient(
      to bottom,
      #ffffff 0 calc(var(--line) - 1px),
      var(--rule) calc(var(--line) - 1px) var(--line)
    );
}

/* remove old pink margin band entirely */
/* .sheet::before { removed } */

/* Weeks list */
.weeks{
  list-style:none;
  margin:0;
  padding: calc(var(--line)/2 - .5rem) 18px;
}
.weeks li{
  line-height: var(--line);
  padding: 0 10px 0 18px;     /* no band; small left padding only */
  border-radius:10px;
  word-break: normal;
}
.weeks a{
  display:block;
  text-decoration:none;
  color:var(--ink);
  font-size: clamp(1.15rem, 1.2rem, 1.35rem);
  transition: color .15s, transform .15s, padding-left .15s;
}
.weeks a:hover,
.weeks a:focus-visible{
  color:var(--accent);
  transform: translateX(3px);
  padding-left: 4px;
  outline: none;
}

/* Footer logos */
.logos{ width:100%; text-align:center; margin:24px 0 12px; }
.logos img{ max-height:90px; max-width:90%; height:auto; width:auto; opacity:.95; }

/* Screen-reader helper */
.visually-hidden{
  position:absolute!important; height:1px;width:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap; border:0; padding:0; margin:-1px;
}

/* ===== Mobile tweaks ===== */
@media (max-width: 720px){
  body{ padding:12px; }
  .notebook{ flex-direction:column; border-radius:12px; }
  .spine{ width:100%; height:16px; }
  .cover{ gap:18px; padding:12px 12px 20px; }
  .label, .sheet{ width:calc(100% - 24px); }

  :root{
    --line:40px;   /* slightly tighter rules on phones */
  }

  .weeks li{
    line-height:1.35;    /* allow natural wrapping without overlap */
    padding-left:16px;
  }
  .weeks a{ font-size:1.02rem; }
  .label h1{ font-size:2rem; }
  .label h2{ font-size:1.05rem; }
  .logos img{ max-height:70px; }
}

/* ===== Extra small screens (≤ 400px) ===== */
@media (max-width: 400px){
  .weeks a{ font-size:0.98rem; }
  .label h1{ font-size:1.8rem; }
  .label h2{ font-size:0.98rem; }
}
