/* Atelier Nori: the first screen is composed for a 1440 x 852 viewport (the
   coverflow preview); the rest of the page and the phone layout follow it. */

:root {
  --ivory: #f7f2eb;
  --paper: #fbf8f3;
  --blush: #ecdcd2;
  --blush-deep: #d9bfb2;
  --plum: #34232e;
  --plum-soft: #5d4a55;
  --muted: #85747c;
  --sage: #7f8b72;
  --rule: rgba(52, 35, 46, 0.14);
  --rule-strong: rgba(52, 35, 46, 0.26);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: 48px;
  --announce-h: 36px;
  --header-h: 84px;
  --rail-h: 184px;
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--plum);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--plum-soft); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }
img { display: block; max-width: 100%; }

/* Announcement bar */
.announce {
  height: var(--announce-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: var(--plum);
  color: #efe5dc;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.announce__main { color: #fbf5ee; }
.announce__side { color: rgba(239, 229, 220, 0.62); }
.announce__side--end { text-align: right; }

/* Header */
.header {
  position: relative;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--ivory);
}

.nav, .tools {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav a, .tools a { color: var(--plum-soft); white-space: nowrap; }
.nav a.is-current { color: var(--plum); box-shadow: inset 0 -1px 0 var(--plum); padding-bottom: 2px; }
.tools { justify-content: flex-end; gap: 28px; }
.tools__search { display: inline-flex; align-items: center; gap: 8px; }
.tools__bag { display: inline-flex; align-items: center; gap: 8px; color: var(--plum) !important; }
.tools__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1;
}
.tools__count.is-bump { animation: bump 0.45s cubic-bezier(0.2, 0.7, 0.1, 1); }
@keyframes bump { 40% { transform: scale(1.35); background: var(--blush); } }

.menu-toggle { display: none; }

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.logo__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-right: -0.26em; /* optically re-centre tracked caps */
}
.logo__sub {
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: -0.32em;
}

/* Hero */
.hero {
  /* fills what the announcement, header and rail leave of the first screen */
  height: clamp(460px, calc(100svh - var(--studio-bar-h, 0px) - var(--announce-h) - var(--header-h) - var(--rail-h)), 820px);
  display: grid;
  grid-template-columns: 600px 1fr;
  border-bottom: 1px solid var(--rule);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  padding: 66px 64px 0 var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum-soft);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--plum-soft);
}

.hero__title {
  margin-top: 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--plum);
}
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: #6b4a5a;
}

.hero__lede {
  margin-top: 24px;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--plum-soft);
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 32px;
  background: var(--plum);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule-strong);
}
.link--small { font-size: 11px; }

