:root {
  --purple: #590085;
  --ink: #23162d;
  --muted: #706779;
  --line: #e8e1ec;
  --lavender: #f2ebf8;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 16px;
  background: #fcfbfe;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px solid #9f60c7;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: clamp(2.8rem, 6.1vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.24;
}
p {
  line-height: 1.7;
}
em {
  color: var(--purple);
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 1rem;
  background: white;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}
.eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--purple);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--purple);
  border-radius: 7px;
  background: var(--purple);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.button:hover {
  background: #440066;
}
.button.secondary {
  background: white;
  color: var(--purple);
  border-color: #d5c5df;
}
.button.light {
  background: white;
  color: var(--purple);
  border-color: white;
}
.text-link {
  display: block;
  width: fit-content;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.75rem 0;
}
.site-header {
  max-width: 1280px;
  margin: auto;
  min-height: 106px;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}
.brand b {
  display: block;
  font-weight: 650;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-header nav a {
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.site-header nav .account-link {
  border: 1px solid #d5c5df;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  color: var(--purple);
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 3rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}
.hero h1 {
  margin: 1.1rem 0 1.6rem;
}
.hero-copy {
  max-width: 480px;
  color: var(--muted);
  font-size: 1.05rem;
}
.binder-card {
  background: #590085;
  color: white;
  border-radius: 16px;
  padding: 2.4rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.binder-card:after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 28%;
  background: linear-gradient(90deg, transparent, #ffffff08);
  pointer-events: none;
}
.binder-card h2 {
  font-size: 2.1rem;
  max-width: 280px;
  margin: 1rem 0;
}
.binder-card p {
  font-size: 0.9rem;
  max-width: 290px;
  color: #eadbf4;
}
.binder-card .eyebrow {
  color: #d9b6ee;
  font-size: 0.75rem;
}
.binder-count {
  display: block;
  font-size: 0.8rem;
  color: #e4c9f3;
  margin-top: 1.15rem;
}
.binder-icon {
  font-family: var(--serif);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 2.4rem;
  color: #e5d0f3;
}
.binder-icon span {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.16em;
  border-left: 1px solid #ffffff55;
  padding-left: 1rem;
}
.library {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.section-title h2 {
  margin: 0;
}
.section-title .eyebrow {
  margin-bottom: 0.6rem;
}
.sort-label {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}
.sort-label select {
  font-size: 0.875rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 2.2rem 0.65rem 0.7rem;
  background: white
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"%3E%3Cpath d="m4 5 3 3 3-3" fill="none" stroke="%23590085"/%3E%3C/svg%3E')
    no-repeat right 0.6rem center;
  appearance: none;
}
.search-label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: white;
  border: 1px solid #d7ccdf;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 5px #25103503;
}
.search-box:focus-within {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.search-box svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.7;
  flex-shrink: 0;
}
.search-box input {
  border: 0;
  outline: none;
  min-width: 0;
  flex: 1;
  font-size: 1rem;
  background: none;
  color: var(--ink);
  min-height: 28px;
}
.search-box kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 7px;
  color: #8e8198;
  font-size: 0.8rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.3rem 0;
}
.filter {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: #5c4c65;
  font-size: 0.875rem;
  min-height: 40px;
}
.filter span {
  font-size: 0.75rem;
  margin-left: 0.4rem;
  opacity: 0.75;
}
.filter.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}
.filter:hover:not(.active) {
  background: var(--lavender);
}
.results-count {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1.5rem 0 1rem;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.recipe-card {
  background: white;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.recipe-card:hover {
  transform: translateY(-3px);
  border-color: #c7aad9;
  box-shadow: 0 8px 22px #42115d09;
}
.category-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--purple);
  margin-bottom: 1.4rem;
}
.recipe-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.7rem;
}
.recipe-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.recipe-card h3 a:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
}
.recipe-card h3 a:focus-visible {
  outline: none;
}
.recipe-card:focus-within {
  outline: 3px solid #9f60c7;
  outline-offset: 3px;
}
.recipe-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #eee8f2;
  padding-top: 0.85rem;
  font-size: 0.75rem;
  color: #7d6e87;
}
.downloads {
  margin: 4rem 0 3rem;
  padding: 2.8rem;
  background: var(--lavender);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.downloads h2 {
  font-size: 2.4rem;
  margin-bottom: 0;
}
.downloads p {
  color: var(--muted);
  font-size: 0.95rem;
}
.empty-state {
  text-align: center;
  padding: 3rem;
}
.empty-state p {
  color: var(--muted);
}
footer {
  max-width: 1280px;
  padding: 1.8rem 3rem;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.recipe-page {
  max-width: 1000px;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.back-link {
  font-size: 0.9rem;
}
.recipe-heading {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.recipe-heading h1 {
  font-size: clamp(2.7rem, 5vw, 4.3rem);
  margin: 0.75rem 0 1.5rem;
}
.recipe-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.recipe-content {
  max-width: 800px;
  margin: 2rem auto 0;
}
.recipe-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: 1.4rem;
  background: var(--lavender);
  border-radius: 8px;
}
.recipe-facts dt {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.recipe-facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}
.recipe-content h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--purple);
}
.recipe-content h3 {
  font: 600 1.05rem system-ui;
  color: var(--purple);
  margin: 1.6rem 0 0.6rem;
}
.recipe-content p,
.recipe-content li {
  font-size: 1rem;
  line-height: 1.8;
}
.ingredients {
  list-style: none;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.ingredients li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.ingredients li:last-child {
  border: 0;
}
.directions {
  padding-left: 1.8rem;
}
.directions li {
  padding-left: 0.5rem;
  margin-bottom: 1.15rem;
}
.directions li::marker {
  font-weight: 700;
  color: var(--purple);
}
.original-page img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.original-page summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--purple);
  padding: 1rem 0;
}
.original-page pre {
  white-space: pre-wrap;
  line-height: 1.7;
  font: 0.9rem/1.7 system-ui;
  padding: 1rem;
  background: white;
}
.notice {
  padding: 1rem 1.2rem;
  border: 1px solid #d6c2e4;
  border-radius: 8px;
  background: var(--lavender);
  line-height: 1.6;
}
.error {
  color: #8e173b;
  background: #fff0f4;
  border-color: #efc7d3;
}
