/* Sorrel — 417 Roncesvalles Avenue, Toronto
   Palette sampled from the client's own material:
     ground  #F4F3F0  the white walls, in daylight
     ink     #18191D  the black shopfront fascia
     kraft   #A58D6C  the takeaway cup
     indigo  #2E345C  the blue in the counter tile
   Type: Cormorant Garamond (the wordmark is a Garamond) + Instrument Sans for everything small. */

:root {
  --ground: #F4F3F0;
  --ink: #18191D;
  --ink-soft: rgba(24, 25, 29, 0.62);
  --ink-mute: rgba(24, 25, 29, 0.46);
  --hair: rgba(24, 25, 29, 0.14);
  --hair-strong: rgba(24, 25, 29, 0.32);
  --kraft: #A58D6C;
  --kraft-hair: rgba(24, 25, 29, 0.22);
  --indigo: #2E345C;
  --indigo-2: #232848;
  --white: #F7F6F3;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --max: 1440px;
  --pad: 22px;
  --top-h: 72px;
}
@media (min-width: 720px) { :root { --pad: 40px; } }
@media (min-width: 1100px) { :root { --pad: 56px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

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

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.012em;
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  font-size: 14px; font-weight: 500; line-height: 20px;
  color: var(--white); background: var(--ink);
  white-space: nowrap;
  transition: background 0.3s var(--ease);
}
.btn--indigo { background: var(--indigo); }
.btn--indigo:hover { background: var(--indigo-2); }
.btn--wide { justify-content: space-between; width: 100%; }
.btn__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--white);
}
.btn__arrow svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease); }
.btn--indigo .btn__arrow svg { stroke: var(--indigo); }
.btn:hover .btn__arrow svg { transform: rotate(-45deg); }

/* text roll: two stacked copies, slide up one line on hover */
.roll { display: block; height: 20px; overflow: hidden; }
.roll__in { display: flex; flex-direction: column; transition: transform 0.5s var(--ease); }
.roll__in > span { display: block; height: 20px; line-height: 20px; }
.btn:hover .roll__in { transform: translateY(-50%); }

.tlink {
  font-size: 14px; font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hair-strong);
  transition: border-color 0.3s var(--ease);
}
.tlink:hover { border-color: var(--ink); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 243, 240, 0.94);
  border-bottom: 1px solid var(--hair);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: var(--top-h); }
.top__left { display: flex; align-items: center; gap: 44px; }
.brand img { height: 46px; width: auto; }
.top__links { display: none; gap: 30px; font-size: 14px; font-weight: 500; }
.top__links a { color: var(--ink-soft); transition: color 0.3s var(--ease); }
.top__links a:hover { color: var(--ink); }
.top__right { display: none; align-items: center; gap: 22px; }
.top__note { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.top__menu {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--ink); border: 0; cursor: pointer;
}
.top__menu svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; }
@media (min-width: 900px) {
  .top__links, .top__right { display: flex; }
  .top__menu { display: none; }
}
@media (max-width: 1140px) { .top__note { display: none; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; }
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px var(--pad) 56px;
}
.hero__logo { width: min(400px, 74%); }
.hero__tag {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(27px, 2.5vw, 36px); line-height: 1.1;
  margin: 34px 0 0;
}
.hero__lede {
  font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55;
  max-width: 42ch;
  margin: 22px 0 0;
}
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.hero__photo {
  position: relative; overflow: hidden;
  background: #C9CFD8;
  aspect-ratio: 4 / 5;
}
.hero__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 55fr 45fr; min-height: calc(100vh - var(--top-h)); }
  .hero__copy {
    padding-top: 72px; padding-bottom: 80px;
    padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
    padding-right: clamp(40px, 6vw, 96px);
  }
  .hero__photo { aspect-ratio: auto; height: 100%; }
}

/* one orchestrated moment on load; nothing else on the page animates in */
.hero__copy > * { opacity: 0; transform: translateY(16px); animation: rise 0.9s var(--ease) forwards; }
.hero__copy > :nth-child(1) { animation-delay: 0.1s; }
.hero__copy > :nth-child(2) { animation-delay: 0.28s; }
.hero__copy > :nth-child(3) { animation-delay: 0.42s; }
.hero__copy > :nth-child(4) { animation-delay: 0.56s; }
.hero__photo { clip-path: inset(0 0 0 100%); animation: unclip 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards; }
.hero__photo img { transform: scale(1.06); animation: settle 1.9s var(--ease) 0.25s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unclip { to { clip-path: inset(0); } }
@keyframes settle { to { transform: none; } }

/* ---------- colophon strip ---------- */
.colophon { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.colophon__in { display: grid; grid-template-columns: 1fr; }
.colophon__cell {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
}
.colophon__cell:first-child { border-top: 0; }
.colophon__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--ink-mute); }
.colophon__value { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
a.colophon__value:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) {
  .colophon__in { grid-template-columns: 1.25fr 1fr 1fr; }
  .colophon__cell { border-top: 0; border-left: 1px solid var(--hair); padding: 22px 28px; }
  .colophon__cell:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- menu board, on kraft like the cup ---------- */
.board { background: var(--kraft); color: var(--ink); padding: clamp(72px, 9vw, 128px) 0; }
.board__head {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-right: 0;
}
.board__sub { font-size: 15px; line-height: 1.5; max-width: 40ch; margin: 0; color: rgba(24, 25, 29, 0.72); }
.board__mark { display: none; }
@media (min-width: 900px) {
  .board__head { grid-template-columns: 7fr 5fr; gap: 40px; padding-right: 160px; }
  .board__sub { justify-self: start; }
  .board__mark { display: block; position: absolute; right: 0; top: -6px; width: 118px; }
}
.group {
  display: grid; grid-template-columns: 1fr; gap: 14px 48px;
  padding: 36px 0;
  border-top: 1px solid var(--kraft-hair);
}
.group:last-child { border-bottom: 1px solid var(--kraft-hair); }
.group__name { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 3.6vw, 50px); line-height: 1; margin: 0; }
.group__note { font-size: 13px; line-height: 1.5; color: rgba(24, 25, 29, 0.62); margin: 10px 0 0; max-width: 30ch; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 48px; }
.item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--kraft-hair);
}
.item__name { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.15; }
.item__tag { font-size: 13px; line-height: 1.4; color: rgba(24, 25, 29, 0.7); text-align: right; }
.item--wide { flex-direction: column; align-items: flex-start; gap: 4px; }
.item--wide .item__tag { text-align: left; max-width: 46ch; }
@media (min-width: 720px) {
  .items { grid-template-columns: 1fr 1fr; }
  .item--wide { grid-column: 1 / -1; flex-direction: row; align-items: baseline; }
  .item--wide .item__tag { text-align: right; }
}
@media (min-width: 900px) {
  .group { grid-template-columns: 4fr 8fr; padding: 52px 0; }
}

