:root {
  --paper: #efe2c3;
  --paper-deep: #e4d3a9;
  --ink: #3b2a1e;
  --ink-soft: #6b5942;
  --azulejo: #2b5c67;
  --azulejo-deep: #1e434c;
  --tijolo: #b04632;
  --butter: #d9a441;
  --sage: #6f8f5a;
  --plum: #6b4560;
  --vinho: #7a2035;
  --line: rgba(59, 42, 30, 0.18);
  --badge-clearance: clamp(108px, 24vw, 180px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(176, 70, 50, 0.17) 0px, rgba(176, 70, 50, 0.17) 7px, transparent 7px, transparent 27px),
    repeating-linear-gradient(90deg, rgba(176, 70, 50, 0.17) 0px, rgba(176, 70, 50, 0.17) 7px, transparent 7px, transparent 27px);
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ---------- header ---------- */

.brand-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
  margin: -1.5rem -1.5rem 2.5rem;
  background-color: var(--paper);
  border-bottom: 2px solid var(--ink);
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  width: clamp(2.6rem, 5vw, 3.6rem);
  height: clamp(2.6rem, 5vw, 3.6rem);
  flex: none;
}

.brand-lockup {
  flex: 1 1 320px;
}

.brand-name {
  position: relative;
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 1.6rem 0.5rem 0;
}

.brand-signature {
  position: absolute;
  right: -1.9rem;
  bottom: -0.35rem;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--tijolo);
  transform: rotate(-9deg);
  white-space: nowrap;
}

.brand-tagline {
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

nav.brand-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

nav.brand-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

nav.brand-nav a:hover,
nav.brand-nav a:focus-visible {
  border-bottom-color: var(--tijolo);
}

nav.brand-nav a[aria-current="page"] {
  color: var(--azulejo);
  border-bottom-color: var(--azulejo);
}

/* ---------- card ---------- */

.card {
  background-color: var(--paper-deep);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(59, 42, 30, 0.45);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  margin: 16px 0;
  position: relative;
}

.hoop-badge {
  position: absolute;
  top: 56px;
  right: 10px;
  width: clamp(92px, 20vw, 152px);
  aspect-ratio: 152 / 82;
  background-image: url("img/sunflower-garland.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 6px 10px rgba(59, 42, 30, 0.35));
  transform: rotate(-3deg);
  z-index: 2;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 15px;
  background-image: radial-gradient(circle at 10px 0, transparent 9px, var(--paper-deep) 9.5px);
  background-size: 20px 15px;
  background-repeat: repeat-x;
}

.card::before {
  top: -15px;
}

.card::after {
  bottom: -15px;
  transform: rotate(180deg);
}

@media (max-width: 480px) {
  .card { background-image: none; }
}

.eyebrow {
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tijolo);
  margin: 0 0 0.9rem;
  padding-right: var(--badge-clearance);
}

h1.page-title {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.06;
  text-wrap: balance;
  margin: 0 0 0.6rem;
  max-width: 18ch;
  padding-right: var(--badge-clearance);
}

p.byline {
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 1.4rem;
  padding-right: var(--badge-clearance);
}

p.page-intro {
  padding-right: var(--badge-clearance);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 62ch;
  margin: 0 0 2rem;
}

.lede-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 2.5rem;
  align-items: start;
}

.intro {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 62ch;
  margin: 0 0 1.5rem;
}

.margin-note {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--azulejo-deep);
  transform: rotate(-3.5deg);
  max-width: 20ch;
  margin: 0.3rem 0 1.5rem 0.2rem;
  position: relative;
}

