/* ============================================================
   unwind — objects shaped by the sea
   Design tokens mirror the Figma library (collection "unwind")
   Mobile-first. Breakpoints: 768px, 1080px
   ============================================================ */

:root {
  --sand: #F2EEE6;
  --shell: #E9E3D8;
  --white: #FFFFFF;
  --water: #A9B2AE;
  --sage: #8FA69E;
  --deepsea: #445D55;
  --ink: #2E2E2B;
  --fog: #71766F;
  --line: #D6D0C6;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;

  --pad: 24px;
  --maxw: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  margin: 0;
  line-height: 1.15;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; font-weight: 400; }

p { margin: 0; }

.overline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.muted { color: var(--fog); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.01em;
}

.header-nav { display: none; }

.header-side { display: flex; align-items: center; gap: 28px; flex: 1; }
.header-side.right { justify-content: flex-end; }

.header-icons { display: flex; gap: 20px; align-items: center; }

.icon-btn {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--sand);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.drawer.open { transform: translateX(0); }
.drawer a {
  font-family: var(--serif);
  font-size: 30px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.drawer .drawer-close { align-self: flex-end; font-size: 28px; }
.drawer .drawer-foot { margin-top: auto; color: var(--fog); font-size: 13px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--deepsea); color: var(--white); }
.btn-primary:hover { background: #37493f; }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--sand); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--shell); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: gap .25s;
}
.link-arrow:hover { gap: 16px; }
.link-arrow::after { content: "⟶"; font-size: 15px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 20%;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,23,20,0) 40%, rgba(13,23,20,.55) 100%);
}
.hero-content {
  position: relative;
  padding: 0 var(--pad) 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-title {
  font-size: 40px;
  line-height: 1.12;
  max-width: 14ch;
}

/* ---------- Sections ---------- */

.section { padding-top: 56px; padding-bottom: 48px; }

.manifesto { text-align: left; }
.manifesto .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 18px;
}
.manifesto p.muted { margin-bottom: 18px; max-width: 60ch; }

/* category tiles */
.tiles { display: grid; gap: 16px; padding-bottom: 24px; }
.tile {
  position: relative;
  height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,23,20,0) 45%, rgba(13,23,20,.5) 100%);
  transition: background .3s;
}
.tile:hover::before { background: linear-gradient(to bottom, rgba(13,23,20,.08) 45%, rgba(13,23,20,.6) 100%); }
.tile > * { position: relative; }
.tile h2 { color: var(--white); }
.tile .overline { font-size: 11px; margin-top: 6px; }

/* product grid */
.grid-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 8px;
}
.card { display: block; }
.card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--shell);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--white);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  padding: 5px 10px;
  text-transform: uppercase;
}
.card.sold .card-img img { opacity: .55; }
.card.sold .card-name { color: var(--fog); }
.card-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-top: 12px;
  line-height: 1.25;
}
.card-price {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--fog);
  margin-top: 4px;
}

/* about teaser */
.about-teaser img { width: 100%; height: 300px; object-fit: cover; }
.about-teaser .overline { margin-top: 24px; color: var(--fog); }
.about-teaser h2 { margin: 10px 0 12px; }
.about-teaser p { margin-bottom: 18px; }

/* instagram strip */
.ig-strip .overline { color: var(--fog); display: block; margin-bottom: 14px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig-grid a { aspect-ratio: 1; overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig-grid a:hover img { transform: scale(1.05); }

/* ---------- Shop ---------- */

.page-title { padding-top: 32px; }
.page-title p { margin-top: 10px; max-width: 52ch; }

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.chip.active, .chip:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Product page ---------- */

.breadcrumb { padding: 16px 0 8px; font-size: 13px; color: var(--fog); }
.breadcrumb a:hover { color: var(--ink); }

.gallery-main {
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--shell);
  margin: 0 calc(-1 * var(--pad));
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px 0; }
.thumbs button {
  width: 72px;
  height: 90px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.thumbs button.active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.product-info .badge { position: static; background: var(--shell); align-self: flex-start; }
.price { font-size: 18px; font-weight: 400; letter-spacing: .04em; }

.details { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.details .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.details .row span:first-child { color: var(--fog); }
.details .row span:last-child { text-align: right; }

.cta-note { text-align: center; font-size: 13px; color: var(--fog); }

/* accordions */
.accordion { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 20px;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 22px; color: var(--fog); transition: transform .25s; }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 18px; color: var(--fog); max-width: 60ch; }

/* ---------- Philosophy ---------- */

.phil-hero { height: 60vh; background-size: cover; background-position: center 15%; }
.phil-body { max-width: 680px; margin: 0 auto; }
.phil-body .overline { color: var(--fog); }
.phil-body h1 { margin: 16px 0 8px; }
.phil-body p { color: var(--fog); margin-top: 20px; }
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--sage);
  padding-left: 20px;
  margin: 32px 0;
}
.signature { margin-top: 28px; color: var(--ink); font-size: 13px; }
.phil-photo { margin-top: 48px; }
.phil-photo img { width: 100%; height: 340px; object-fit: cover; }

