@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@400;500;600&display=swap');

:root{
  --navy:#010A18;
  --navy2:#0A1A30;
  --cream:#F1F0EC;
  --paper:#FAF9F6;
  --surface-card:#FAFAF8;
  --ink:#2A2926;
  --muted:#6E6B63;
  --rose:#8B7352;
  --line:#D8D0C3;
}

*{box-sizing:border-box}

html,
body.start-page{
  height:100%;
  min-height:100%;
}

body.start-page{
  margin:0;
  padding:0 24px;
  background:var(--cream);
  color:var(--ink);
  font-family:'DM Sans',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
}

/* Independent Start-page header */
.start-page .top-tools{
  position:fixed;
  top:10px;
  left:24px;
  right:24px;
  width:auto;
  min-height:0;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start;
  gap:24px;
  z-index:200;
}

.start-page .top-logo-link{
  justify-self:start;
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
}

.start-page .top-logo{
  display:block;
  width:270px;
  height:auto;
  max-width:none;
  object-fit:contain;
  margin:0;
  transform:translateY(-5px);
}

.start-page .top-course-info{
  justify-self:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  margin:0;
  padding:0;
  position:relative;
  top:6px;
  text-align:center;
}

.start-page .top-course-name{
  display:block;
  width:100%;
  text-align:center;
  font-family:'Playfair Display',Georgia,serif;
  font-size:17px;
  color:var(--navy);
}

.start-page .top-progress{
  display:block;
  width:100%;
  margin:0;
  padding:0;
  text-align:center;
  font-size:9px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#8f8780;
}

.start-page .top-progress strong{
  color:var(--navy);
  font-weight:600;
}

.start-page .top-actions{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
  padding:0;
}

.start-page .icon-button{
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  background:rgba(250,249,246,.78);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--navy);
  text-decoration:none;
  transition:.18s ease;
}

.start-page .icon-button:hover{
  background:var(--paper);
  border-color:#cfc4ba;
}

.start-page .toc-button{
  flex-direction:column;
  gap:3px;
}

.start-page .toc-button span{
  width:14px;
  height:1px;
  background:currentColor;
  display:block;
}

/* Profile */
.start-page .profile-menu{position:relative}

.start-page .profile-button{
  width:42px;
  height:42px;
  border-radius:50%;
  padding:0;
  display:grid;
  place-items:center;
  background:var(--navy);
  color:#fff;
  border:2px solid #d7c8b8;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(20,40,59,.09);
}

.start-page .profile-initials{
  font:600 13px 'DM Sans',Arial,sans-serif;
  letter-spacing:.06em;
  color:#fff;
}

.start-page .profile-dropdown{
  position:absolute;
  right:-4px;
  top:53px;
  width:235px;
  background:#FAFAF8;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:none;
  padding:9px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-5px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  z-index:30;
  text-align:left;
}

.start-page .profile-dropdown.open{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.start-page .profile-dropdown-head{
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 10px 13px;
  border-bottom:1px solid var(--line);
  margin-bottom:5px;
}

.start-page .profile-dropdown-initials{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  padding:0;
  background:var(--navy);
  color:#fff;
  font:600 11px 'DM Sans',Arial,sans-serif;
  line-height:1;
  letter-spacing:.05em;
  text-align:center;
}

.start-page .profile-dropdown-head strong{
  display:block;
  font:600 13px 'DM Sans',Arial,sans-serif;
  color:var(--navy);
}

.start-page .profile-dropdown-head span:not(.profile-dropdown-initials){
  display:block;
  margin-top:2px;
  font-size:10px;
  color:var(--muted);
}

.start-page .profile-item{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  padding:11px 10px;
  border-radius:5px;
  color:#514e4b;
  font:12px 'DM Sans',Arial,sans-serif;
  cursor:pointer;
}

.start-page .profile-item:hover{
  background:#ECEAE5;
  color:var(--navy);
}

.start-page .profile-item.sign-out{
  color:#8b5e59;
  margin-top:4px;
}

.start-page .profile-progress{
  padding:10px;
  border-bottom:1px solid var(--line);
}

.start-page .profile-progress-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:7px;
  font-size:10px;
  color:var(--muted);
}

.start-page .profile-progress-row strong{
  font-weight:600;
  color:var(--navy);
}

.start-page .profile-progress-track{
  height:5px;
  background:#E5E2DC;
  border-radius:99px;
  overflow:hidden;
}

.start-page .profile-progress-track div{
  height:100%;
  width:0;
  background:var(--rose);
  border-radius:99px;
  transition:width .25s ease;
}

/* Start card */
.start-page .book-start-wrap{
  width:100%;
  height:100vh;
  height:100dvh;
  min-height:0;
  max-height:100vh;
  max-height:100dvh;
  padding:0 24px 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.start-page .book-start-card{
  width:min(900px,100%);
  min-height:calc(100vh - 150px);
  padding:54px 34px 46px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.start-page .book-start-label{
  margin-bottom:18px;
  font-size:10px;
  letter-spacing:.23em;
  color:#8B7352;
  font-weight:600;
}

.start-page .book-start-card h1{
  margin:0 0 28px;
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(52px,6.5vw,82px);
  font-weight:500;
  letter-spacing:-.03em;
  color:var(--navy);
}

.start-page .book-start-description{
  max-width:760px;
  margin:0 auto 34px;
  font-family:'Playfair Display',Georgia,serif;
  font-size:22px;
  line-height:1.7;
  color:#655f59;
}

.start-page .start-lesson-button{
  min-width:210px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  padding:17px 26px;
  background:var(--navy);
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
  letter-spacing:.05em;
}

.start-page .start-lesson-button:hover{background:var(--navy2)}

.start-page .assignment-note{
  margin:20px 0 0;
  font-size:9px;
  letter-spacing:.06em;
  color:#9b9188;
}

@media(max-width:760px){
  body.start-page{
    padding-left:14px;
    padding-right:14px;
  }

  .start-page .top-tools{
    top:10px;
    left:14px;
    right:14px;
    gap:12px;
  }

  .start-page .top-logo{width:220px}

  .start-page .top-course-name{font-size:15px}

  .start-page .book-start-wrap{padding:0 18px 34px}

  .start-page .book-start-card{
    min-height:calc(100vh - 115px);
    padding:36px 4px 34px;
  }

  .start-page .book-start-card h1{
    font-size:clamp(44px,11vw,64px);
  }

  .start-page .book-start-description{font-size:19px}
}


/* v308 Dolce ecosystem theme alignment — visual only; Start-page structure/behavior unchanged. */
