@charset "UTF-8";

:root {
  --color-background: #f2fbff;
  --color-sky: #c8f4ff;
  --color-sky-strong: #18bde6;
  --color-sky-soft: #8fe8ff;
  --color-accent: #fff1a8;
  --color-blush: #ffd6ee;
  --color-lavender: #dcd2ff;
  --color-pearl: #fff8fd;
  --color-surface: #ffffff;
  --color-surface-soft: #eefaff;
  --color-text: #1f2a37;
  --color-muted: #6b7280;
  --color-border: #cceff8;
  --color-health: #5bc7b8;
  --shadow-soft: 0 24px 60px rgba(24, 189, 230, 0.15);
  --shadow-card: 0 16px 34px rgba(24, 189, 230, 0.12);
  --radius-page: 18px;
  --radius-card: 14px;
  --radius-button: 10px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 214, 238, 0.72), transparent 18rem),
    radial-gradient(circle at 18% 4%, rgba(255, 241, 168, 0.72), transparent 24rem),
    radial-gradient(circle at 86% 8%, rgba(143, 232, 255, 0.78), transparent 22rem),
    radial-gradient(circle at 84% 74%, rgba(220, 210, 255, 0.5), transparent 22rem),
    linear-gradient(180deg, #f8fdff 0%, var(--color-background) 48%, #e6f9ff 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(53, 195, 230, 0.35);
  outline-offset: 3px;
}

p,
dl,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.14;
}

.container {
  width: min(1160px, calc(100% - 32px));
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(248, 253, 255, 0.9);
  border-bottom: 1px solid rgba(204, 239, 248, 0.95);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1160px, calc(100% - 32px));
  max-width: calc(100vw - 32px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 900;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sky-strong), var(--color-lavender), var(--color-blush));
  color: #ffffff;
  font-size: 0.78rem;
  box-shadow: 0 8px 20px rgba(53, 195, 230, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--color-muted);
  font-size: 0.93rem;
  font-weight: 800;
}

.nav-menu a:hover {
  background: var(--color-sky-soft);
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 64px 0 74px;
}

.hero-book {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.84fr);
  gap: 24px;
  align-items: stretch;
  min-width: 0;
}

.cover-page,
.visual-page,
.page-block,
.final-page {
  position: relative;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-page);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.cover-page {
  min-height: 620px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 214, 238, 0.46), transparent 14rem),
    radial-gradient(circle at 86% 82%, rgba(255, 241, 168, 0.62), transparent 12rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(198, 244, 255, 0.78) 72%, rgba(143, 232, 255, 0.76) 100%),
    var(--color-surface);
}

.cover-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(143, 232, 255, 0.42) 45%, rgba(255, 214, 238, 0.28)),
    radial-gradient(circle at 72% 48%, rgba(220, 210, 255, 0.42), transparent 9rem);
  pointer-events: none;
}

.cover-page::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 12%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow:
    -22px 18px 0 rgba(255, 255, 255, 0.96),
    0 0 44px rgba(255, 241, 168, 0.72);
  opacity: 0.9;
}

.cover-page .profile-lines::before {
  content: "";
  position: absolute;
  right: 6%;
  top: -46px;
  width: 210px;
  height: 105px;
  border-radius: 230px 230px 0 0;
  background:
    radial-gradient(ellipse at center bottom, transparent 0 46%, rgba(255, 255, 255, 0.98) 47% 52%, transparent 53%),
    conic-gradient(from 270deg at 50% 100%, rgba(255, 214, 238, 0.82), rgba(255, 241, 168, 0.82), rgba(143, 232, 255, 0.82), rgba(220, 210, 255, 0.82), rgba(255, 214, 238, 0.82));
  opacity: 0.38;
  pointer-events: none;
  transform: rotate(-8deg);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: var(--color-health);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: min(650px, 100%);
  color: var(--color-text);
  font-size: clamp(2.6rem, 5.4vw, 5.45rem);
  font-weight: 900;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: var(--color-sky-strong);
  text-shadow: 0 8px 28px rgba(24, 189, 230, 0.18);
}

h2 {
  color: var(--color-text);
  font-size: clamp(1.9rem, 4vw, 3.8rem);
  font-weight: 900;
}

h3 {
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 900;
}

h4 {
  color: var(--color-health);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.student-name {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 16px;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-blush));
  color: #6a5b00;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 214, 238, 0.42);
}

.hero-tagline,
.record-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

.profile-lines {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.profile-lines div {
  min-height: 112px;
  display: grid;
  align-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 251, 255, 0.88)),
    var(--color-surface);
}

