* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --ink: #140f0a;
  --sand: #2a2118;
  --stone: #5f4b36;
  --sun: #b8935b;
  --sky: #4a3c32;
  --deep: #2d241a;
  --paper: #f3e8d6;
  --shadow: 0 30px 60px rgba(10, 7, 4, 0.45);
  --sigil: rgba(240, 220, 185, 0.08);
}

body {
  font-family: "Space Grotesk", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, #403122, #2a1f16 45%, #140f0a 85%);
  color: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, var(--sigil) 0 12%, transparent 13%),
    radial-gradient(circle at 85% 30%, var(--sigil) 0 10%, transparent 11%),
    radial-gradient(circle at 30% 80%, var(--sigil) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 70%, var(--sigil) 0 12%, transparent 13%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 240, 210, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 72%, rgba(255, 240, 210, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 35%, rgba(255, 240, 210, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 22%, rgba(255, 240, 210, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 58%, rgba(255, 240, 210, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 80%, rgba(255, 240, 210, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 8% 86%, rgba(255, 240, 210, 0.6) 0 1px, transparent 2px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: twinkle 6s ease-in-out infinite;
}

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.6;
  z-index: 0;
}

.orb-a {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #9b7442, transparent 70%);
  top: -140px;
  right: -120px;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #4c3a2b, transparent 70%);
  bottom: -90px;
  left: -90px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 8vw 12px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  font-family: "Fraunces", "Apple SD Gothic Neo", serif;
  font-size: 32px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #100b08, #3a2a1c);
  color: #f6ead7;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(8, 6, 4, 0.45);
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.9rem;
  color: #c7b59a;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: #d5c1a6;
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border 0.3s ease;
}

.site-nav a:hover {
  border-bottom: 1px solid #e8d7bd;
}

main {
  position: relative;
  z-index: 1;
  padding: 24px 8vw 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: #d8c6ab;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Apple SD Gothic Neo", serif;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.05rem;
  color: #d6c3a6;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid #bfa277;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #f3e3cc;
}

.btn.primary {
  background: linear-gradient(135deg, #2a1f16, #5c452a);
  color: #f8eedc;
  border-color: #b28f60;
  box-shadow: 0 18px 35px rgba(10, 7, 4, 0.5);
}

.btn.ghost {
  background: rgba(26, 19, 12, 0.6);
  border-color: #9e7a4b;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-card {
  background: linear-gradient(160deg, #3a2b1b, #2b2016 60%, #22190f);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(191, 161, 119, 0.2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-weight: 600;
}

.chip {
  background: linear-gradient(120deg, #7d5c35, #b18a56);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-body {
  color: #e4d2b8;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

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

.tag {
  border-radius: 999px;
  border: 1px solid rgba(214, 190, 150, 0.4);
  padding: 4px 10px;
  font-size: 0.75rem;
}

.interpret {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.panel {
  background: linear-gradient(160deg, #3b2c1d, #2a1f16 70%);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(191, 161, 119, 0.18);
}

.panel-header p {
  color: #d7c3a7;
  margin-top: 8px;
}

textarea {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(214, 190, 150, 0.45);
  background: rgba(20, 15, 10, 0.6);
  font-family: inherit;
  resize: vertical;
  min-height: 160px;
  color: #f5e7d4;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dream-output {
  background: rgba(20, 15, 10, 0.6);
  border-radius: 16px;
  padding: 18px;
  border: 1px dashed rgba(214, 190, 150, 0.4);
  min-height: 160px;
}

.dream-output h4 {
  margin-bottom: 10px;
}

.dream-output ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.muted {
  color: #d7c3a7;
}

.symbols {
  display: grid;
  gap: 24px;
}

.section-title p {
  color: #d7c3a7;
  max-width: 560px;
}

.symbol-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.symbol-grid article {
  background: rgba(32, 23, 16, 0.75);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(191, 161, 119, 0.2);
  box-shadow: 0 12px 20px rgba(12, 8, 5, 0.35);
}

.comments {
  display: grid;
  gap: 20px;
}

.comment-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #e6d3b8;
}

.toggle-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #bfa277;
  background: rgba(26, 19, 12, 0.7);
  color: #f3e3cc;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-btn[aria-pressed="false"] {
  opacity: 0.6;
}

.comment-panel {
  background: linear-gradient(160deg, #3b2c1d, #2a1f16 70%);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(191, 161, 119, 0.18);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.comment-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr auto;
  gap: 10px;
}

.comment-row input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(214, 190, 150, 0.45);
  background: rgba(20, 15, 10, 0.6);
  color: #f5e7d4;
  font-family: inherit;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(214, 190, 150, 0.25);
  background: rgba(20, 15, 10, 0.5);
  display: grid;
  gap: 6px;
}

.comment-item strong {
  font-size: 0.95rem;
}

.comment-item span {
  color: #e6d3b8;
  font-size: 0.9rem;
}

.ritual-card {
  background: linear-gradient(135deg, #4a3521, #2c2117 50%, #1a130c);
  padding: 32px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  border: 1px solid rgba(191, 161, 119, 0.2);
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.ritual-label {
  font-size: 0.85rem;
  color: #d7c3a7;
}

.ritual-value {
  font-weight: 600;
}

.site-footer {
  padding: 24px 8vw 40px;
  text-align: center;
  color: #d7c3a7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.reveal:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal:nth-child(2) {
  animation-delay: 0.2s;
}

.reveal:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.75;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: fit-content;
  }

  .comment-row {
    grid-template-columns: 1fr;
  }
}