.margin-note::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  background: var(--butter);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.meta-row dt {
  display: inline;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.meta-row dd {
  display: inline;
  margin: 0 0 0 0.35rem;
  font-variant-numeric: tabular-nums;
}

.meta-item {
  white-space: nowrap;
}

/* ---------- figure / illustration ---------- */

.dish-figure {
  margin: 0 0 2.5rem;
  display: flex;
  justify-content: center;
}

.dish-frame {
  position: relative;
  background: #f6efe0;
  padding: 0.9rem 0.9rem 2.6rem;
  box-shadow: 0 12px 28px -16px rgba(59, 42, 30, 0.5);
  transform: rotate(1.2deg);
  max-width: 30rem;
  width: 100%;
}

.dish-frame svg,
.dish-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.dish-frame figcaption {
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.tape {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 4.5rem;
  height: 1.6rem;
  background: rgba(217, 164, 65, 0.55);
  border: 1px solid rgba(176, 70, 50, 0.25);
}

.post-it {
  position: absolute;
  top: 1rem;
  right: -0.6rem;
  width: 8rem;
  padding: 0.7rem 0.75rem 0.6rem;
  background: #f5e28a;
  box-shadow: 0 6px 14px -6px rgba(59, 42, 30, 0.45);
  transform: rotate(5deg);
  font-family: "Caveat", cursive;
  font-weight: 600;
  color: var(--ink);
  z-index: 1;
}

.post-it p {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.post-it p:last-child {
  margin-bottom: 0;
}

.post-it .post-it-label {
  font-family: "Work Sans", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tijolo);
  display: block;
  margin-bottom: 0.1rem;
}

@media (max-width: 560px) {
  .post-it {
    position: static;
    transform: rotate(-1deg);
    width: fit-content;
    margin: 0.75rem 0 0;
  }
}

/* ---------- post-it wall (static grid of notes, not overlaid on a photo) ---------- */

.post-it-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1.25rem;
  padding: 0.5rem 0 1rem;
}

.post-it-wall .post-it {
  position: static;
  width: 11rem;
  transform: rotate(-3deg);
}

.post-it-wall .post-it:nth-child(2n) {
  transform: rotate(2.5deg);
}

.post-it-wall .post-it:nth-child(3n) {
  transform: rotate(-1.5deg);
}

.post-it-wall .post-it p {
  font-size: 1.05rem;
  line-height: 1.25;
}

/* ---------- azulejo divider ---------- */

.tile-divider {
  height: 34px;
  margin: 0 -3.25rem 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Crect width='34' height='34' fill='%23e4d3a9'/%3E%3Cg fill='none' stroke='%232b5c67' stroke-width='1.6'%3E%3Cpath d='M17 3 L31 17 L17 31 L3 17 Z'/%3E%3Ccircle cx='17' cy='17' r='5.5'/%3E%3C/g%3E%3Cg fill='%232b5c67'%3E%3Ccircle cx='17' cy='10' r='1.6'/%3E%3Ccircle cx='24' cy='17' r='1.6'/%3E%3Ccircle cx='17' cy='24' r='1.6'/%3E%3Ccircle cx='10' cy='17' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 34px 34px;
}

@media (max-width: 640px) {
  .tile-divider { margin-left: -1.75rem; margin-right: -1.75rem; }
  .lede-row { grid-template-columns: 1fr; }
}

/* ---------- ingredients ---------- */

h2.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  margin: 0 0 1.1rem;
}

section.ingredients {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 1.95rem,
    var(--line) 1.95rem,
    var(--line) calc(1.95rem + 1px)
  );
  padding-top: 0.2rem;
  margin-bottom: 2.75rem;
}

ul.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
}

ul.checklist li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  line-height: 1.95rem;
  break-inside: avoid;
  font-size: 1rem;
}

ul.checklist li::before {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid var(--tijolo);
  transform: translateY(-0.05rem);
}

@media (max-width: 560px) {
  ul.checklist { columns: 1; }
}

/* ---------- instructions ---------- */

ol.steps {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  counter-reset: step;
  max-width: 62ch;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.4rem;
  line-height: 1.7;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--azulejo);
}

/* ---------- tip box ---------- */

.tip-box {
  background: rgba(176, 70, 50, 0.09);
  border-left: 3px solid var(--tijolo);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
}

.tip-label {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--tijolo);
  margin: 0 0 0.3rem;
}

.tip-box p:last-child {
  margin: 0;
  line-height: 1.65;
  max-width: 58ch;
}

/* ---------- share box ---------- */

.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(217, 164, 65, 0.16);
  border-left: 3px solid var(--butter);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
}

.share-box p {
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  max-width: 42ch;
}

button.share-btn {
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: var(--tijolo);
  border: none;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  white-space: nowrap;
}

button.share-btn:hover,
button.share-btn:focus-visible {
  background: #8f3a29;
}

button.share-btn:focus-visible {
  outline: 2px solid var(--butter);
  outline-offset: 2px;
}

/* ---------- comments ---------- */

.comments-section {
  margin-top: 2.5rem;
}

.comments-section .section-title {
  margin-bottom: 1rem;
}

/* ---------- actions ---------- */

.actions {
  display: flex;
  justify-content: flex-end;
}

button.print-btn {
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: var(--azulejo);
  border: none;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
}

button.print-btn:hover,
button.print-btn:focus-visible {
  background: var(--azulejo-deep);
}

