:root {
  color-scheme: light;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Inter, system-ui, sans-serif;
  color: #24362f;
  background: #f4f1ea;
  font-synthesis: none;
  --ink: #24362f;
  --green: #416657;
  --green-dark: #29483c;
  --cream: #fbf8f1;
  --line: #ddd9cf;
  --gold: #d8a555;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 8% 0, #fff 0, transparent 34rem), #f4f1ea; }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.topbar { display: grid; min-height: 84px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-bottom: 1px solid rgba(59,68,64,.12); }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px 12px 16px 12px; color: #fff9eb; background: var(--green); box-shadow: 0 6px 14px rgba(50,81,68,.17); font-size: 16px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.04em; }
.brand small { margin-top: 2px; color: #919590; font-size: 7px; font-weight: 850; letter-spacing: .15em; }
.desktop-nav { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.48); }
.desktop-nav a { min-width: 66px; padding: 9px 14px; border-radius: 9px; color: #78817c; font-size: 12px; font-weight: 750; text-align: center; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .desktop-nav a.is-active { color: var(--ink); background: #fff; outline: none; box-shadow: 0 3px 10px rgba(49,58,53,.08); }
.save-state { justify-self: end; color: #858c88; font-size: 11px; }
.save-state i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #62a47e; box-shadow: 0 0 0 4px rgba(98,164,126,.11); }
.eyebrow { margin: 0; color: #8e785f; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.welcome-row { display: flex; min-height: 245px; align-items: center; justify-content: space-between; gap: 30px; padding: 38px 2px 24px; }
.welcome-row h1 { margin: 13px 0 0; font-size: clamp(35px, 4vw, 55px); line-height: 1.16; letter-spacing: -.065em; }
.welcome-row h1 em { color: var(--green); font-style: normal; }
.streak-card { display: grid; width: 142px; height: 142px; flex: 0 0 auto; place-items: center; align-content: center; border: 1px solid #e4d4b8; border-radius: 50%; background: #fbf5e8; box-shadow: inset 0 0 0 7px #f4ead6; }
.streak-card > span { color: var(--gold); font-size: 17px; }
.streak-card strong { margin-top: 5px; font-family: Georgia, serif; font-size: 28px; }
.streak-card small { margin-top: 3px; color: #8d887f; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 18px; }
.study-card { position: relative; display: grid; min-height: 390px; overflow: hidden; grid-template-columns: 1.15fr .85fr; border-radius: 25px; color: #f9f6ee; background: var(--green-dark); box-shadow: 0 20px 45px rgba(34,65,52,.17); }
.study-card::after { position: absolute; right: -80px; bottom: -140px; width: 350px; height: 350px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.02); }
.study-card__copy { position: relative; z-index: 1; padding: 42px 28px 38px 42px; }
.study-card .eyebrow { color: #bdcbbf; }
.status-pill { display: inline-block; margin-top: 26px; padding: 6px 10px; border-radius: 20px; color: #f5d79f; background: rgba(255,255,255,.09); font-size: 10px; font-weight: 750; }
.study-card h2 { max-width: 400px; margin: 13px 0 12px; font-size: clamp(26px, 3vw, 40px); line-height: 1.22; letter-spacing: -.055em; }
.study-card__copy > p:last-of-type { max-width: 390px; margin: 0; color: rgba(244,246,241,.66); font-size: 13px; line-height: 1.7; }
.primary-action { display: inline-flex; align-items: center; gap: 25px; margin-top: 32px; padding: 14px 17px; border-radius: 11px; color: var(--green-dark); background: #f5d69a; font-size: 12px; font-weight: 900; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.primary-action:hover, .primary-action:focus-visible { background: #ffe1a7; outline: none; transform: translateY(-2px); }
.study-card__progress { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 32px 36px; background: rgba(255,255,255,.04); }
.progress-ring { --value: calc(var(--progress) * 3.6deg); position: relative; display: grid; width: 170px; height: 170px; place-items: center; border-radius: 50%; background: conic-gradient(#ecc476 var(--value), rgba(255,255,255,.12) 0); }
.progress-ring::before { position: absolute; width: 142px; height: 142px; border-radius: 50%; background: #2f5042; content: ""; }
.progress-ring span { z-index: 1; text-align: center; }
.progress-ring strong, .progress-ring small { display: block; }
.progress-ring strong { font-family: Georgia, serif; font-size: 43px; font-weight: 500; }
.progress-ring small { margin-top: 3px; color: #b9c8c0; font-size: 9px; }
.study-card dl { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); margin: 30px 0 0; text-align: center; }
.study-card dl div + div { border-left: 1px solid rgba(255,255,255,.13); }
.study-card dt { color: #aebdb5; font-size: 9px; }
.study-card dd { margin: 5px 0 0; font-family: Georgia, serif; font-size: 20px; }
.word-card { display: flex; min-height: 390px; flex-direction: column; padding: 30px; border: 1px solid #d8d2c6; border-radius: 25px; background: var(--cream); box-shadow: 0 18px 38px rgba(51,51,43,.08); }
.word-card__top { display: flex; align-items: center; justify-content: space-between; }
.word-card__top button { padding: 7px 9px; border: 1px solid #ddd6c9; border-radius: 8px; color: #637069; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.word-card__top button:hover, .word-card__top button:focus-visible { border-color: var(--green); outline: none; }
.word-card__body { margin: auto 0; }
.word-card__body > span { color: #94958d; font-size: 10px; }
.word-card h2 { margin: 10px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(37px, 4vw, 52px); font-weight: 500; letter-spacing: -.045em; overflow-wrap: anywhere; }
.word-card__body strong { color: var(--green); font-size: 14px; }
.word-card__body p { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid #e2ddd3; color: #78817b; font-family: Georgia, serif; font-size: 13px; font-style: italic; line-height: 1.55; }
.word-card > a { display: flex; align-items: center; justify-content: space-between; padding-top: 19px; border-top: 1px solid #ded8ce; font-size: 11px; font-weight: 850; text-decoration: none; }
.overview-section { padding: 78px 0 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 8px 0 0; font-size: 27px; letter-spacing: -.045em; }
.section-heading > a { color: #62716a; font-size: 11px; font-weight: 800; text-decoration: none; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.35fr; gap: 12px; }
.metric-card, .activity-card { min-height: 164px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.56); }
.metric-card > span, .activity-card span { color: #818984; font-size: 10px; }
.metric-card > strong { display: block; margin-top: 13px; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.metric-card strong small { margin-left: 3px; color: #7e8782; font-family: inherit; font-size: 11px; }
.metric-card p { margin: 12px 0 0; color: #969b97; font-size: 9px; line-height: 1.5; }
.activity-card { display: flex; justify-content: space-between; flex-direction: column; background: #ece8de; }
.activity-card strong { display: block; margin-top: 5px; font-size: 15px; }
.week-bars { display: grid; height: 72px; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 7px; }
.week-bars p { display: flex; height: 100%; align-items: center; flex-direction: column; justify-content: end; gap: 6px; margin: 0; color: #8e948f; font-size: 8px; }
.week-bars i { width: 100%; min-height: 4px; border-radius: 3px 3px 1px 1px; background: #bdc7c0; }
.week-bars p.is-active i { background: var(--green); }
.library-section { position: relative; display: grid; min-height: 320px; overflow: hidden; grid-template-columns: 1fr 1fr; align-items: center; margin: 58px 0 30px; padding: 48px 56px; border-radius: 23px; background: #dfd6c7; }
.library-section::before { position: absolute; inset: 0; opacity: .32; background-image: repeating-linear-gradient(2deg, transparent 0 35px, rgba(79,59,38,.08) 36px, transparent 37px); content: ""; }
.library-section > div { position: relative; z-index: 1; }
.library-section h2 { margin: 11px 0 15px; font-size: clamp(27px, 3vw, 39px); line-height: 1.25; letter-spacing: -.055em; }
.library-section p:not(.eyebrow) { max-width: 430px; margin: 0; color: #6e706b; font-size: 12px; line-height: 1.7; }
.secondary-action { display: inline-flex; gap: 28px; margin-top: 25px; padding: 12px 15px; border: 1px solid rgba(36,54,47,.3); border-radius: 9px; font-size: 11px; font-weight: 850; text-decoration: none; }
.book-stack { display: flex; height: 230px; align-items: end; justify-content: center; gap: 10px; transform: rotate(-2deg); }
.book-stack span { display: flex; width: 70px; height: 210px; align-items: center; justify-content: center; padding: 12px; border-radius: 5px 9px 4px 5px; color: #dfe9e2; background: #385c4e; box-shadow: 8px 12px 14px rgba(62,47,32,.2), inset 7px 0 rgba(0,0,0,.1); font-family: Georgia, serif; font-size: 10px; line-height: 1.4; text-align: center; writing-mode: vertical-rl; }
.book-stack span:nth-child(2) { height: 180px; color: #4c422f; background: #d2aa61; }
.book-stack span:nth-child(3) { height: 225px; background: #7b8974; }
footer { display: flex; justify-content: space-between; padding: 20px 0 34px; color: #9a9890; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.mobile-nav { display: none; }
@media (max-width: 920px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .word-card { min-height: 300px; }
  .overview-grid { grid-template-columns: repeat(3, 1fr); }
  .activity-card { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { padding-bottom: 76px; }
  .app-shell { width: min(100% - 26px, 560px); }
  .topbar { min-height: 70px; grid-template-columns: 1fr auto; }
  .desktop-nav, .save-state { display: none; }
  .welcome-row { min-height: 196px; padding-top: 24px; }
  .welcome-row h1 { font-size: 34px; }
  .streak-card { width: 92px; height: 92px; box-shadow: inset 0 0 0 5px #f4ead6; }
  .streak-card > span { display: none; }
  .streak-card strong { font-size: 21px; }
  .study-card { grid-template-columns: 1fr; }
  .study-card__copy { padding: 32px 27px; }
  .study-card__progress { display: grid; grid-template-columns: 105px 1fr; padding: 24px 26px; }
  .progress-ring { width: 100px; height: 100px; }
  .progress-ring::before { width: 82px; height: 82px; }
  .progress-ring strong { font-size: 28px; }
  .progress-ring small { font-size: 7px; }
  .study-card dl { margin: 0; grid-template-columns: 1fr; text-align: left; }
  .study-card dl div { display: flex; align-items: center; justify-content: space-between; padding: 5px 0 5px 18px; }
  .study-card dl div + div { border: 0; }
  .study-card dd { font-size: 16px; }
  .overview-section { padding-top: 55px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:nth-child(3), .activity-card { grid-column: 1 / -1; }
  .library-section { grid-template-columns: 1fr; padding: 38px 30px 20px; }
  .book-stack { height: 180px; margin-top: 25px; transform: scale(.76) rotate(-2deg); transform-origin: center bottom; }
  .mobile-nav { position: fixed; z-index: 50; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid #d9d5cb; border-radius: 18px; background: rgba(253,251,247,.94); box-shadow: 0 12px 30px rgba(44,49,46,.17); backdrop-filter: blur(16px); }
  .mobile-nav a { display: flex; align-items: center; flex-direction: column; gap: 3px; padding: 6px; border-radius: 10px; color: #8a918d; font-size: 8px; font-weight: 800; text-decoration: none; }
  .mobile-nav a span { font-size: 17px; }
  .mobile-nav a.is-active { color: var(--green-dark); background: #edf0ea; }
  footer { padding-bottom: 10px; }
}
@media (max-width: 390px) {
  .welcome-row h1 { font-size: 30px; }
  .streak-card { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .metric-card:nth-child(3) { grid-column: auto; }
  .section-heading > a { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