.profile-lines dt {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-lines dd {
  margin: 4px 0 0;
  color: var(--color-text);
  font-weight: 900;
}

.visual-page {
  min-height: 620px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 214, 238, 0.55), transparent 11rem),
    radial-gradient(circle at 80% 74%, rgba(255, 241, 168, 0.58), transparent 10rem),
    linear-gradient(135deg, rgba(143, 232, 255, 0.82), rgba(255, 255, 255, 0.9)),
    var(--color-surface);
}

.visual-page::before,
.visual-page::after,
.cloud,
.mini-cloud {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    32px 2px 0 #ffffff,
    18px -14px 0 #ffffff,
    56px -9px 0 #ffffff;
}

.visual-page::before {
  top: 34px;
  right: 56px;
  width: 64px;
  height: 24px;
  opacity: 0.85;
}

.visual-page::after {
  left: 28px;
  bottom: 226px;
  width: 70px;
  height: 25px;
  opacity: 0.72;
}

.photo-card {
  position: relative;
  z-index: 1;
  align-self: start;
  width: min(360px, 100%);
  margin: 18px auto 0;
  border: 10px solid #ffffff;
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 20px 45px rgba(24, 189, 230, 0.18),
    0 0 0 6px rgba(255, 214, 238, 0.28);
  transform: rotate(-1.4deg);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 38%;
}

.mini-sky {
  position: absolute;
  z-index: 0;
  top: 48%;
  right: 24px;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 214, 238, 0.22)),
    rgba(255, 255, 255, 0.38);
}

.mini-moon {
  position: absolute;
  top: 18px;
  right: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: -14px 10px 0 #ffffff;
}

.mini-cloud {
  left: 22px;
  bottom: 26px;
  width: 42px;
  height: 17px;
}

.toc-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 253, 0.9)),
    var(--color-surface);
  box-shadow: var(--shadow-card);
}

.toc-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-card a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 8px;
  color: var(--color-text);
  font-weight: 800;
}

.toc-card a:hover {
  background: var(--color-surface-soft);
}

.toc-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-sky-soft), var(--color-blush));
  color: #176a7f;
}

.sky-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sky-moon {
  top: 104px;
  left: max(18px, calc((100% - 1160px) / 2 - 70px));
  width: 96px;
  height: 96px;
  background: var(--color-accent);
  box-shadow:
    -22px 16px 0 var(--color-background),
    0 0 55px rgba(255, 241, 168, 0.78);
  opacity: 0.9;
}

.cloud-one {
  top: 162px;
  right: max(28px, calc((100% - 1160px) / 2 - 20px));
  width: 92px;
  height: 32px;
  opacity: 0.78;
}

.cloud-two {
  left: 6%;
  bottom: 44px;
  width: 100px;
  height: 34px;
  opacity: 0.65;
}

.cloud-three {
  top: 24px;
  right: 8%;
  width: 86px;
  height: 30px;
  opacity: 0.72;
}

.section {
  position: relative;
  padding: 76px 0;
}

.page-block,
.final-page {
  padding: clamp(24px, 4vw, 44px);
}

.page-block {
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 214, 238, 0.42), transparent 13rem),
    radial-gradient(circle at 92% 8%, rgba(143, 232, 255, 0.5), transparent 14rem),
    rgba(255, 255, 255, 0.92);
}

.section-heading {
  margin-bottom: 28px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 0.45fr);
  gap: 28px;
  align-items: end;
}

.split-heading > p {
  color: var(--color-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(198, 244, 255, 0.72), rgba(255, 255, 255, 0.92)),
    var(--color-surface);
  box-shadow: var(--shadow-card);
}

.about-card:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(255, 214, 238, 0.52), rgba(255, 255, 255, 0.92)),
    var(--color-surface);
}

.about-card:nth-child(3n) {
  background:
    linear-gradient(180deg, rgba(220, 210, 255, 0.48), rgba(255, 255, 255, 0.92)),
    var(--color-surface);
}

.about-card span,
.assignment-number,
.reflection-card span {
  color: var(--color-sky-strong);
  font-weight: 900;
}

