:root {
  --ink: #34281f;
  --muted: #75675c;
  --paper: #f4ecdc;
  --paper-light: #fffaf0;
  --paper-deep: #e6d6bd;
  --tomato: #b7432d;
  --aubergine: #553946;
  --olive: #667047;
  --saffron: #d6a240;
  --line: #ccbca3;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-soft: 0 24px 55px rgba(72, 52, 35, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(117, 87, 58, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 34px;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--ink);
  color: #fff;
}

.site-header {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0 .85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .65rem;
  width: fit-content;
  color: var(--ink);
  font: 800 clamp(1.15rem, 2vw, 1.55rem)/1 var(--serif);
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand-mark {
  width: 1.1rem;
  height: .72rem;
  display: inline-block;
  overflow: hidden;
  color: transparent;
  background: var(--tomato);
  border-radius: 62% 38% 58% 42% / 45% 55% 45% 55%;
  transform: rotate(-8deg);
}
.site-header nav { display: flex; align-items: center; gap: .25rem; }
.site-header nav a {
  padding: .5rem .75rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--tomato);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

main {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
}
.hero {
  min-height: 690px;
  padding: 4.5rem 0 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(480px, 1.22fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  position: relative;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow,
.footer-kicker {
  margin: 0 0 1rem;
  color: var(--tomato);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 0 0 1.7rem;
  font: 700 clamp(3.35rem, 6.5vw, 6.6rem)/.92 var(--serif);
  letter-spacing: -.065em;
}
.intro {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font: 400 clamp(1.08rem, 1.8vw, 1.3rem)/1.65 var(--serif);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; margin-top: 2.1rem; }
.hero-actions a,
.read-more {
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-actions a:first-child {
  padding: .75rem 1.15rem;
  background: var(--tomato);
  color: #fffaf2;
  box-shadow: 5px 5px 0 var(--aubergine);
}
.hero-actions a:last-child { padding: .75rem .1rem; color: var(--aubergine); }
.hero-actions a:hover,
.read-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-visual {
  min-width: 0;
  margin: 0;
  position: relative;
  transform: rotate(1.1deg);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14px 26px 21px -19px;
  z-index: -1;
  background: var(--saffron);
  border-radius: 12% 3% 14% 2% / 4% 11% 3% 14%;
  transform: rotate(-2.4deg);
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 9px solid var(--paper-light);
  box-shadow: var(--shadow-soft);
  clip-path: polygon(1% 2%, 99% 0, 97% 97%, 3% 100%, 0 45%);
}
.hero-visual figcaption {
  width: min(410px, 82%);
  margin: -1.55rem 1rem 0 auto;
  padding: 1rem 1.25rem;
  position: relative;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: 4px 6px 0 rgba(85, 57, 70, .16);
  transform: rotate(-1.4deg);
  font-family: var(--serif);
}
.hero-visual figcaption span {
  display: block;
  color: var(--tomato);
  font: 850 .68rem/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-visual figcaption strong { display: block; margin-top: .4rem; font-size: 1.05rem; }

.kitchen-index {
  margin: .3rem 0 7rem;
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--line);
}
.kitchen-index p {
  min-width: 0;
  margin: 0;
  padding: .5rem clamp(1rem, 3vw, 2.3rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .12rem .75rem;
  align-items: baseline;
  border-right: 1px solid var(--line);
}
.kitchen-index p:last-child { border-right: 0; }
.kitchen-index span { grid-row: 1 / 3; color: var(--tomato); font: 700 1.75rem/1 var(--serif); }
.kitchen-index strong { font: 700 1.05rem/1.2 var(--serif); }
.kitchen-index small { color: var(--muted); }

.latest {
  padding: 0 0 8rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.3rem, 3vw, 2.7rem);
}
.section-heading {
  grid-column: 1 / -1;
  margin-bottom: .8rem;
  padding-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--ink);
}
.section-heading h2 {
  margin: 0;
  font: 700 clamp(2.4rem, 5vw, 4.7rem)/.98 var(--serif);
  letter-spacing: -.045em;
}
.section-heading > p { margin: 0 0 .35rem; color: var(--muted); font-size: .83rem; }
.post-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
  border-top: 6px solid var(--paper-light);
}
.post-card:nth-of-type(1) { grid-column: span 7; }
.post-card:nth-of-type(2) { grid-column: span 5; margin-top: 4.5rem; }
.post-card:nth-of-type(3),
.post-card:nth-of-type(4),
.post-card:nth-of-type(5) { grid-column: span 4; }
.post-card:nth-of-type(6) { grid-column: span 5; margin-top: 3rem; }
.post-card:nth-of-type(7) { grid-column: span 7; }
.post-card:nth-of-type(8),
.post-card:nth-of-type(9),
.post-card:nth-of-type(10) { grid-column: span 4; }
.image-link {
  min-height: 0;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
}
.image-link img,
.article-image img,
.about-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.post-card .image-link { aspect-ratio: 4 / 3; }
.post-card:nth-of-type(2) .image-link,
.post-card:nth-of-type(6) .image-link { aspect-ratio: 1 / 1; }
.post-card:nth-of-type(3) .image-link,
.post-card:nth-of-type(5) .image-link,
.post-card:nth-of-type(8) .image-link { aspect-ratio: 4 / 5; }
.post-card:nth-of-type(1) .image-link,
.post-card:nth-of-type(7) .image-link { aspect-ratio: 16 / 10; }
.post-card:nth-of-type(4),
.post-card:nth-of-type(9) { transform: rotate(-.45deg); }
.post-card:nth-of-type(5),
.post-card:nth-of-type(10) { transform: rotate(.4deg); }
.post-copy { padding: 1.25rem .3rem 0; }
.category {
  width: fit-content;
  margin: 0 0 .75rem;
  padding: .28rem .55rem;
  background: var(--paper-deep);
  color: var(--aubergine);
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.post-copy h3 {
  margin: 0 0 .75rem;
  font: 700 clamp(1.65rem, 2.6vw, 2.65rem)/1.06 var(--serif);
  letter-spacing: -.035em;
}
.post-copy h3 a { text-decoration: none; }
.post-copy h3 a:hover { color: var(--tomato); }
.post-copy > p:not(.category) { margin: 0; color: var(--muted); }
.read-more { display: inline-block; margin-top: 1.1rem; color: var(--tomato); }

.about-wrap { padding: 5.5rem 0 9rem; }
.about-wrap > h1 {
  max-width: 950px;
  margin: 0 0 3.5rem;
  font: 700 clamp(4rem, 10vw, 8.7rem)/.86 var(--serif);
  letter-spacing: -.07em;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.about-image {
  grid-column: 1;
  margin: 0;
  padding: 10px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1deg);
}
.about-image img { aspect-ratio: 4 / 3; }
.about-copy { grid-column: 2; }
.about-lead { margin: 0 0 2rem; font: 700 clamp(1.9rem, 3.5vw, 3rem)/1.15 var(--serif); }
.about-body { max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.about-signature { margin-top: 2.4rem; color: var(--tomato); font: italic 700 1.45rem/1 var(--serif); }

.article-wrap { width: min(1180px, calc(100% - 3rem)); padding-top: 4.5rem; }
.article-wrap > article {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: clamp(2.4rem, 6vw, 6.5rem);
  align-items: center;
}
.article-header { text-align: left; }
.article-header::before {
  content: "Apunte de cocina";
  display: block;
  width: fit-content;
  margin-bottom: 1.2rem;
  padding-bottom: .2rem;
  color: var(--tomato);
  border-bottom: 2px solid var(--tomato);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.article-header h1 {
  margin: .8rem 0 1.3rem;
  font: 700 clamp(3rem, 5.5vw, 5.9rem)/.94 var(--serif);
  letter-spacing: -.06em;
}
.dek { max-width: 650px; margin: 0 0 1.5rem; color: var(--muted); font: 400 1.2rem/1.55 var(--serif); }
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  color: var(--muted);
  font-size: .78rem;
}
.byline span:first-child { color: var(--aubergine); font-weight: 800; }
.article-image {
  height: min(58vw, 660px);
  margin: 0;
  padding: 10px;
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transform: rotate(.7deg);
}
.prose {
  grid-column: 1 / -1;
  width: min(760px, 100%);
  margin: 2rem auto 0;
  font: 400 1.2rem/1.83 var(--serif);
}
.prose::before {
  content: "BASE DE HOY  ·  SEGUNDA FORMA  ·  CONSERVACIÓN";
  display: block;
  margin: 0 0 3rem;
  padding: 1rem 0;
  color: var(--olive);
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--line);
  font: 850 .68rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-align: center;
}
.prose p { margin: 0 0 1.55rem; }
.prose h2 {
  margin: 3.6rem 0 1.15rem;
  color: var(--aubergine);
  font: 700 clamp(1.8rem, 3vw, 2.45rem)/1.15 var(--serif);
  letter-spacing: -.025em;
}
.prose h2::before { content: "✦"; margin-right: .65rem; color: var(--saffron); font-size: .7em; }
.prose a { color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose li { margin: .45rem 0; }
.article-nav {
  width: min(760px, 100%);
  margin: 5rem auto 8rem;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--ink);
}
.article-nav a { color: var(--tomato); font-size: .82rem; font-weight: 850; text-decoration: none; }
.article-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-footer {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto 2rem;
  padding: 2.5rem 0 1.8rem;
  display: grid;
  grid-template-columns: 1.2fr .6fr 1fr;
  gap: 2rem;
  color: var(--muted);
  border-top: 3px double var(--ink);
}
.site-footer p { margin: 0; }
.footer-brand { color: var(--ink); font: 700 1.7rem/1 var(--serif); text-decoration: none; }
.footer-summary { max-width: 360px; margin-top: .8rem !important; }
.site-footer nav { display: grid; align-content: start; gap: .45rem; }
.site-footer nav a { width: fit-content; color: var(--aubergine); font-size: .85rem; font-weight: 800; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-note { max-width: 390px; font-family: var(--serif); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .hero h1 { font-size: clamp(3rem, 8vw, 5rem); }
  .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card:nth-of-type(n) { grid-column: span 1; margin-top: 0; transform: none; }
  .post-card:nth-of-type(1),
  .post-card:nth-of-type(7) { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { background-size: 100% 30px; }
  .site-header { width: calc(100% - 2rem); padding-top: 1rem; grid-template-columns: 1fr; gap: .7rem; }
  .site-header nav { margin-left: -.65rem; overflow-x: auto; }
  .site-header nav a { white-space: nowrap; }
  main,
  .article-wrap,
  .site-footer { width: calc(100% - 2rem); }
  .hero { min-height: auto; padding: 3.5rem 0 2.8rem; grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5.1rem); }
  .hero-visual { width: calc(100% - .5rem); margin-left: .5rem; }
  .hero-visual::before { inset: -10px 14px 16px -10px; }
  .hero-visual img { aspect-ratio: 4 / 4.45; border-width: 6px; }
  .hero-visual figcaption { width: 90%; margin-top: -1.15rem; }
  .kitchen-index { margin-bottom: 4.5rem; grid-template-columns: 1fr; }
  .kitchen-index p { border-right: 0; border-bottom: 1px solid var(--line); }
  .kitchen-index p:last-child { border-bottom: 0; }
  .latest { padding-bottom: 5rem; grid-template-columns: 1fr; gap: 2.8rem; }
  .post-card:nth-of-type(n) { grid-column: 1; }
  .section-heading { align-items: start; }
  .section-heading > p { display: none; }
  .post-card .image-link,
  .post-card:nth-of-type(n) .image-link { aspect-ratio: 4 / 3; }
  .post-copy { padding-top: 1rem; }
  .about-wrap { padding: 4rem 0 6rem; }
  .about-wrap > h1 { margin-bottom: 2.6rem; font-size: clamp(3.6rem, 20vw, 6.4rem); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image,
  .about-copy { grid-column: 1; }
  .about-copy { grid-row: 1; }
  .article-wrap { padding-top: 3.5rem; }
  .article-wrap > article { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-header h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .article-image { height: 118vw; max-height: 590px; }
  .prose { grid-column: 1; margin-top: .5rem; font-size: 1.09rem; }
  .prose::before { text-align: left; line-height: 1.8; }
  .article-nav { display: grid; }
  .site-footer { padding-top: 2rem; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
