:root {
  --cream: #fff9ef;
  --cream-deep: #f5ead7;
  --paper: #ffffff;
  --ink: #2f2a27;
  --muted: #6d635c;
  --accent: #a85e6e;
  --accent-dark: #824452;
  --accent-soft: #f6dfe4;
  --sage: #d9e6da;
  --border: #e6d8c6;
  --focus: #215e7f;
  --shadow: 0 12px 30px rgba(87, 60, 43, 0.1);
  --radius-large: 1.5rem;
  --radius-medium: 1rem;
  --radius-small: 0.7rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(246, 223, 228, 0.75), transparent 31rem),
    var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button,
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100% - 2rem, 74rem);
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
}

.hero {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  letter-spacing: -0.04em;
}

.intro {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.controls-panel,
.important-note {
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.controls-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.controls-heading h2,
.results-topline h2,
.important-note h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.controls-heading p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.search-row {
  margin-top: 1.5rem;
}

.search-row label,
.filter-group legend {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap::before {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: var(--muted);
  content: "⌕";
  font-size: 1.35rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

#flavor-search {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem 0.75rem 2.7rem;
  border: 1px solid #c9b9a7;
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
}

#flavor-search::placeholder {
  color: #8a7d72;
}

.filter-group {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}

.filter-help {
  margin: -0.1rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.filter-loading {
  margin: 0;
  color: var(--muted);

}

.clear-button {
  margin-top: 1.5rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
}

.clear-button:hover:not(:disabled) {
  background: var(--accent-dark);
  color: #fff;
}

.clear-button:disabled {
  border-color: #c9bfb7;
  color: #9a918a;
  cursor: not-allowed;
}

.results-section {
  margin-top: 2.75rem;
}

.results-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.results-topline p {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.status-message {
  display: none;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: #fffdf8;
  color: var(--muted);
}

.status-message.is-visible {
  display: block;
}

.status-message.is-error {
  border-color: #d78a8a;
  background: #fff3f3;
  color: #7f2929;
}

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.flavor-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--paper);
  box-shadow: 0 0.4rem 1.3rem rgba(87, 60, 43, 0.07);
}

.flavor-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.flavor-description {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.dietary-notes {
  margin-top: auto;
  padding-top: 1rem;
}

.note-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.important-note {
  margin-top: 2.75rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border-left: 0.4rem solid var(--accent);
  background: #fff8fa;
}

.important-note p {
  margin: 0.65rem 0 0;
  color: #5c4a4e;
}

.site-footer {
  padding: 1.25rem 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 38rem) {
  .site-shell {
    width: min(100% - 1.25rem, 74rem);
    padding-top: 2.25rem;
  }

  .results-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .results-topline p {
    text-align: left;
  }

  .filter-options {
    gap: 0.55rem;
  }

  .filter-option {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Compact heading and search area */

.site-shell {
  padding-top: 1.5rem;
}

.hero {
  max-width: 54rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
}

.intro {
  margin-top: 0.6rem;
  font-size: 1rem;
}

.controls-panel {
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: none;
}

.search-row {
  margin-top: 0;
}

.search-row label,
.filter-group legend {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

#flavor-search {
  min-height: 2.75rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.filter-group {
  min-width: 0;
  margin-top: 0.75rem;
}

.filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.filter-select-wrap {
  min-width: 0;
}

.filter-select-wrap label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.filter-select-wrap select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid #c9b9a7;
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.clear-button {
  margin-top: 0.65rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
}

.results-section {
  margin-top: 1.25rem;
}

.results-topline {
  margin-bottom: 0.75rem;
}

/* Preserve full notes, but keep them visually secondary. */

.dietary-notes {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.note-label {
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
}

.dietary-copy,
.additional-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-line;
}

.additional-copy {
  margin-top: 0.5rem;
}

@media (max-width: 38rem) {
  .site-shell {
    padding-top: 1rem;
  }

  .results-topline {
    flex-direction: row;
    align-items: baseline;
  }

  .results-topline p {
    font-size: 0.85rem;
  }
}
/* =========================================
   TYPOGRAPHY
   Fredoka → Quicksand → Rubik
   ========================================= */

:root {
  --font-display: "Fredoka", sans-serif;
  --font-heading: "Quicksand", sans-serif;
  --font-body: "Rubik", sans-serif;
}

/* Body copy, descriptions, notes, and messages */
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

/* Keep native form controls consistent with the site */
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

/* Primary heading */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* Section headings */
h2,
.controls-heading h2,
.results-topline h2,
.important-note h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Flavor names */
h3,
.flavor-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Labels and small interface headings */
.eyebrow,
.search-row label,
.filter-group legend,
.filter-select-wrap label,
.note-label,
.filter-option {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Buttons */
button,
.clear-button {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Search and dropdown values */
#flavor-search,
.filter-select-wrap select {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
}

/* Supporting text */
.intro,
.controls-heading p,
.filter-help,
.filter-loading,
.results-topline p,
.status-message,
.flavor-description,
.dietary-copy,
.additional-copy,
.important-note p,
.site-footer {
  font-family: var(--font-body);
  font-weight: 400;
}

/* Give additional sheet notes a little emphasis */
.additional-copy {
  font-weight: 500;
}

/* Keyboard focus for the new dropdown controls */
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
/* =========================================
   WHITE CONE PATTERN + BLUE GRADIENT
   ========================================= */

body {
  position: relative;
  isolation: isolate;

  background-color: #2379bb;
  background-image:
    radial-gradient(
      ellipse at top left,
      rgba(150, 217, 255, 0.65),
      transparent 60%
    ),
    linear-gradient(
      145deg,
      #58b1eb 0%,
      #287fc3 48%,
      #14518b 100%
    );

  background-repeat: no-repeat;
  background-size: cover;
}

/*
  A separate layer keeps the white icon pattern subtle
  without fading the gradient or the page content.
*/
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image: url("white-cone.png");
  background-repeat: repeat;
  background-position: 20px 25px;
  background-size: 70px auto;

  opacity: 0.18;
}

/* Soft, solid panels keep text readable over the pattern */
.hero {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-large);
  background: #f5fbff;
  box-shadow: 0 12px 30px rgba(8, 41, 79, 0.14);
}

.controls-panel {
  background: #ffffff;
  border-color: #d4e7f5;
}

.flavor-card {
  background: #ffffff;
  border-color: #d4e7f5;
  box-shadow: 0 6px 20px rgba(8, 41, 79, 0.12);
}

/* These labels sit directly on the blue background */
.results-topline h2,
.results-topline p {
  color: #ffffff;
}

.important-note {
  background: #f5fbff;
  border-color: #d4e7f5;
  border-left-color: #77c5f5;
}

.site-footer {
  background: #164c7b;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Slightly smaller pattern on phones */
@media (max-width: 38rem) {
  body::before {
    background-size: 80px auto;
  }
}