/* ---------- photo pair ---------- */
.pair { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 6px 0 0; }
.pair__fig img { width: 100%; height: clamp(360px, 92vw, 520px); object-fit: cover; }
.pair__fig figcaption { font-size: 13px; color: var(--ink-soft); padding: 14px var(--pad) 8px; }
@media (min-width: 720px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .pair__fig img { height: clamp(460px, 80vh, 840px); }
  .pair__fig:first-child figcaption { padding-left: var(--pad); }
  .pair__fig:last-child figcaption { padding-left: 20px; }
}
.pair__fig:first-child img { object-position: 50% 45%; }
.pair__fig:last-child img { object-position: 50% 55%; }

/* ---------- the room ---------- */
.room { padding: clamp(80px, 10vw, 150px) 0; }
.room__in { display: grid; grid-template-columns: 1fr; gap: 44px; }
.room__big img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.room__col { display: flex; flex-direction: column; }
.room__copy .h2 { margin-bottom: 30px; }
.room__copy p { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; margin: 0 0 1.1em; max-width: 44ch; }
.room__small { margin: 16px 0 0 auto; width: min(100%, 340px); }
.room__small img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 900px) {
  .room__in { grid-template-columns: 7fr 5fr; gap: 72px; }
  .room__col { padding-top: 12px; }
  .room__small { margin-top: auto; padding-top: 48px; }
}

/* ---------- photo strip ---------- */
.strip { overflow: hidden; padding: 0 0 clamp(80px, 10vw, 150px); }
.strip__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 20px; }
.strip__title { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1; }
.strip__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.strip__track { display: flex; width: max-content; animation: slide 90s linear infinite; }
.strip__track:hover { animation-play-state: paused; }
.strip__track img { width: 200px; height: 250px; object-fit: cover; flex: none; margin-right: 12px; }
@media (min-width: 720px) { .strip__track img { width: 236px; height: 295px; margin-right: 14px; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- visit ---------- */
.visit { border-top: 1px solid var(--hair); padding: clamp(80px, 10vw, 150px) 0; }
.visit__in { display: grid; grid-template-columns: 1fr; gap: 48px; }
.visit__facts { margin: 40px 0 0; max-width: 560px; }
.fact {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--hair);
  font-size: 15px; line-height: 1.5;
}
.fact:last-child { border-bottom: 1px solid var(--hair); }
.fact dt { color: var(--ink-mute); margin: 0; }
.fact dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.fact dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.visit__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.visit__photo { width: min(100%, 320px); }
.visit__photo figcaption { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-top: 12px; max-width: 30ch; }
@media (min-width: 900px) {
  .visit__in { grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; }
  .visit__photo { justify-self: end; }
}

/* ---------- footer: the black fascia ---------- */
.foot { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.foot__in { position: relative; z-index: 2; padding-top: clamp(64px, 7vw, 96px); }
.foot__top {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247, 246, 243, 0.12);
}
.foot__brandcol p { font-family: var(--serif); font-style: italic; font-size: 22px; margin: 18px 0 0; color: rgba(247, 246, 243, 0.8); }
.foot__logo { width: 150px; }
.foot__col h3 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: rgba(247, 246, 243, 0.5); margin: 0 0 14px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: rgba(247, 246, 243, 0.82); }
.foot__col a { transition: color 0.3s var(--ease); }
.foot__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .foot__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; } }
.foot__word {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(110px, 23vw, 350px); line-height: 0.78; letter-spacing: -0.02em;
  color: rgba(247, 246, 243, 0.06);
  padding-top: 44px;
  white-space: nowrap; user-select: none; pointer-events: none;
}
.foot__bottom {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 22px 0 28px;
  font-size: 13px; color: rgba(247, 246, 243, 0.5);
}

/* ---------- mobile sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(24, 25, 29, 0.6); }
.sheet__panel {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--ground);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
  animation: sheetUp 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet__panel > a:not(.btn) { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 40px; }
.sheet__panel .btn { margin-top: 18px; }
@keyframes sheetUp { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy > *, .hero__photo, .hero__photo img { animation: none; opacity: 1; transform: none; clip-path: none; }
  .strip__track { animation: none; }
  .roll__in, .btn__arrow svg, .tlink { transition: none; }
  .sheet__panel { animation: none; }
}
