:root {
  --cream: #f6f1e8;
  --sand: #d8c9b6;
  --clay: #9d7c62;
  --ink: #2c1d13;
  --moss: #556b5a;
  --accent: #c36f3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #fbead4 0%, transparent 55%),
              radial-gradient(circle at 80% 20%, #e7d7c5 0%, transparent 45%),
              linear-gradient(140deg, #f8f3eb 0%, #efe5d6 100%);
  min-height: 100vh;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  gap: 32px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--moss);
  margin-bottom: 12px;
}

h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 3vw, 3.2rem);
  margin: 0 0 12px;
}

.subhead {
  font-size: 1.1rem;
  max-width: 520px;
  color: #4a3b30;
}

.actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.action-group {
  display: grid;
  gap: 8px;
}

.action-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--moss);
  margin: 0;
}

.btn {
  border: none;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 20px rgba(195, 111, 59, 0.3);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

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

.card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(44, 29, 19, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 40px rgba(44, 29, 19, 0.1);
  backdrop-filter: blur(8px);
}

.cover {
  width: 160px;
  height: 160px;
  background: var(--sand);
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.details h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 8px;
}

.meta {
  color: #5c4a3f;
  margin: 0 0 16px;
}

.label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--moss);
  margin-bottom: 12px;
}

.progress {
  width: 100%;
  height: 6px;
  background: rgba(44, 29, 19, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--moss);
  transition: width 0.6s ease;
}

.time {
  font-size: 0.9rem;
  color: #6c5a4f;
  margin-top: 10px;
}

.note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: #7a6a60;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(85, 107, 90, 0.25);
  border-radius: 999px;
  transition: background 0.3s ease;
}

.slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 16px rgba(44, 29, 19, 0.2);
}

.switch input:checked + .slider {
  background: var(--moss);
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

.switch input:disabled + .slider {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 720px) {
  .card {
    grid-template-columns: 1fr;
  }

  .cover {
    width: 100%;
    height: 220px;
  }

  .actions {
    width: 100%;
  }

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