.hero__notes {
  margin-top: auto;
  margin-right: -64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.hero__notes li {
  padding: 18px 16px 24px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.hero__notes li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.hero__notes span {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: #8c7c7c;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.hero__tag {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 16px 12px;
  background: rgba(251, 248, 243, 0.94);
  font-size: 12.5px;
  color: var(--plum);
}
.hero__tag-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__tag a { font-family: var(--serif); font-size: 17px; font-style: italic; }
.hero__tag-price { letter-spacing: 0.04em; }

/* Product rail */
.rail {
  height: var(--rail-h);
  display: grid;
  grid-template-columns: 268px repeat(4, 1fr);
  padding: 0 0 0 var(--gutter);
}

.rail__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding-right: 32px;
}
.rail__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.rail__title em { display: block; font-style: italic; color: #6b4a5a; }

.card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-left: 1px solid var(--rule);
}
.card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ebe7e2;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__tag {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.card__name {
  margin-top: 4px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.1;
}
.card__meta {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}
.card__price {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

/* Narrower desktop windows (the preview itself is 1440 wide) */
@media (max-width: 1360px) {
  :root { --gutter: 36px; }
  .announce__side { display: none; }
  .announce { grid-template-columns: 1fr; text-align: center; }
  .nav { gap: 22px; }
  .nav a:nth-child(3) { display: none; }
  .tools { gap: 22px; }
  .hero { grid-template-columns: 520px 1fr; }
  .hero__copy { padding-right: 48px; }
  .hero__notes { margin-right: -48px; }
  .hero__title { font-size: 60px; }
  .hero__notes li { font-size: 12px; }
  .rail { grid-template-columns: 210px repeat(4, 1fr); }
  .rail__title { font-size: 28px; }
  .card { grid-template-columns: 80px 1fr; gap: 14px; padding: 0 16px; }
  .card__name { font-size: 17px; }
  .card__meta { font-size: 11px; }
}

/* Below the first screen */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.section-head > p { max-width: 400px; color: var(--plum-soft); font-size: 15px; font-weight: 300; line-height: 1.65; }
.section-head h2,
.sameday h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head h2 em,
.sameday h2 em { font-style: italic; color: #6b4a5a; }

/* Shop */
.shop { padding: 112px var(--gutter) 120px; }
.shop__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  margin-top: 56px;
}
.product__media { aspect-ratio: 4 / 5; overflow: hidden; background: #ebe7e2; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1); }
.product:hover .product__media img { transform: scale(1.03); }
.product__tag {
  margin-top: 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.product__name { margin-top: 6px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.product__meta { margin-top: 4px; color: var(--muted); font-size: 13px; }
.product__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  letter-spacing: 0.03em;
}
.product__add {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Same day */
.sameday {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 96px;
  padding: 112px var(--gutter);
  background: var(--blush);
}
.sameday__copy { max-width: 560px; }
.sameday__clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 16px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.sameday__clock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.sameday__copy p:not([class]) { max-width: 460px; margin-top: 22px; color: var(--plum-soft); font-size: 15px; font-weight: 300; line-height: 1.65; }
.sameday__copy .btn { margin-top: 32px; }
.sameday__zones { border-top: 1px solid var(--rule-strong); }
.sameday__zones div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.sameday__zones dt { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.sameday__zones dd { color: var(--plum-soft); font-size: 14px; letter-spacing: 0.02em; }

/* Weddings & events */
.events { padding: 112px var(--gutter) 120px; }
.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 56px 0 44px;
}
.events__grid article { display: flex; flex-direction: column; padding: 32px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.events__grid h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; font-style: italic; color: #6b4a5a; }
.events__grid p:not([class]) { margin-top: 12px; color: var(--plum-soft); font-size: 14.5px; font-weight: 300; line-height: 1.65; }
.events__price {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Workshops */
.workshops { padding: 0 var(--gutter) 120px; }
.workshops .section-head { padding-top: 96px; border-top: 1px solid var(--rule); }
.classes { margin-top: 48px; border-top: 1px solid var(--plum); }
.classes li {
  display: grid;
  grid-template-columns: 160px 1fr 160px 120px 120px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.classes time { font-family: var(--serif); font-size: 24px; font-style: italic; }
.classes h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.classes__what p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.classes__seats { color: var(--sage); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.classes__price { font-size: 14px; letter-spacing: 0.03em; }
.classes__book {
  height: 44px;
  background: var(--plum);
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.classes li.is-full { color: var(--muted); }
.classes li.is-full .classes__seats { color: var(--muted); }
.classes__book:disabled { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--muted); cursor: default; }

/* Footer */
.footer { padding: 72px var(--gutter) 40px; background: var(--plum); color: #efe5dc; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(239, 229, 220, 0.14);
}
.footer .logo__name { display: inline-block; font-size: 30px; color: #fbf5ee; }
.footer__brand p { margin-top: 16px; color: rgba(239, 229, 220, 0.66); font-size: 14px; font-weight: 300; }
.footer__links { display: grid; gap: 12px; align-content: start; font-size: 14px; }
.footer__links a:hover { color: #fbf5ee; text-decoration: underline; text-underline-offset: 5px; }
.footer__visit h2 { color: rgba(239, 229, 220, 0.6); font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; }
.footer__visit p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.footer__fine { margin-top: 28px; color: rgba(239, 229, 220, 0.5); font-size: 12.5px; font-weight: 300; }

@media (max-width: 1100px) {
  .shop__grid { grid-template-columns: repeat(2, 1fr); }
  .sameday { gap: 56px; }
  .classes li { grid-template-columns: 130px 1fr 130px 100px 100px; gap: 16px; }
}

/* Tablet and phone: one column, everything reflows */
@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .announce { height: auto; display: block; padding: 9px var(--gutter); text-align: center; line-height: 1.6; }

  .header { height: 68px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: 13px; letter-spacing: 0.04em; }
  .menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
  .menu-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform 0.3s; }
  .is-open .menu-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .is-open .menu-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -28px rgba(52, 35, 46, 0.4);
    font-size: 17px;
  }
  .is-open .nav { display: flex; }
  .nav a, .nav a:nth-child(3) { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav a.is-current { box-shadow: none; padding-bottom: 14px; }
  .tools__search, .tools__account { display: none; }
  .logo__name { font-size: 21px; }
  .logo__sub { font-size: 8px; letter-spacing: 0.24em; margin-right: -0.24em; }

  .hero { height: auto; grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 4 / 3; }
  .hero__tag { right: 12px; bottom: 12px; padding: 9px 12px; gap: 10px; }
  .hero__copy { padding: 36px var(--gutter) 0; }
  .hero__title { margin-top: 20px; font-size: 48px; }
  .hero__lede { margin-top: 20px; }
  .hero__actions { flex-wrap: wrap; gap: 20px 28px; }
  .hero__notes { margin: 36px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); grid-template-columns: 1fr; }
  .hero__notes li, .hero__notes li + li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .hero__notes li:first-child { border-top: 0; }
  .hero__notes span { margin: 0; }

  /* the shop grid right below shows the same four, larger */
  .rail { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head h2, .sameday h2 { font-size: 42px; }
  .shop, .events { padding: 72px var(--gutter) 80px; }
  .shop__grid { gap: 32px 12px; margin-top: 36px; }
  .product__name { font-size: 21px; }
  .product__row { flex-direction: column; gap: 8px; }

  .sameday { grid-template-columns: 1fr; gap: 40px; padding: 72px var(--gutter); }
  .sameday__clock { font-size: 13px; }
  .sameday__zones dt { font-size: 21px; }
  .sameday__zones dd { font-size: 13px; text-align: right; }

  .events__grid { grid-template-columns: 1fr; margin: 36px 0 32px; }
  .events__grid article { padding: 24px; }

  .workshops { padding: 0 var(--gutter) 80px; }
  .workshops .section-head { padding-top: 72px; }
  .classes { margin-top: 32px; }
  .classes li { grid-template-columns: 1fr auto; grid-template-areas: "time price" "what what" "seats book"; gap: 8px 16px; }
  .classes time { grid-area: time; font-size: 20px; }
  .classes__what { grid-area: what; }
  .classes__seats { grid-area: seats; }
  .classes__price { grid-area: price; text-align: right; }
  .classes__book { grid-area: book; min-width: 120px; padding: 0 24px; }

  .footer { padding: 56px var(--gutter) 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding-bottom: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .menu-toggle__label { display: none; }
  .hero__title { font-size: 44px; }
}
