/* mabels. — mabels.au
   Palette and wordmark from the mabels. Canva brand kit. */

@font-face {
  font-family: "Gilda Display";
  src: url("../fonts/gilda-display.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

:root {
  --maroon: #71271f;
  --maroon-deep: #5b1e18;
  --blue: #cee4f6;
  --blue-deep: #b9d6ee;
  --navy: #091927;
  --oat: #efe7da;
  --paper: #fbf8f3;
  --cream: #f6efe4;

  --display: "Gilda Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --max: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, address, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
section[id], [id="top"] { scroll-margin-top: 1.5rem; }

.sprite { position: absolute; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--maroon); color: var(--cream); padding: .75rem 1.1rem; border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; border-radius: 2px; }
.order :focus-visible, .site-footer :focus-visible, .order-bar :focus-visible { outline-color: var(--cream); }

/* Type */
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--maroon);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.7vw, 6.5rem); line-height: .97; }
h2 { font-size: clamp(2.25rem, 4.8vw, 4rem); line-height: 1.02; }
p { text-wrap: pretty; }
p a, li a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
p a:hover { text-decoration-thickness: 2px; }

/* Buttons: the capsule of the street sign */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 1rem/1.2 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid { background: var(--maroon); color: var(--cream); }
.btn-solid:hover { background: var(--maroon-deep); }
.btn-line { border-color: var(--maroon); color: var(--maroon); }
.btn-line:hover { background: var(--maroon); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--maroon); }
.btn-cream:hover { background: #fff; }
.btn-line-cream { border-color: var(--cream); color: var(--cream); }
.btn-line-cream:hover { background: var(--cream); color: var(--maroon); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.site-header { background: var(--blue); }
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.5rem;
}
.brand { color: var(--maroon); display: block; flex: none; padding-block: .5rem; }
.brand svg { width: clamp(7.5rem, 12vw, 9.5rem); height: auto; fill: currentColor; }
.primary ul { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.primary a {
  display: block; padding: .6rem 0; color: var(--maroon); text-decoration: none; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .35rem) / 0 1.5px no-repeat;
  transition: background-size .2s ease;
}
.primary a:hover { background-size: 100% 1.5px; }

/* Hero */
.hero { background: var(--blue); padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3.5rem, 6vw, 5.5rem); overflow: hidden; }
.hero-grid {
  display: grid; align-items: center; gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
}
.status {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem .45rem .8rem; border-radius: 999px;
  background: var(--paper); color: var(--navy);
  font-size: .9375rem; font-weight: 500; line-height: 1.3;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--maroon); flex: none; }
.status[data-state="open"] .status-dot { background: #2f7d4f; }
.status[data-state="closed"] .status-dot { background: #9a938a; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; max-width: 30em; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.hero .actions { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.hero-photo {
  justify-self: end; width: 100%; max-width: 30rem;
  aspect-ratio: 3 / 4.5; border-radius: 999px; overflow: hidden;
  background: var(--blue-deep);
}
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 38% 60%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-photo img { animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { clip-path: inset(18% 0 0 0 round 999px); opacity: 0; } to { clip-path: inset(0 round 999px); opacity: 1; } }
  @keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
}

/* About */
.about { padding-block: var(--section); }
.about-grid {
  display: grid; gap: clamp(2rem, 6vw, 6rem); align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.about-main { position: relative; min-width: 0; }
.about-main::before { content: ""; display: block; padding-top: 125%; }
.about-main picture { position: absolute; inset: 0; }
.about-main img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { padding-top: clamp(0rem, 3vw, 3rem); display: flex; flex-direction: column; }
.about-copy p { max-width: 32em; margin-top: 1.25rem; }
.about-copy h2 + p { margin-top: 1.75rem; }
.about-side { margin-top: auto; padding-top: clamp(2rem, 4vw, 3rem); width: min(100%, 17rem); }
.about-side img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 40% 50%; width: 100%; }