button.print-btn:focus-visible {
  outline: 2px solid var(--butter);
  outline-offset: 2px;
}

/* ---------- homepage blocks ---------- */

.section-eyebrow {
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tijolo);
  margin: 0 0 0.6rem;
}

h2.block-heading {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  max-width: 30ch;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.pillar-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.generations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.generations-grid h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--tijolo);
}

.generations-grid p {
  margin: 0;
  line-height: 1.7;
}

.final-cta {
  text-align: center;
  margin: 3rem 0 0.5rem;
  padding: 2.5rem 1.5rem;
  background: rgba(43, 92, 103, 0.08);
  border: 1px solid var(--line);
}

.final-cta h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.6rem;
}

.final-cta p {
  margin: 0 auto 1.5rem;
  max-width: 50ch;
  line-height: 1.65;
}

a.cta-btn {
  display: inline-block;
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: var(--tijolo);
  padding: 0.85rem 1.75rem;
  text-decoration: none;
}

a.cta-btn:hover,
a.cta-btn:focus-visible {
  background: #8f3a29;
}

a.cta-btn:focus-visible {
  outline: 2px solid var(--butter);
  outline-offset: 2px;
}

/* ---------- about / collab ---------- */

section.about-collab {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text p {
  margin: 0;
  line-height: 1.75;
  font-size: 1.05rem;
  max-width: 62ch;
}

.about-block-label {
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tijolo);
  margin: 0 0 0.5rem !important;
}

.family-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 1.75rem;
}

.polaroid {
  width: 7.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.4rem 0.4rem 0.15rem;
  box-shadow: 0 10px 20px -14px rgba(59, 42, 30, 0.5);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1px;
}

.polaroid figcaption {
  margin-top: 0.3rem;
  font-family: "Caveat", cursive;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--ink-soft);
  text-align: center;
}

.polaroid:nth-child(odd) {
  transform: rotate(-4deg);
}

.polaroid:nth-child(even) {
  transform: rotate(4deg);
}

.polaroid:hover {
  transform: rotate(0deg);
  position: relative;
  z-index: 3;
}

.polaroid--wide {
  width: 11rem;
}

.polaroid--wide img {
  aspect-ratio: 4 / 3;
}

@media (max-width: 560px) {
  .family-gallery { justify-content: center; }
}

/* ---------- category index pages ---------- */

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

.teaser-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem;
}

.teaser-media {
  position: relative;
  margin: -1.35rem -1.25rem 1rem;
  background: var(--paper-deep);
  overflow: hidden;
}

.teaser-media svg,
.teaser-media img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.diet-badges {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: calc(100% - 1.2rem);
}

.diet-badge {
  font-family: "Work Sans", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(59, 42, 30, 0.25);
}

.diet-badge--gluten { color: var(--tijolo); }
.diet-badge--lactose { color: var(--azulejo); }
.diet-badge--acucar { color: #8a6417; }
.diet-badge--sodio { color: var(--sage); }
.diet-badge--vegano { color: var(--azulejo-deep); }
.diet-badge--vegetariano { color: var(--sage); }
.diet-badge--medicinal { color: var(--plum); }
.diet-badge--delicioso { color: #8a6417; }
.diet-badge--alcoolico { color: var(--vinho); }

.dish-frame .diet-badges {
  left: 0.9rem;
  bottom: 0.9rem;
}

.teaser-tag {
  font-family: "Work Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tijolo);
  margin: 0 0 0.5rem;
}

.teaser-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

.teaser-meta {
  font-family: "Work Sans", sans-serif;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0;
}

.kid-badge {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: "Work Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.kid-badge--safe {
  background: rgba(43, 92, 103, 0.14);
  color: var(--azulejo-deep);
}

.kid-badge--help {
  background: rgba(176, 70, 50, 0.14);
  color: var(--tijolo);
}

/* ---------- segredinhos page ---------- */

ul.secrets-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 62ch;
}

ul.secrets-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

ul.secrets-list li:first-child {
  padding-top: 0;
}

.secret-from {
  font-family: "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tijolo);
  margin: 0 0 0.35rem;
}

.secret-to {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- footer ---------- */

.brand-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: "Work Sans", sans-serif;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.brand-footer a {
  color: var(--ink-soft);
}

@media print {
  body { background: #fff; }
  .brand-header, .brand-footer, .actions, .tile-divider, .tape, .share-box, .comments-section { display: none; }
  .card { box-shadow: none; border: none; background: #fff; }
  .card::before, .card::after, .hoop-badge { display: none; }
}