.card-icon-row,
.assignment-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cute-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(135deg, var(--color-sky-soft), var(--color-blush) 58%, var(--color-lavender));
  color: #1187a6;
  box-shadow:
    0 10px 20px rgba(24, 189, 230, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.cute-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-card:nth-child(even) .cute-icon,
.reflection-card:nth-child(even) .cute-icon {
  color: #a14b86;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(135deg, var(--color-blush), var(--color-accent) 58%, #ffffff);
}

.assignment-card:nth-child(3n) .cute-icon {
  color: #6f58bd;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(135deg, var(--color-lavender), var(--color-sky-soft));
}

.item-index {
  color: var(--color-sky-strong);
  font-weight: 900;
}

.about-card h3 {
  margin-top: 10px;
}

.about-card p,
.assignment-card p,
.reflection-card p,
.detail-section p {
  margin-top: 10px;
  color: var(--color-muted);
}

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.assignment-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-page);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 251, 255, 0.92)),
    var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.assignment-card:nth-child(3n + 2) {
  background:
    linear-gradient(180deg, rgba(255, 248, 253, 0.98), rgba(255, 255, 255, 0.94)),
    var(--color-surface);
}

.assignment-card:nth-child(3n) {
  background:
    linear-gradient(180deg, rgba(247, 244, 255, 0.96), rgba(255, 255, 255, 0.94)),
    var(--color-surface);
}

.assignment-card:nth-child(2n) {
  transform: translateY(18px);
}

.assignment-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 68px;
  margin-bottom: 16px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 54%, #ffffff 0 15px, transparent 16px),
    radial-gradient(circle at 31% 44%, #ffffff 0 19px, transparent 20px),
    radial-gradient(circle at 44% 54%, #ffffff 0 16px, transparent 17px),
    linear-gradient(135deg, var(--color-sky-soft), var(--color-sky-strong), var(--color-lavender));
  box-shadow: inset 0 -12px 28px rgba(255, 255, 255, 0.32);
}

.assignment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.assignment-number {
  font-size: 1.7rem;
}

.pdf-status {
  border-radius: 999px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #fff8c9, #ffe2f2);
  color: #75660a;
  font-size: 0.76rem;
  font-weight: 900;
}

.assignment-card h3 {
  margin-top: 12px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.button,
.button-muted {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: 9px 13px;
  font-weight: 900;
}

.button {
  background: linear-gradient(135deg, var(--color-sky-strong), #62d8f4);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(24, 189, 230, 0.22);
}

.button:hover {
  background: linear-gradient(135deg, #12aacf, #52cced);
}

.button-muted {
  border-color: var(--color-border);
  background: linear-gradient(90deg, var(--color-surface-soft), var(--color-pearl));
  color: var(--color-muted);
}

.reflection-section {
  overflow: hidden;
}

.final-page {
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 214, 238, 0.5), transparent 15rem),
    radial-gradient(circle at 88% 12%, rgba(255, 241, 168, 0.46), transparent 13rem),
    linear-gradient(135deg, rgba(198, 244, 255, 0.78), rgba(255, 255, 255, 0.94)),
    var(--color-surface);
}

.reflection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reflection-card {
  min-height: 190px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 251, 255, 0.84)),
    rgba(255, 255, 255, 0.88);
}

.reflection-card:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(255, 248, 253, 0.95), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.88);
}

.reflection-card h3 {
  margin-top: 10px;
}

.detail-dialog {
  width: min(860px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius-page);
  padding: 0;
  background: transparent;
}

.detail-dialog::backdrop {
  background: rgba(31, 42, 55, 0.42);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-page);
  padding: clamp(22px, 4vw, 34px);
  background: var(--color-surface);
  box-shadow: 0 28px 90px rgba(31, 42, 55, 0.24);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface-soft);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.detail-body {
  display: grid;
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-border);
}

.detail-section {
  padding: 18px;
  background: var(--color-surface);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.pdf-pending {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff8c9;
  color: #75660a;
  font-weight: 900;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.74);
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
}

@media (max-width: 1020px) {
  .hero-book,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .cover-page,
  .visual-page {
    min-height: auto;
  }

  .profile-lines,
  .about-grid,
  .assignment-grid,
  .reflection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assignment-card:nth-child(2n) {
    transform: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 16px;
    background: rgba(249, 252, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    justify-content: center;
  }

  .hero-section,
  .section {
    padding: 46px 0;
  }

  .cover-page,
  .visual-page,
  .page-block,
  .final-page {
    border-radius: 14px;
    width: 100%;
  }

  .cover-page::before {
    width: 20%;
  }

  .cover-page::after {
    width: 92px;
    height: 92px;
    right: 8%;
    bottom: 7%;
  }

  .profile-lines,
  .about-grid,
  .assignment-grid,
  .reflection-grid {
    grid-template-columns: 1fr;
  }

  .photo-card {
    width: min(310px, 100%);
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
