/* ===== clean notebook cover (second-image style) with aligned lines ===== */

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

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

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Futura', Arial, sans-serif;
  color:var(--ink);
  background: var(--bg);
  display:flex; flex-direction:column;
  padding:16px;
}

/* Notebook wrapper */
.notebook{
  display:flex;
  width:100%;
  max-width:1200px;
  min-height:90vh;
  margin:0 auto;
  border-radius:18px;
  box-shadow:0 22px 48px rgba(0,0,0,.14), 0 4px 14px rgba(0,0,0,.07);
  overflow:hidden;
  background:var(--paper);
}

/* 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 */
.sheet{
  position:relative;
  width:min(86%, 980px);
  margin:0 auto;
  border:3px solid var(--border);
  border-radius:28px;
  background:#fff;
  overflow:hidden;
  background-image:
    repeating-linear-gradient(
      to bottom,
      #ffffff 0 calc(var(--line) - 1px),
      var(--rule) calc(var(--line) - 1px) var(--line)
    );
}

/* Margin band (desktop only) */
.sheet::before{
  content:"";
  position:absolute; inset:0 auto 0 0;
  width:var(--margin-band);
  background:linear-gradient(90deg, rgba(255,0,0,.08), rgba(255,0,0,.08));
  pointer-events:none;
}

/* Weeks list */
.weeks{ list-style:none; margin:0; padding: calc(var(--line)/2 - .5rem) 18px; }
.weeks li{
  line-height: var(--line);
  padding-left: calc(var(--margin-band) + 24px);
  padding-right: 10px;
  border-radius:10px;
}
.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; --margin-band:0px; } 
  .sheet::before{ display:none; }
  .weeks li{ padding-left: 16px; line-height:1.4; }  /* allow wrap */
  .weeks a{ font-size:1rem; }  /* slightly smaller */
  .logos img{ max-height:70px; }
}

/* ===== Extra small screens (e.g. iPhone SE ≤ 400px) ===== */
@media (max-width: 400px){
  .weeks a{ font-size:0.95rem; }
  .label h1{ font-size:1.6rem; }
  .label h2{ font-size:0.95rem; }
}
