:root {
  --ink: #15110d;
  --ink-soft: #1f1a14;
  --clay: #2b2118;
  --paper: #eee5d5;
  --paper-soft: #cfc2ae;
  --muted: #9f927f;
  --gold: #c7a46c;
  --moss: #6f765b;
  --rust: #8f5f3d;
  --line: rgba(238, 229, 213, 0.16);
  --line-dark: rgba(21, 17, 13, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background:
    linear-gradient(rgba(21, 17, 13, 0.78), rgba(21, 17, 13, 0.96)),
    repeating-linear-gradient(94deg, rgba(238, 229, 213, 0.035) 0 1px, transparent 1px 13px),
    radial-gradient(circle at 12% 8%, rgba(143, 95, 61, 0.24), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(111, 118, 91, 0.18), transparent 28rem),
    var(--ink);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(115deg, transparent 0 45%, rgba(238, 229, 213, 0.05) 46%, transparent 48%),
    repeating-linear-gradient(0deg, rgba(238, 229, 213, 0.025) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(21, 17, 13, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.logo {
  font-family: "Noto Serif JP", serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 34px);
  color: var(--paper-soft);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(78px, 12vw, 140px);
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Noto Serif JP", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(5rem, 17vw, 13.4rem);
  letter-spacing: 0.08em;
}

h2 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(2.25rem, 5.4vw, 5.6rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.03rem;
  line-height: 1.2;
}

p {
  color: var(--paper-soft);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  grid-template-areas:
    "copy visual"
    "facts visual";
  gap: 34px clamp(32px, 6vw, 86px);
  align-items: end;
  padding-top: 132px;
  padding-bottom: clamp(48px, 7vw, 84px);
  border-top: 0;
}

.hero-copy {
  grid-area: copy;
  align-self: center;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 34px;
  color: var(--paper);
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--paper);
  color: var(--ink);
}

.btn.quiet {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(238, 229, 213, 0.04);
}

.hero-visual {
  grid-area: visual;
}

.asset-frame {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--ink-soft);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.asset-frame::before,
.asset-frame::after {
  content: "";
  position: absolute;
  inset: 0;
}

.asset-frame::before {
  z-index: -2;
  background:
    linear-gradient(145deg, rgba(21, 17, 13, 0.1), rgba(21, 17, 13, 0.86)),
    var(--asset-image, none),
    var(--asset-texture);
  background-size: cover;
  background-position: center;
}

.asset-frame::after {
  z-index: -1;
  opacity: 0.58;
  background:
    repeating-linear-gradient(100deg, rgba(238, 229, 213, 0.08) 0 1px, transparent 1px 12px),
    radial-gradient(circle at 20% 18%, rgba(238, 229, 213, 0.16), transparent 12rem);
}

.asset-frame span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(238, 229, 213, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asset-barra {
  min-height: min(68svh, 620px);
  --asset-image: url("assets/hero-barra.jpg");
  --asset-texture:
    radial-gradient(circle at 42% 18%, rgba(238, 229, 213, 0.24), transparent 7rem),
    linear-gradient(90deg, #2c2117, #0f0c0a 52%, #5b3a24);
}

.asset-ceramica {
  --asset-image: url("assets/ceramica-artesanal.jpg");
  --asset-texture:
    radial-gradient(circle at 40% 50%, rgba(238, 229, 213, 0.84), transparent 5rem),
    radial-gradient(circle at 58% 47%, rgba(92, 73, 57, 0.82), transparent 7rem),
    linear-gradient(135deg, #3b332b, #16120e);
}

.asset-fusta {
  --asset-image: url("assets/fusta-fosca.jpg");
  --asset-texture:
    repeating-linear-gradient(90deg, rgba(238, 229, 213, 0.055) 0 1px, transparent 1px 26px),
    linear-gradient(110deg, #140f0b, #4a2d1d 48%, #211610);
}

.asset-producte {
  --asset-image: url("assets/producte-temporada.jpg");
  --asset-texture:
    radial-gradient(circle at 36% 48%, rgba(156, 169, 110, 0.78), transparent 5rem),
    radial-gradient(circle at 62% 40%, rgba(190, 129, 83, 0.6), transparent 6rem),
    linear-gradient(135deg, #18130f, #35251b);
}

.hero-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div {
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts span,
.price-box span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-facts strong {
  display: block;
  margin-top: 6px;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
}

.intro-grid,
.philosophy,
.reservation {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 7vw, 86px);
  align-items: start;
}

.rich-text {
  max-width: 680px;
  font-size: 1.08rem;
}

.rich-text p:last-child,
.philosophy-copy p:last-child,
.reservation-copy p:last-child {
  margin-bottom: 0;
}

.image-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 14px;
  padding-bottom: clamp(78px, 10vw, 124px);
}

.image-band .asset-frame {
  min-height: clamp(220px, 31vw, 390px);
}

.image-band .asset-frame:nth-child(2) {
  margin-top: 48px;
}

.philosophy {
  position: relative;
}

.philosophy::before {
  content: "";
  position: absolute;
  inset: 42px auto auto -24px;
  width: 72px;
  height: 72px;
  border-top: 1px solid rgba(199, 164, 108, 0.55);
  border-left: 1px solid rgba(199, 164, 108, 0.55);
}

.philosophy-copy {
  max-width: 660px;
}

.material-notes {
  display: grid;
  gap: 12px;
}

.material-notes article,
.experience-grid article,
.reservation-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(31, 26, 20, 0.7);
}

.material-notes article {
  padding: 26px;
}

.material-notes span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gold);
  font-family: "Noto Serif JP", Georgia, serif;
}

.material-notes p,
.experience-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.experience h2 {
  max-width: 980px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.experience-grid article {
  min-height: 210px;
  padding: 28px;
}

.menu-section {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(360px, 1fr) minmax(180px, 220px);
  gap: clamp(48px, 6vw, 76px);
  align-items: start;
}

.menu-intro {
  min-width: 0;
}

.menu-intro h2 {
  max-width: 9ch;
  font-size: clamp(3.6rem, 6vw, 5.25rem);
  line-height: 1.03;
  overflow-wrap: normal;
}

.menu-intro p {
  max-width: 36ch;
}

.menu-sequence {
  border-top: 1px solid var(--line);
}

.menu-row {
  display: grid;
  gap: 5px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.menu-row span {
  color: var(--paper);
  font-weight: 700;
}

.menu-row small {
  color: var(--muted);
  line-height: 1.55;
}

.price-box {
  position: sticky;
  top: 104px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(21, 17, 13, 0.055) 0 1px, transparent 1px 6px),
    var(--paper);
  color: var(--ink);
}

.price-box span {
  color: rgba(21, 17, 13, 0.58);
}

.price-box strong {
  display: block;
  margin: 18px 0 16px;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
}

.price-box small {
  display: block;
  color: rgba(21, 17, 13, 0.7);
  line-height: 1.55;
}

.reservation {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(rgba(21, 17, 13, 0.78), rgba(21, 17, 13, 0.9)),
    radial-gradient(circle at 82% 15%, rgba(199, 164, 108, 0.16), transparent 24rem),
    var(--clay);
}

.reservation-copy {
  max-width: 620px;
}

.reservation-notes {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--paper-soft);
}

.reservation-notes li {
  padding-left: 22px;
  position: relative;
}

.reservation-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.73em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.reservation-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--paper-soft);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: rgba(21, 17, 13, 0.88);
  color: var(--paper);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(199, 164, 108, 0.42);
  outline-offset: 2px;
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact {
  text-align: center;
}

.contact h2 {
  max-width: none;
}

.contact p {
  margin-bottom: 0;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.contact-links a {
  color: var(--gold);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: var(--paper);
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.22em;
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .philosophy,
  .menu-section,
  .reservation {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "copy"
      "visual"
      "facts";
    align-items: start;
  }

  .asset-barra {
    min-height: 420px;
  }

  .image-band,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .image-band .asset-frame:nth-child(2) {
    margin-top: 0;
  }

  .price-box {
    position: static;
  }

  .site-nav {
    position: fixed;
    top: 69px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(31, 26, 20, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
  }

  .nav-toggle {
    display: block;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .menu-section {
    grid-template-columns: minmax(260px, 320px) minmax(360px, 1fr);
  }

  .menu-section .price-box {
    grid-column: 1 / -1;
    width: min(100%, 360px);
    position: static;
  }

  .menu-intro h2 {
    font-size: clamp(3rem, 5.2vw, 4.4rem);
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    padding-inline: 16px;
  }

  .hero {
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(4rem, 24vw, 7rem);
  }

  h2 {
    font-size: clamp(2.05rem, 12vw, 3.6rem);
  }

  .hero-facts,
  .reservation-form {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .asset-barra,
  .asset-frame {
    min-height: 300px;
  }

  .site-footer {
    flex-direction: column;
  }
}
