:root {
  color-scheme: light;
  --ink: #201b16;
  --muted: #5b5246;
  --card: #fffdf9;
  --shadow: 0 18px 35px rgba(32, 27, 22, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rubik", "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(140deg, #f5efe7 0%, #f1f7ff 45%, #fff0e8 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(246, 198, 84, 0.25), transparent 45%),
    radial-gradient(circle at 85% 12%, rgba(164, 75, 97, 0.18), transparent 50%),
    radial-gradient(circle at 25% 80%, rgba(47, 111, 109, 0.14), transparent 55%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.5) 0px,
      rgba(255, 255, 255, 0.5) 14px,
      transparent 14px,
      transparent 28px
    );
  z-index: -1;
}

.page {
  padding: 42px 6vw 64px;
  max-width: 960px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.back-link::before {
  content: "\2190";
  font-size: 1rem;
}

.board {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  padding: 24px;
  border: 1px solid rgba(32, 27, 22, 0.08);
  box-shadow: var(--shadow);
}

.week-section {
  padding: 6px 0 24px;
  border-bottom: 1px solid rgba(32, 27, 22, 0.08);
  margin-bottom: 24px;
}

.week-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  margin: 0 0 6px;
  color: var(--muted);
}

h1,
h2 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

.section-text {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.primary-button {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #2f6f6d;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(47, 111, 109, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(47, 111, 109, 0.25);
}

.primary-button:active {
  transform: translateY(0);
}

.section-header {
  margin-bottom: 12px;
}

.week-list .idea-card {
  border: 1px solid rgba(47, 111, 109, 0.2);
}

.week-day {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 111, 109, 0.12);
  color: #2f6f6d;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.idea-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.idea-card {
  background: var(--card);
  border-radius: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(32, 27, 22, 0.08);
  box-shadow: 0 14px 28px rgba(32, 27, 22, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: lift 0.45s ease both;
  animation-delay: var(--delay, 0ms);
}

.idea-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.idea-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.idea-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.idea-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.idea-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.idea-link:hover,
.idea-link:focus-visible {
  text-decoration: underline;
  color: var(--muted);
}

.idea-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1.1rem;
}

.swap-button {
  border: 1px solid rgba(47, 111, 109, 0.3);
  background: rgba(47, 111, 109, 0.08);
  color: #2f6f6d;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.swap-button:hover,
.swap-button:focus-visible {
  background: rgba(47, 111, 109, 0.18);
  transform: translateY(-1px);
}

.swap-button:active {
  transform: translateY(0);
}

.idea-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(246, 237, 226, 0.85);
  border: 1px solid rgba(32, 27, 22, 0.12);
}

.idea-ingredients {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.idea-ingredients li {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(239, 232, 222, 0.85);
  border: 1px solid rgba(32, 27, 22, 0.1);
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .page {
    padding: 28px 5vw 56px;
  }

  .board {
    padding: 20px;
  }
}
