:root {
  --orange: #f2a52b;
  --paper: #62605e;
  --white: #f8f6f7;
  --ink: #171513;
  --page-pad: 7.99%;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --utility-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background-color: var(--paper);
  background-image: url("assets/optimized/texture-1254.webp");
  background-repeat: repeat;
  background-size: 1254px 1254px;
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--orange);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background-color: var(--paper);
  background-image: url("assets/optimized/texture-1254.webp");
  background-repeat: repeat;
  background-size: 1254px 1254px;
}

.contact-strip {
  position: relative;
  min-height: 31px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--orange);
  font-family: var(--utility-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.contact-hours {
  position: absolute;
  top: 50%;
  left: 50%;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.site-header {
  height: 123px;
  padding: 0 10.48% 0 5.24%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  width: 245px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 59px;
  font-size: 19px;
  font-weight: 500;
}

.primary-nav a {
  padding: 12px 0;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--orange);
  transform: translateY(-1px);
  outline: none;
}

.nav-toggle {
  display: none;
}

.hero-image-wrap {
  position: relative;
  width: calc(100% - 80px);
  margin: 0 40px;
  aspect-ratio: 1727 / 910;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 900ms ease-in-out;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-slide--front .hero-image {
  object-position: center 20%;
}

.hero-slide--inside .hero-image {
  object-position: 50% 52%;
}

.hero-slide--food .hero-image {
  object-position: 50% 35%;
}

.hero-slide--coffee .hero-image {
  object-position: 50% 48%;
}

.welcome-grid {
  min-height: 196px;
  margin: 0 var(--page-pad);
  padding-top: 30px;
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 102px;
}

.welcome-title-wrap {
  position: relative;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.menu-group h3 {
  font-weight: 400;
  font-style: italic;
}

h1 {
  margin: 0;
  font-size: 49px;
  line-height: 1.18;
  letter-spacing: 0.008em;
}

.welcome-grid > p {
  margin: 18px 0 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.005em;
}

mark,
.highlight {
  position: relative;
  z-index: 0;
  color: inherit;
  background: none;
  white-space: nowrap;
}

mark::before,
.highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5px;
  right: -7px;
  bottom: 0.07em;
  height: 0.48em;
  background: var(--orange);
}

.flower-motif {
  position: absolute;
  top: 50px;
  left: 235px;
  width: 190px;
  height: 128px;
}

.flower {
  position: absolute;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.flower-white {
  z-index: 0;
  top: 6px;
  left: 10px;
  width: 140px;
  filter: grayscale(1) brightness(0) invert(1);
}

.flower-orange {
  z-index: 1;
  top: 0;
  left: 0;
  width: 180px;
}

.chalk-line {
  width: calc(100% - 188px);
  height: 32px;
  margin: 0 auto;
  background-image: url("assets/13-casa-cafe-web-home-section-break-chalk-line.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.menu-section,
.origins-section,
.visit-section {
  position: relative;
}

.menu-section {
  padding: 0 var(--page-pad);
}

h2 {
  margin-bottom: 0;
  font-size: 43px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.menu-section > h2 {
  padding-top: 11px;
}

.menu-grid {
  min-height: 740px;
  margin-top: -4px;
  display: grid;
  grid-template-columns: 350px 385px minmax(0, 1fr);
  column-gap: 76px;
}

.menu-photo-wrap {
  position: relative;
  width: 344px;
  height: 460px;
  margin-top: 78px;
  overflow: hidden;
}

.menu-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-slide {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 900ms ease-in-out;
}

.menu-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.menu-photo.menu-slide--coffee {
  object-position: 50% 50%;
}

.menu-photo.menu-slide--food {
  object-position: 50% 50%;
}

.menu-photo.menu-slide--breakfast {
  top: -2%;
  height: 104%;
  object-position: 50% 50%;
}

.menu-photo.menu-slide--avocado {
  object-position: 50% 50%;
}

.menu-column {
  min-width: 0;
}

.menu-group h3 {
  margin: 0 0 50px;
  font-size: 35px;
  line-height: 1.1;
}

.menu-list {
  display: grid;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.42;
}

.menu-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
}

.menu-list > div > span:last-child {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.menu-group-lower {
  margin-top: 56px;
}

.menu-group-lower h3 {
  margin-bottom: 51px;
}

@media (min-width: 821px) {
  .menu-column-right .menu-group-lower {
    margin-top: 85px;
  }
}

@media (min-width: 1121px) {
  .menu-column {
    display: grid;
    grid-template-rows: 343px max-content;
    align-content: start;
  }

  .menu-group-lower,
  .menu-column-right .menu-group-lower {
    margin-top: 0;
  }

  .menu-button {
    justify-self: start;
  }
}

.menu-button {
  display: inline-block;
  margin-top: 65px;
  padding: 4px 5px 3px;
  color: var(--white);
  background: var(--orange);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.menu-button:hover,
.menu-button:focus-visible {
  color: var(--ink);
  background: #ffb842;
  transform: translateY(-2px);
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.cup-motif {
  position: absolute;
  right: 2.8%;
  bottom: 25px;
  width: 241px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.menu-section > .chalk-line {
  width: 100%;
  margin-top: 40px;
}

.origins-section {
  padding: 0 var(--page-pad);
}

.origins-title-row {
  padding-top: 25px;
  display: flex;
  align-items: center;
}

.origins-title-row h2 {
  flex: 0 1 auto;
}

.bean-motif {
  width: 176px;
  height: auto;
  object-fit: contain;
  margin: -3px 0 0 18px;
}

.origins-intro {
  margin: 20px 0 0;
  max-width: 780px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.origin-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.origin-card {
  min-width: 0;
  text-align: center;
}

.origin-image-wrap {
  height: 349px;
  overflow: hidden;
}

.origin-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-card h3 {
  margin: 18px 0 15px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.2;
}

.origin-card > p:not(.flavour) {
  min-height: 70px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.62;
}

.origin-card .flavour {
  margin: 11px 0 0;
  color: var(--orange);
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
}

.origins-section > .chalk-line {
  width: 100%;
  margin-top: 72px;
}

.visit-section {
  min-height: 0;
  padding: 18px var(--page-pad) 36px;
}

.visit-grid {
  margin-top: 58px;
  width: min(87%, 1402px);
  display: grid;
  grid-template-columns: 46.36% 49.72%;
  column-gap: 3.92%;
  align-items: stretch;
}

.map-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e9e6df;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.visit-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.visit-info {
  max-width: 780px;
  color: var(--white);
  font-family: var(--utility-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}

.visit-info p {
  margin: 0 0 10px;
}

.visit-info ul {
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: 4px;
}

.visit-photo {
  width: 100%;
  height: auto;
  max-width: none;
  margin-top: 0;
}

.lady-motif {
  position: absolute;
  right: 5.2%;
  bottom: 8px;
  width: 176px;
  height: auto;
  object-fit: contain;
  transform: scaleX(-1);
  transform-origin: center;
}

.site-footer {
  min-height: 312px;
  padding: 38px var(--page-pad) 60px;
  display: grid;
  grid-template-columns: 770px minmax(0, 1fr);
  gap: 80px;
  color: var(--ink);
  background: var(--orange);
  font-family: var(--utility-serif);
  font-size: 17px;
  font-weight: 400;
}

.footer-social {
  position: relative;
  min-width: 0;
}

.social-row {
  display: flex;
  align-items: flex-start;
  gap: 23px;
}

.social-row > p {
  margin: 4px 0 0;
}

.social-icons {
  display: flex;
  gap: 0;
}

.social-icons .social-link {
  width: 50px;
  height: 50px;
  display: block;
}

.social-icons a.social-link {
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.social-icons a.social-link:hover {
  opacity: 0.72;
  transform: translateY(-2px);
}

.social-icons a.social-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.social-icons .social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-dog-motif {
  position: absolute;
  left: 75px;
  bottom: -40px;
  width: 255px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.footer-details {
  padding-left: 0;
}

.footer-details p {
  margin: 0 0 12px;
}

.footer-details .hours {
  margin-bottom: 49px;
}

.copyright-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: #11100f;
  font-family: var(--utility-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.copyright-bar p {
  margin: 0;
}

@media (min-width: 1121px) {
  .hero-image-wrap {
    height: clamp(540px, 65vh, 620px);
    aspect-ratio: auto;
  }

  .hero-image {
    object-position: center center;
  }
}

@media (min-width: 1441px) {
  .welcome-grid {
    grid-template-columns: 35.54% 56.03%;
    gap: 8.43%;
  }

  .menu-grid {
    grid-template-columns: 28.93% 31.82% 26.69%;
    column-gap: 6.28%;
  }

  .menu-photo-wrap {
    width: 98.29%;
    height: auto;
    aspect-ratio: 344 / 460;
  }

  .origin-image-wrap {
    height: auto;
    aspect-ratio: 288 / 349;
  }

  .site-footer {
    grid-template-columns: 63.64% minmax(0, 1fr);
    gap: 6.61%;
  }
}

@media (max-width: 1120px) {
  :root {
    --page-pad: 6%;
  }

  .menu-grid {
    grid-template-columns: 300px repeat(2, minmax(0, 1fr));
    column-gap: 42px;
  }

  .menu-photo-wrap {
    width: 285px;
  }

  .menu-list {
    font-size: 12px;
  }

  .visit-grid {
    width: 82%;
    grid-template-columns: 50.2% 45.6%;
    column-gap: 4.2%;
  }

  .site-footer {
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
  }

  .map-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 820px) {
  :root {
    --page-pad: 7.2%;
  }

  .contact-strip {
    padding-inline: 18px;
    font-size: 11px;
  }

  .site-header {
    height: 104px;
    padding: 0 var(--page-pad);
  }

  .brand {
    width: 190px;
  }

  .nav-toggle {
    position: relative;
    z-index: 20;
    width: 48px;
    height: 48px;
    padding: 10px;
    display: grid;
    align-content: center;
    gap: 6px;
    border: 1px solid rgba(248, 246, 247, 0.7);
    border-radius: 0;
    color: var(--white);
    background: transparent;
  }

  .nav-toggle span {
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    z-index: 10;
    top: 100%;
    right: var(--page-pad);
    width: min(270px, calc(100vw - 40px));
    padding: 16px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    color: var(--white);
    background: #4e4c4a;
    border: 1px solid rgba(248, 246, 247, 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    min-height: 48px;
    padding: 13px 4px;
  }

  .hero-image-wrap {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  .welcome-grid {
    min-height: 0;
    margin-inline: var(--page-pad);
    padding: 38px 0 42px;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .welcome-grid > p {
    margin-top: 0;
  }

  .flower-motif {
    left: min(52vw, 285px);
  }

  .menu-grid {
    margin-top: 38px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 55px 42px;
  }

  .menu-photo-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 0.86;
    margin-top: 0;
    grid-column: 1 / -1;
  }

  .menu-photo {
    object-position: center;
  }

  .menu-column {
    grid-row: 2;
  }

  .menu-list {
    font-size: 13px;
  }

  .menu-list > div > span:last-child {
    font-size: 17px;
  }

  .cup-motif {
    display: none;
  }

  .origins-title-row {
    align-items: flex-end;
  }

  .bean-motif {
    width: 130px;
  }

  .origin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 28px;
  }

  .origin-card > p:not(.flavour) {
    min-height: 0;
  }

  .visit-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .visit-section {
    padding-bottom: 200px;
  }

  .lady-motif {
    right: 3%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-dog-motif {
    position: static;
    width: 210px;
    height: auto;
    margin: 24px 0 0 60px;
  }

  .footer-details {
    padding-left: 0;
  }

  .footer-details .hours {
    margin-bottom: 28px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 24px;
  }

  .contact-strip {
    min-height: 54px;
    padding: 7px 14px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    font-size: 10.5px;
    line-height: 1.45;
  }

  .site-header {
    height: 94px;
  }

  .brand {
    width: 155px;
  }

  .hero-image-wrap {
    width: calc(100% - 24px);
    margin-inline: 12px;
    aspect-ratio: 1 / 0.76;
  }

  .hero-image {
    object-position: 49% center;
  }

  h1 {
    font-size: clamp(40px, 12vw, 48px);
    line-height: 1.08;
  }

  h2 {
    font-size: 38px;
    line-height: 1.08;
  }

  .welcome-grid {
    gap: 58px;
  }

  .welcome-grid > p,
  .origins-intro {
    font-size: 19px;
    line-height: 1.35;
  }

  .flower-motif {
    top: 52px;
    left: 46%;
    width: 150px;
  }

  .flower-orange {
    width: 145px;
  }

  .flower-white {
    top: 5px;
    left: 9px;
    width: 113px;
  }

  .chalk-line {
    width: calc(100% - 40px);
  }

  .menu-section,
  .origins-section,
  .visit-section {
    padding-inline: var(--page-pad);
  }

  .menu-section > h2 {
    padding-top: 18px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .menu-photo-wrap {
    grid-column: auto;
    aspect-ratio: 0.83;
  }

  .menu-column {
    grid-row: auto;
  }

  .menu-column-left {
    display: contents;
  }

  .menu-column-left .menu-group:first-child {
    order: 2;
  }

  .menu-column-right {
    display: contents;
  }

  .menu-photo-wrap {
    order: 1;
  }

  .menu-column-right .menu-group:first-child {
    order: 3;
  }

  .menu-column-left .menu-group-lower {
    order: 4;
  }

  .menu-column-right .menu-group-lower {
    order: 5;
  }

  .menu-button {
    order: 6;
    justify-self: start;
    margin-top: 0;
    font-size: 24px;
  }

  .menu-group-lower {
    margin-top: 0;
  }

  .menu-group h3,
  .menu-group-lower h3 {
    margin-bottom: 28px;
    font-size: 33px;
  }

  .menu-list {
    gap: 12px;
    font-size: 13px;
  }

  .menu-list > div {
    gap: 10px;
  }

  .menu-section > .chalk-line {
    margin-top: 50px;
  }

  .origins-title-row {
    position: relative;
    padding-top: 26px;
    display: block;
  }

  .origins-title-row h2 {
    max-width: 320px;
  }

  .bean-motif {
    width: 125px;
    margin: 8px 0 0 auto;
  }

  .origins-intro {
    margin-top: 32px;
  }

  .desktop-break {
    display: none;
  }

  .origin-grid {
    margin-top: 54px;
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .origin-image-wrap {
    height: auto;
    aspect-ratio: 0.92;
  }

  .origin-card h3 {
    margin-top: 18px;
    font-size: 16px;
  }

  .origin-card > p:not(.flavour) {
    font-size: 17px;
    line-height: 1.5;
  }

  .origin-card .flavour {
    font-size: 19px;
  }

  .origins-section > .chalk-line {
    margin-top: 62px;
  }

  .visit-section {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 180px;
  }

  .visit-info {
    font-size: 16px;
  }

  .visit-grid {
    margin-top: 44px;
  }

  .lady-motif {
    width: 160px;
  }

  .site-footer {
    min-height: 0;
    padding: 38px var(--page-pad) 62px;
    font-size: 16px;
  }

  .social-row {
    flex-direction: column;
    gap: 18px;
  }

  .social-icons .social-link {
    width: 42px;
    height: 42px;
  }

  .footer-dog-motif {
    width: 165px;
    height: auto;
    margin-left: 0;
  }

  .footer-details p {
    line-height: 1.45;
  }
}

@media (max-width: 760px) {
  .contact-strip {
    min-height: 72px;
    padding: 7px 14px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 2px;
    text-align: center;
    line-height: 1.35;
  }

  .contact-hours {
    position: static;
    grid-row: 2;
    white-space: normal;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