/* ---------- Info page (delivery) ---------- */

.info-blocks { display: flex; flex-direction: column; gap: 28px; padding: 24px 0; }
.info-block .overline { color: var(--sage); display: block; margin-bottom: 8px; }
.info-block p { color: var(--fog); max-width: 60ch; }

/* ---------- Contact ---------- */

.contact-form { display: flex; flex-direction: column; gap: 24px; padding: 20px 0; }
.field label { display: block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--fog); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 4px 0 10px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 90px; }

.ig-card { background: var(--shell); padding: 24px 20px; margin: 32px 0 48px; }
.ig-card .overline { color: var(--sage); }
.ig-card h3 { font-size: 22px; margin: 8px 0; }
.ig-card p { color: var(--fog); font-size: 13px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--deepsea);
  color: var(--white);
  padding: 48px 0 36px;
  margin-top: 24px;
}
.footer-inner { display: flex; flex-direction: column; gap: 28px; }
.site-footer .wordmark { font-size: 34px; color: var(--white); }
.site-footer .overline { color: var(--water); margin-top: 10px; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a { font-size: 14px; letter-spacing: .08em; }
.footer-nav a:hover { color: var(--water); }
.footer-divider { border: 0; border-top: 1px solid rgba(255,255,255,.25); width: 100%; margin: 0; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-meta .dim { color: var(--water); }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--sand);
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: .06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reserve modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(13, 23, 20, .45);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s;
}
.modal-overlay.show { opacity: 1; }
.modal {
  position: relative;
  background: var(--sand);
  width: 100%;
  max-width: 440px;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(12px);
  transition: transform .25s;
}
.modal-overlay.show .modal { transform: none; }
.modal .overline { color: var(--sage); }
.modal h3 { font-size: 24px; }
.modal-sub { font-size: 13px; }
.modal-close { position: absolute; top: 14px; right: 14px; font-size: 18px; }
.modal .contact-form { padding: 12px 0 0; gap: 20px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Tablet ≥ 768
   ============================================================ */
@media (min-width: 768px) {
  :root { --pad: 40px; }

  h1 { font-size: 44px; }
  h2 { font-size: 32px; }

  .hero-title { font-size: 52px; }

  .tiles { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tile { height: 340px; padding: 32px; }

  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 16px; }

  .grid-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }

  .manifesto { text-align: center; }
  .manifesto .quote { font-size: 28px; }
  .manifesto p.muted { margin-left: auto; margin-right: auto; max-width: 56ch; }

  .about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .about-teaser img { height: 420px; }
  .about-teaser .overline { margin-top: 0; }

  .ig-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }

  .gallery-main { margin: 0; }

  .product-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .product-info { padding-top: 12px; }

  .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
  .ig-card { margin: 0; padding: 36px 32px; }

  .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  .footer-brand { flex: 1 1 100%; }
  .footer-divider { order: 5; }
  .footer-meta { order: 6; }

  .filters { padding: 28px 0; }
  .drawer { display: none; }
  .header-nav { display: flex; gap: 32px; }
  .header-nav a { font-size: 14px; letter-spacing: .08em; }
  .header-nav a:hover { color: var(--fog); }
  .wordmark { font-size: 30px; }
  .menu-btn { display: none; }
  .header-inner { padding-top: 22px; padding-bottom: 22px; }
}

/* ============================================================
   Desktop ≥ 1080
   ============================================================ */
@media (min-width: 1080px) {
  :root { --pad: 60px; }

  .hero { min-height: 92vh; }
  .hero-title { font-size: 58px; max-width: 16ch; }
  .hero-content { padding-bottom: 64px; }

  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 48px 16px; }

  .section { padding-top: 88px; padding-bottom: 72px; }

  .tile { height: 420px; }

  .phil-hero { height: 70vh; }

  .site-footer { padding: 64px 0 48px; }
}