/* Section heads */
.section-head {
  display: grid; gap: 1.25rem clamp(2rem, 6vw, 6rem); align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { max-width: 32em; }

/* Menu */
.menu { background: var(--oat); padding-block: var(--section); }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.menu-col--wide { grid-column: span 2; }
.menu-col--wide ul { columns: 2; column-gap: clamp(1.5rem, 3vw, 3rem); }
.menu-col--wide li { break-inside: avoid; }
.menu-col h3 {
  font: 400 1.5rem/1.15 var(--display); color: var(--maroon);
  padding-bottom: 1rem; border-bottom: 1.5px solid var(--maroon);
}
.menu-col li { padding: .7rem 0; border-bottom: 1px solid rgba(113, 39, 31, .2); line-height: 1.35; }
.menu-col li span { display: block; font-size: .875rem; color: rgba(9, 25, 39, .72); margin-top: .15rem; }
.menu-note { margin-top: clamp(2rem, 4vw, 3rem); max-width: 44em; }

/* Taps */
.taps { padding-block: var(--section); }
.taps-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: stretch;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}
.taps-side { min-width: 0; display: flex; flex-direction: column; }
.ice-list { margin-top: clamp(2rem, 4vw, 3rem); }
.taps-copy p { margin-top: 1.5rem; max-width: 30em; }
.taps-photo { margin-top: clamp(1.75rem, 3vw, 2.5rem); flex: 1 1 auto; min-height: 18rem; position: relative; }
.taps-photo picture { position: absolute; inset: 0; }
.taps-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.tap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); }
.tap-card {
  container-type: inline-size;
  display: flex; flex-direction: column;
  aspect-ratio: 3 / 4.25;
  padding: 8% 8% 7%;
  border-radius: 1.1rem;
  background: #fbf3f1; color: var(--maroon);
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(9, 25, 39, .14), 0 18px 30px -18px rgba(9, 25, 39, .35);
}
.tap-card--maroon { background: var(--maroon); color: var(--cream); }
.tap-top { display: flex; justify-content: space-between; align-items: center; }
.tap-top svg { width: 38%; height: auto; fill: currentColor; }
.tap-top span, .tap-pill { font-size: clamp(.5rem, 4.2cqi, .7rem); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.tap-pill { align-self: flex-start; margin-top: 16%; padding: .2em .9em; border: 1px solid currentColor; border-radius: 999px; }
.tap-name { font: 400 clamp(1.5rem, 21cqi, 3.75rem)/.95 var(--display); margin-top: 7%; padding-bottom: 9%; border-bottom: 1px solid currentColor; }
.tap-desc { font-size: clamp(.75rem, 5.6cqi, .9375rem); margin-top: 6%; line-height: 1.3; }
.tap-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; }
.tap-no { font: 400 clamp(1.4rem, 17cqi, 3rem)/.8 var(--display); }
.tap-foot span:last-child { font-size: clamp(.5625rem, 4.6cqi, .75rem); line-height: 1.3; text-align: right; }

/* Order ahead */
.order { background: var(--maroon); color: var(--cream); padding-block: var(--section); }
.order h2 { color: var(--cream); }
.order-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: end;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
.order-copy p { max-width: 32em; margin-top: 1.5rem; }
.order .actions { margin-top: 2rem; }
.order-aside { border-top: 1px solid rgba(246, 239, 228, .45); padding-top: 1.5rem; }
.punch-title { font: 400 1.75rem/1.1 var(--display); margin-bottom: .75rem; }
.punch { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .4rem; margin-top: 1.5rem; max-width: 24rem; }
.punch li { aspect-ratio: 1; border-radius: 50%; background: var(--cream); }
.punch li.free {
  background: none; border: 1.5px dashed var(--cream);
  display: grid; place-items: center; font: 400 .9rem/1 var(--display);
}

/* Pantry */
.pantry { background: var(--blue); padding-block: var(--section); }
.pantry-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
.pantry-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem); align-items: start; }
.pantry-photos img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pantry-b { margin-top: clamp(2rem, 5vw, 4.5rem); }
.pantry-copy p { margin-top: 1.5rem; max-width: 30em; }

/* Visit */
.visit { padding-block: var(--section); }
.visit-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}
.visit address { font: 400 clamp(1.375rem, 2.2vw, 1.75rem)/1.3 var(--display); color: var(--navy); margin-top: 1.75rem; }
.visit .actions { margin-top: 1.75rem; }
.hours { width: 100%; max-width: 34rem; border-collapse: collapse; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.hours caption { text-align: left; font: 400 1.5rem/1.15 var(--display); color: var(--maroon); padding-bottom: 1rem; border-bottom: 1.5px solid var(--maroon); }
.hours th, .hours td { padding: .8rem 0; border-bottom: 1px solid rgba(113, 39, 31, .2); font-weight: 400; text-align: left; vertical-align: top; }
.hours td { text-align: right; white-space: nowrap; padding-left: 1rem; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 600; color: var(--maroon); }
.hours tr.today th::after { content: "today"; margin-left: .6rem; padding: .1rem .55rem; border-radius: 999px; background: var(--blue); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.good-to-know { margin-top: 2rem; max-width: 34rem; display: grid; gap: .5rem; }
.good-to-know li { padding-left: 1.4rem; position: relative; }
.good-to-know li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--maroon); }
.visit-photo img { width: 100%; }

/* Hire */
.hire { background: var(--oat); padding-block: var(--section); }
.hire-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.hire-list a {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper); color: var(--navy); text-decoration: none;
  border-radius: 1.1rem; border: 1.5px solid transparent;
  transition: border-color .18s ease;
}
.hire-list a:hover { border-color: var(--maroon); }
.hire-name { font: 400 clamp(1.625rem, 2.6vw, 2.125rem)/1.1 var(--display); color: var(--maroon); }
.hire-desc { margin-top: .9rem; max-width: 30em; }
.hire-go { margin-top: auto; padding-top: 1.75rem; color: var(--maroon); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }

