:root {
  --bg-top: #fff8ef;
  --bg-bottom: #ffe9cd;
  --sun: #ffc770;
  --sun-soft: #ffe8bc;
  --card: #fffdf8;
  --line: #efd9bd;
  --text: #342e27;
  --muted: #6a6054;
  --accent: #e87836;
  --chip: #fff3df;
  --warm-shadow: 0 16px 40px rgba(135, 93, 46, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.45) 0%, transparent 36%),
    linear-gradient(to bottom, var(--bg-top), var(--bg-bottom));
}

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sun {
  position: absolute;
  width: min(40vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  right: clamp(-70px, -5vw, -10px);
  top: clamp(-90px, -8vw, -18px);
  background: radial-gradient(circle at 35% 35%, #fff4d6 0%, var(--sun) 52%, var(--sun-soft) 100%);
  opacity: 0.78;
  animation: breathe 6s ease-in-out infinite;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  background: linear-gradient(to top, rgba(232, 120, 54, 0.16), rgba(232, 120, 54, 0));
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.card {
  width: min(720px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.35rem, 3vw, 2.45rem);
  box-shadow: var(--warm-shadow);
  position: relative;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff7eb, #ffefd8);
  border: 1px solid #f0d4b0;
  display: grid;
  place-items: center;
}

.mark svg {
  width: 70%;
  height: 70%;
  stroke: #3d3024;
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark circle {
  fill: #3d3024;
}

.label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 1.1rem 0 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.01em;
  line-height: 0.96;
  font-weight: 400;
}

.lead {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.13rem);
  line-height: 1.5;
  color: var(--muted);
}

#focus-word {
  color: var(--accent);
  font-weight: 700;
  transition: opacity 180ms ease;
}

.body {
  margin: 0.85rem 0 0;
  max-width: 58ch;
  color: #61564a;
  line-height: 1.6;
}

.chips {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  background: var(--chip);
  border: 1px solid #f2d3ae;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.8rem;
  color: #745d45;
}

.actions {
  margin-top: 1.55rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  padding-top: 0.95rem;
  border-top: 1px solid #f1ddc7;
}

.btn {
  text-decoration: none;
  background: linear-gradient(135deg, #ea7c39, #db6b2e);
  color: #fff8f1;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(216, 104, 41, 0.23);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(216, 104, 41, 0.3);
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

footer {
  margin-top: 1.4rem;
}

small {
  color: #8b7c69;
  font-size: 0.8rem;
}

@keyframes breathe {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.03);
  }
}

@media (max-width: 600px) {
  .card {
    border-radius: 18px;
    padding: 1.25rem;
  }

  .sun {
    width: 52vw;
  }

  .actions {
    gap: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
