@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&family=Varela+Round&display=swap');

:root {
  color-scheme: light;
  --bg: #fef7fb;
  --bg-soft: #edf7ff;
  --paper: rgba(255, 252, 255, 0.92);
  --paper-strong: #fffafc;
  --ink: #50324d;
  --ink-soft: #765f73;
  --line: rgba(186, 152, 189, 0.42);
  --accent: #e980b2;
  --accent-strong: #bf5f97;
  --accent-sky: #7aa7f8;
  --accent-gold: #f2c66d;
  --shadow: 0 24px 60px rgba(182, 124, 171, 0.16);
  --shadow-soft: 0 16px 36px rgba(122, 167, 248, 0.14);
  --success: #6f8f4e;
  --warning: #ab4d62;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 233, 0.75), transparent 28%),
    radial-gradient(circle at top right, rgba(196, 225, 255, 0.8), transparent 30%),
    linear-gradient(180deg, #fbf1f7 0%, #fffdfc 40%, #f5f7ff 100%);
  color: var(--ink);
  font-family: "Nunito Sans", "Noto Sans TC", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.34;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(122, 167, 248, 0.4);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-band,
.page-layout {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 450px);
  align-items: center;
  gap: 32px;
  padding: 34px 0 26px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.story-section h2,
.timeline-section h2,
.entry-detail h2 {
  font-family: "Varela Round", "Nunito Sans", sans-serif;
}

.hero-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  color: #b9558c;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(17px, 2.2vw, 21px);
}

.hero-actions,
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-link,
.secondary-link,
.primary-button,
.icon-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link,
.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #c37ef3 100%);
  box-shadow: 0 16px 26px rgba(219, 117, 183, 0.24);
  color: #fff;
}

.secondary-link {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(191, 95, 151, 0.28);
  color: var(--accent-strong);
}

.primary-link:hover,
.primary-button:hover,
.secondary-link:hover,
.icon-button:hover,
.diary-item:hover {
  transform: translateY(-1px);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-notes span,
.meta-pill,
.tag,
.mini-tag,
.mood-pill,
.list-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(191, 95, 151, 0.16);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.hero-art {
  margin: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}

.timeline-section,
.entry-detail,
.feedback-section,
.feedback-stream-section {
  position: relative;
  backdrop-filter: blur(14px);
}

.timeline-section {
  align-self: start;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 251, 254, 0.96), rgba(252, 248, 255, 0.92));
  border: 1px solid rgba(191, 95, 151, 0.16);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2,
.feedback-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.8vw, 34px);
  color: #855285;
}

.icon-button {
  width: 46px;
  flex: 0 0 46px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(122, 167, 248, 0.28);
  color: var(--accent-strong);
  box-shadow: 0 10px 20px rgba(122, 167, 248, 0.14);
}

.diary-list {
  display: grid;
  gap: 14px;
}

.diary-item {
  width: 100%;
  padding: 16px 16px 14px;
  border: 1px solid rgba(191, 95, 151, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 251, 0.96));
  box-shadow: 0 12px 30px rgba(191, 95, 151, 0.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.diary-item.active {
  border-color: rgba(191, 95, 151, 0.32);
  background: linear-gradient(180deg, rgba(255, 248, 252, 1), rgba(241, 247, 255, 0.98));
  box-shadow: 0 18px 40px rgba(200, 128, 175, 0.14);
}

.diary-date-row,
.diary-footer,
.entry-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.diary-date,
.diary-open {
  font-size: 13px;
  font-weight: 700;
}

.diary-date {
  color: var(--ink-soft);
}

.diary-open {
  color: var(--accent-sky);
}

.diary-title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.diary-title-icon {
  display: inline-flex;
  align-items: start;
  justify-content: center;
}

.diary-summary,
.feedback-copy p,
.entry-summary-lead,
.entry-body p,
.entry-empty-copy p,
.empty,
.error {
  color: var(--ink-soft);
}

.diary-summary {
  margin-bottom: 14px;
  font-size: 14px;
}

.mini-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tag {
  min-height: 28px;
  padding: 0 10px;
  background: rgba(237, 247, 255, 0.85);
  border-color: rgba(122, 167, 248, 0.18);
  font-size: 12px;
}

.mood-pill,
.list-note {
  min-height: 30px;
  padding: 0 10px;
  background: rgba(255, 241, 249, 0.9);
  font-size: 12px;
}

.story-section {
  display: grid;
  gap: 24px;
}

.entry-detail,
.feedback-section,
.feedback-stream-section {
  padding: 22px;
  border-radius: 32px;
  background: var(--paper);
  border: 1px solid rgba(191, 95, 151, 0.16);
  box-shadow: var(--shadow);
}

.feedback-stream-section {
  background:
    radial-gradient(circle at top left, rgba(255, 236, 245, 0.58), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 254, 0.95), rgba(247, 250, 255, 0.95));
}

.entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 22px;
}