/* Instagram */
.social { padding-block: var(--section) clamp(3rem, 6vw, 5rem); }
.social-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 1.2vw, 1rem); }
.social-grid a { display: block; overflow: hidden; }
.social-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .5s ease; }
.social-grid a:hover img { transform: scale(1.03); }

/* Work */
.work { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.work-row {
  display: grid; gap: 1.25rem clamp(2rem, 6vw, 6rem); align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.work-row h2 { padding-top: 2rem; border-top: 1.5px solid var(--maroon); }
.work-row p { padding-top: 2rem; border-top: 1.5px solid var(--maroon); max-width: none; }

/* Footer */
.site-footer { background: var(--maroon); color: var(--cream); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.footer-mark svg { width: min(100%, 26rem); height: auto; fill: var(--cream); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid h2 { font: 500 .9375rem/1.3 var(--text); letter-spacing: 0; color: var(--cream); opacity: .7; margin-bottom: .6rem; }
.footer-grid p:first-of-type { margin-top: 1.2rem; }
.footer-grid p + p { margin-top: 1rem; }
.footer-grid a { display: inline-block; padding: .6rem 0; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: .25em; }
.ack { margin-top: clamp(3rem, 6vw, 5rem); max-width: 44em; font-size: .9375rem; opacity: .8; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(246, 239, 228, .3);
  font-size: .875rem;
}
.footer-base > p:first-child { opacity: .8; }
.ever { display: inline-flex; align-items: baseline; gap: .45em; opacity: .8; }
.ever svg { height: .95em; width: auto; fill: currentColor; transform: translateY(.27em); }

/* Mobile order bar */
.order-bar {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: var(--maroon); color: var(--cream);
  font-size: .9375rem; font-weight: 500; line-height: 1.3;
  transform: translateY(110%); transition: transform .28s ease;
}
.order-bar[hidden] { display: none !important; }
.order-bar.is-on { transform: none; }
.order-bar .btn { min-height: 2.75rem; padding-inline: 1.25rem; flex: none; }

/* Tablet */
@media (max-width: 64rem) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .taps-grid { grid-template-columns: minmax(0, 1fr); }
  .taps-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(2rem, 6vw, 6rem); grid-template-rows: auto 1fr; align-items: start; }
  .taps-copy h2, .taps-copy p { grid-column: 1; }
  .ice-list { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .taps-photo { flex: none; min-height: 0; }
  .taps-photo picture { position: static; }
  .taps-photo img { height: auto; aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 56rem) {
  .pantry-grid { grid-template-columns: minmax(0, 1fr); }
  .pantry-copy { order: -1; }
}

/* Phone */
@media (max-width: 47.99rem) {
  body { font-size: 1rem; }
  h1 { font-size: min(13vw, 3.5rem); }
  .header-row { flex-wrap: wrap; padding-block: 1.1rem .4rem; gap: .5rem 1rem; }
  .header-cta { min-height: 2.75rem; padding-inline: 1.2rem; }
  .primary { order: 3; flex: 0 0 100%; border-top: 1px solid rgba(113, 39, 31, .25); margin-top: .6rem; }
  .primary ul { justify-content: space-between; gap: .5rem; }
  .primary a { padding: .8rem 0; font-size: .9375rem; }

  .hero-grid, .about-grid, .section-head, .order-grid, .pantry-grid, .visit-grid, .work-row { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .hero-photo { justify-self: center; max-width: 19rem; }
  .about-copy { padding-top: 0; }
  .about-side { display: none; }
  .taps-copy { display: block; }
  .ice-list { margin-top: 2rem; }
  .taps-photo { margin-top: 0; }
  .taps-photo img { aspect-ratio: 4 / 3; }
  .tap-cards { grid-template-columns: repeat(3, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 2rem; gap: 1.25rem; scrollbar-width: none; }
  .tap-cards::-webkit-scrollbar { display: none; }
  .tap-card { scroll-snap-align: center; }
  .pantry-copy { order: -1; }
  .visit-photo { order: -1; }
  .visit-photo img { aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 62%; }
  .hire-list { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .work-row p { padding-top: 0; border-top: 0; }
  .actions .btn { flex: 1 1 auto; }
  .order-bar { display: flex; }
  body.has-bar { padding-bottom: 4.5rem; }
}
@media (max-width: 30rem) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-col--wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .order-bar, .btn, .primary a, .social-grid img { transition: none; }
}

@media print {
  .site-header nav, .header-cta, .order-bar, .social, .actions { display: none !important; }
  body { background: #fff; }
}

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; background: var(--blue); display: grid; place-items: center; padding: var(--gutter); }
.lost-inner { max-width: 34rem; }
.lost .brand svg { width: 9rem; }
.lost h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); margin-top: 3rem; }
.lost p { margin-top: 1.5rem; font-size: 1.125rem; }
.lost .actions { margin-top: 2rem; }
