/* Mecenas — photo-led, minimal. One typeface, small type, the photos do the work. */

:root {
  --bg: #f2efe9;
  --ink: #161412;
  --muted: #6d655c;
  --line: rgba(22, 20, 18, 0.14);
  --placeholder: #ddd6cb;

  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 3vw, 40px);       /* page edge */
  --gap: clamp(8px, 1vw, 14px);        /* between photos */
  --space: clamp(80px, 9vw, 144px);    /* between sections */
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
p,
figure,
dl,
dd,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--pad);
  z-index: 50;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad);
  color: #fff;
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.header.is-solid {
  color: var(--ink);
  background: rgba(242, 239, 233, 0.96);
  box-shadow: 0 1px 0 var(--line);
}

.wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu-button,
.header-link {
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.header-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad) var(--pad);
  background: var(--bg);
  color: var(--ink);
}

.menu[hidden] {
  display: none;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.menu-list {
  display: grid;
  gap: 4px;
  margin: auto 0;
}

.menu-list a {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
}

.menu-list a:hover {
  color: var(--muted);
}

.menu-foot {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #1b1714;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* just enough shade for the header and the text to read */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 20%);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  z-index: 1;
  right: var(--pad);
  bottom: var(--pad);
  left: var(--pad);
  color: #fff;
}

.hero-text h1 {
  max-width: 22ch;
  font-size: clamp(28px, 3.4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.hero-text p {
  margin-top: 14px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Shared ---------- */
.block {
  padding: var(--space) var(--pad);
}

.statement {
  max-width: 24ch;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

.block-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--placeholder);
}

.frame figcaption {
  max-width: 40ch;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.frame figcaption strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.todo {
  border-bottom: 1px dashed currentColor;
  color: var(--muted);
}

/* ---------- Cocinas ---------- */
.cocinas,
.espacios,
.producto {
  padding: 0 var(--pad) var(--space);
}

/* first section after the hero: a shorter gap so the photos arrive quickly */
.cocinas {
  padding-top: clamp(56px, 7vw, 112px);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

/* on wide screens keep each photo within one screen height */
.pair .frame img,
.producto-photo img {
  max-height: 82vh;
}

/* ---------- Espacios ---------- */
.spaces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.spaces .frame img {
  aspect-ratio: 2 / 3;
}

/* ---------- Producto ---------- */
.producto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.producto-text .statement {
  margin-bottom: 40px;
}

.origins > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.origins > div:last-child {
  border-bottom: 1px solid var(--line);
}

.origins dd {
  color: var(--muted);
  text-align: right;
}

/* ---------- España y Japón ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.story-text p {
  max-width: 46ch;
  font-size: 17px;
}

.story-text p + p {
  margin-top: 1em;
}

/* ---------- Reservar ---------- */
.reservar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  padding: var(--space) var(--pad);
  border-top: 1px solid var(--line);
}

.info {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  font-size: 15px;
}

.info dt {
  font-size: 13px;
  color: var(--muted);
}

.booking {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 20px;
  align-content: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  grid-column: span 3;
  font-size: 13px;
  color: var(--muted);
}

.field--third {
  grid-column: span 2;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.button {
  padding: 14px 26px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.button:hover {
  background: #3a342e;
}

.booking-note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .producto,
  .story,
  .reservar {
    grid-template-columns: 1fr;
  }

  .spaces {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
}

@media (max-width: 600px) {
  .pair {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .header-actions {
    gap: 20px;
  }

  .field,
  .field--third {
    grid-column: 1 / -1;
  }
}