.entry-cover {
  align-self: start;
}

.entry-image,
.entry-empty-art,
.list-empty img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.entry-image {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 34px rgba(122, 167, 248, 0.16);
}

.entry-headline h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: #8e578a;
}

.entry-date-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(122, 167, 248, 0.12);
  color: #5776a7;
  font-size: 14px;
  font-weight: 800;
}

.entry-summary-lead {
  margin-bottom: 16px;
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  background: rgba(255, 247, 212, 0.86);
  border-color: rgba(242, 198, 109, 0.18);
  color: #8c6b30;
}

.entry-body {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.entry-body p {
  margin-bottom: 0;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 252, 0.92));
  border: 1px solid rgba(191, 95, 151, 0.1);
}

.entry-section + .entry-section {
  margin-top: 18px;
}

.entry-section-head {
  margin-bottom: 10px;
}

.section-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.section-list li {
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.88), rgba(255, 251, 254, 0.96));
  border: 1px solid rgba(122, 167, 248, 0.12);
  color: var(--ink);
}

.section-list li strong {
  margin-right: 6px;
  color: #6f5186;
}

.section-list li span {
  display: block;
}

.entry-empty {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 400px;
}

.entry-empty-art {
  aspect-ratio: 4 / 5;
  box-shadow: 0 16px 34px rgba(122, 167, 248, 0.14);
}

.entry-empty-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 40px);
  color: #8e578a;
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 224, 239, 0.62), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 254, 0.95), rgba(247, 250, 255, 0.95));
}

.feedback-stream-head h2,
.general-feedback-board h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  color: #855285;
}

.feedback-stream-list {
  display: grid;
  gap: 14px;
}

.feedback-card {
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.98));
  border: 1px solid rgba(191, 95, 151, 0.14);
  box-shadow: 0 12px 24px rgba(191, 95, 151, 0.08);
}

.feedback-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.feedback-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.35;
  color: #7a4e77;
}

.feedback-meta {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.feedback-body,
.reply-body {
  margin-bottom: 0;
  color: var(--ink);
}

.feedback-body {
  white-space: pre-wrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
}

.status-new {
  background: rgba(255, 247, 212, 0.88);
  color: #916a21;
  border-color: rgba(242, 198, 109, 0.24);
}

.status-read {
  background: rgba(237, 247, 255, 0.92);
  color: #4e72a5;
  border-color: rgba(122, 167, 248, 0.2);
}

.status-applied {
  background: rgba(236, 246, 225, 0.94);
  color: #597737;
  border-color: rgba(111, 143, 78, 0.2);
}

.status-rejected {
  background: rgba(255, 239, 243, 0.94);
  color: #a04f68;
  border-color: rgba(171, 77, 98, 0.18);
}

.hermes-reply {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 248, 255, 0.94), rgba(255, 251, 254, 0.98));
  border: 1px solid rgba(122, 167, 248, 0.16);
}

.reply-label {
  margin-bottom: 8px;
  color: #5776a7;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reply-body {
  white-space: pre-wrap;
}

.general-feedback-board {
  display: grid;
  gap: 12px;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(191, 95, 151, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

textarea {
  min-height: 156px;
  resize: vertical;
}

.primary-button {
  padding: 0 18px;
  font-weight: 800;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-message[data-state="success"] {
  color: var(--success);
}

.form-message[data-state="error"] {
  color: var(--warning);
}

.list-empty,
.empty,
.error {
  text-align: center;
}

.list-empty {
  display: grid;
  gap: 14px;
  padding: 8px;
}

.list-empty img {
  aspect-ratio: 4 / 3;
}

.empty {
  margin: 0;
  padding: 18px 12px;
}

.error {
  margin: 0;
  color: var(--warning);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero-band,
  .page-layout {
    width: min(1100px, calc(100% - 24px));
  }

  .hero-band,
  .entry-hero,
  .feedback-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 520px;
  }

  .entry-image {
    aspect-ratio: 4 / 3;
  }

  .entry-empty {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .timeline-section {
    order: 1;
  }

  .story-section {
    order: 2;
  }
}

@media (max-width: 640px) {
  .hero-band,
  .page-layout {
    width: calc(100% - 20px);
  }

  .hero-band {
    gap: 18px;
    padding-top: 18px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-lead,
  .entry-summary-lead {
    font-size: 16px;
  }

  .timeline-section,
  .entry-detail,
  .feedback-section,
  .feedback-stream-section {
    padding: 16px;
    border-radius: 24px;
  }

  .section-heading h2,
  .feedback-copy h2 {
    font-size: 28px;
  }

  .entry-headline h2,
  .entry-empty-copy h2 {
    font-size: 30px;
  }

  .entry-body p,
  .section-list li {
    padding: 14px;
  }

  .feedback-actions {
    align-items: start;
    flex-direction: column;
  }

  .feedback-card {
    padding: 14px;
    border-radius: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
