/* ===========================================================
   Nan's Cafe — soft, homey, mom-and-pop
   =========================================================== */

:root {
  --cream: #faf4e8;
  --paper: #fffcf5;
  --oat: #f1e5d2;
  --butter: #f7e4bd;
  --honey: #dfae72;
  --clay: #be7b57;
  --rose: #dca79b;
  --sage: #93a188;
  --forest: #4c6151;
  --cocoa: #4a382a;
  --ink: #392c23;
  --muted: #7c6a5b;
  --line: rgba(74, 56, 42, 0.14);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-soft: 0 18px 40px -28px rgba(74, 56, 42, 0.45);
  --shadow-lift: 0 26px 60px -30px rgba(74, 56, 42, 0.5);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Karla", "Segoe UI", system-ui, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;

  --wrap: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(58rem 34rem at 8% -6%, rgba(247, 228, 189, 0.65), transparent 62%),
    radial-gradient(46rem 30rem at 102% 8%, rgba(220, 167, 155, 0.24), transparent 60%),
    radial-gradient(52rem 40rem at 50% 108%, rgba(147, 161, 136, 0.20), transparent 62%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* fine paper grain over everything, very quiet */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--butter);
  color: var(--cocoa);
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cocoa);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------- type */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cocoa);
  margin: 0;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

h1 { font-size: clamp(2.9rem, 7.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.28rem, 2.1vw, 1.55rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.9rem;
}

.script {
  font-family: var(--script);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--clay);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.19rem);
  color: #5d4a3b;
  max-width: 58ch;
}

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 232, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(74, 56, 42, 0.55);
  background: rgba(250, 244, 232, 0.94);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cocoa);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f9e7c2, var(--honey) 78%);
  border: 1.5px solid rgba(74, 56, 42, 0.22);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #57402b;
  box-shadow: inset 0 -2px 6px rgba(74, 56, 42, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.22rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: #5b4838;
  position: relative;
  padding-bottom: 3px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-phone {
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(74, 56, 42, 0.2);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.7);
  font-variant-numeric: tabular-nums;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-phone::after { display: none; }

.nav-phone:hover {
  background: var(--paper);
  border-color: rgba(74, 56, 42, 0.36);
  transform: translateY(-1px);
}

@media (max-width: 780px) {
  .nav a:not(.nav-phone) { display: none; }
  .brand-sub { display: none; }
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.86rem 1.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--cocoa);
  color: #fdf7ea;
  box-shadow: 0 16px 30px -20px rgba(57, 44, 35, 0.9);
}

.btn-primary:hover {
  background: #55402f;
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -20px rgba(57, 44, 35, 0.85);
}

.btn-ghost {
  background: rgba(255, 252, 245, 0.72);
  color: var(--cocoa);
  border-color: rgba(74, 56, 42, 0.26);
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: rgba(74, 56, 42, 0.45);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-block: clamp(1.2rem, 3vw, 2.2rem) 0;
}

.hero-frame {
  position: relative;
  border-radius: clamp(22px, 3.4vw, 38px);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}

.hero-frame img {
  width: 100%;
  height: clamp(400px, 66vh, 620px);
  object-fit: cover;
  object-position: center 56%;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(0.98) brightness(1.02);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(43, 30, 21, 0.82) 0%, rgba(43, 30, 21, 0.42) 34%, rgba(43, 30, 21, 0.06) 66%, rgba(43, 30, 21, 0.14) 100%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  color: #fdf6e8;
  z-index: 2;
  max-width: 42rem;
}

.hero-content .script {
  color: #f6d9ac;
  margin-bottom: 0.15rem;
}

.hero-content h1 {
  color: #fffaf0;
  text-shadow: 0 2px 30px rgba(40, 26, 16, 0.45);
}

.hero-tagline {
  margin: 0.7rem 0 1.4rem;
  color: rgba(255, 248, 235, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  max-width: 30rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 249, 238, 0.16);
  border: 1px solid rgba(255, 249, 238, 0.32);
  backdrop-filter: blur(6px);
  color: #fdf6e8;
}

.hero .btn-ghost {
  background: rgba(255, 250, 240, 0.94);
  border-color: transparent;
}

/* little floating note card */
.hero-note {
  position: absolute;
  right: clamp(1rem, 3vw, 2.4rem);
  top: clamp(1rem, 3vw, 2.2rem);
  z-index: 3;
  background: rgba(255, 251, 242, 0.93);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: rotate(2.2deg);
  max-width: 12.5rem;
}

.hero-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--cocoa);
  line-height: 1.25;
}

.hero-note small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: 0.22rem;
}

@media (max-width: 720px) {
  .hero-note { display: none; }
}

/* ---------------------------------------------------------- sections */
section {
  position: relative;
  z-index: 2;
}

.section {
  padding-block: clamp(3.4rem, 7vw, 6rem);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* wavy divider */
.wave {
  display: block;
  width: 100%;
  height: 34px;
  color: rgba(190, 123, 87, 0.5);
  margin-block: 0.5rem;
}

/* ---------------------------------------------------------- story */
.story {
  padding-top: clamp(2.4rem, 5vw, 4rem);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.4rem);
  align-items: center;
}

.story-copy p {
  color: #564435;
}

.story-copy .lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  color: #4a382a;
}

.pull {
  margin: 1.6rem 0;
  padding-left: 1.15rem;
  border-left: 2px solid var(--rose);
  font-family: var(--serif);
  font-size: 1.16rem;
  font-style: italic;
  color: #5a4636;
  line-height: 1.55;
}

.story-media {
  position: relative;
}

.story-media img {
  border-radius: var(--radius-lg) var(--radius-lg) 120px var(--radius-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
  height: clamp(320px, 46vh, 470px);
  object-fit: cover;
  filter: saturate(1.02);
}

.story-media .caption {
  position: absolute;
  left: 1rem;
  bottom: -1.35rem;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--script);
  font-size: 1.1rem;
  color: var(--clay);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.5deg);
}

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { order: -1; }
  .story-media .caption { bottom: -1rem; }
}

/* ---------------------------------------------------------- values row */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
}

.value {
  background: rgba(255, 252, 245, 0.72);
  border: 1px solid rgba(74, 56, 42, 0.1);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.value h3 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.value p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.value-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--oat);
  color: var(--clay);
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .three-up { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- favourites */
.loved {
  background: linear-gradient(180deg, rgba(241, 229, 210, 0.55), rgba(241, 229, 210, 0));
  border-block: 1px solid rgba(74, 56, 42, 0.08);
}

.loved-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.loved-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(74, 56, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.loved-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.loved-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.loved-card-body {
  padding: 1rem 1.15rem 1.2rem;
}

.loved-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.loved-card-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.price-tag {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: 0.02em;
  display: inline-block;
  margin-top: 0.55rem;
}

.ribbon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 251, 242, 0.94);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cocoa);
  box-shadow: 0 4px 12px -6px rgba(74, 56, 42, 0.6);
}

@media (max-width: 940px) {
  .loved-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .loved-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- menu */
.menu {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.menu-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.35rem;
  background: rgba(241, 229, 210, 0.8);
  border-radius: 999px;
  border: 1px solid rgba(74, 56, 42, 0.08);
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: #6d5a49;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--cocoa);
  box-shadow: 0 8px 18px -12px rgba(74, 56, 42, 0.7);
}

.tab:hover { color: var(--cocoa); }

.menu-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.menu-panel { display: none; }
.menu-panel.is-active { display: block; }

.menu-columns {
  columns: 2;
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.cat {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 2.1rem;
  background: rgba(255, 252, 245, 0.62);
  border: 1px solid rgba(74, 56, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1.45rem 1.5rem 1.1rem;
  box-shadow: 0 14px 34px -30px rgba(74, 56, 42, 0.7);
}

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}

.cat-head h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.cat-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(190, 123, 87, 0.45), rgba(190, 123, 87, 0));
}

.cat-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1rem;
  font-style: italic;
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item {
  padding: 0.62rem 0;
  border-bottom: 1px dashed rgba(74, 56, 42, 0.13);
}

.items .item:last-child { border-bottom: 0; padding-bottom: 0.2rem; }

.item-top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.item-name {
  font-family: var(--sans);
  font-size: 0.975rem;
  font-weight: 700;
  color: #463527;
  letter-spacing: 0.002em;
}

.item-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(74, 56, 42, 0.28);
  transform: translateY(-3px);
  min-width: 1rem;
}

.item-price {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}

.item-desc {
  font-size: 0.845rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0.2rem 0 0;
  max-width: 46ch;
}

.tag {
  display: inline-block;
  vertical-align: 1px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a5233;
  background: var(--butter);
  border-radius: 999px;
  padding: 0.1rem 0.48rem;
  margin-left: 0.35rem;
}

@media (max-width: 820px) {
  .menu-columns { columns: 1; }
}

/* ---------------------------------------------------------- gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
  background: var(--oat);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-grid figure:hover img { transform: scale(1.04); }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure,
  .gallery-grid figure:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------- visit */
.visit {
  background:
    radial-gradient(60rem 30rem at 20% 0%, rgba(247, 228, 189, 0.5), transparent 60%),
    var(--oat);
  border-top: 1px solid rgba(74, 56, 42, 0.1);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}

.visit-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.4vw, 2.5rem);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(74, 56, 42, 0.07);
}

.info-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.info-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.4rem;
  align-items: start;
}

.info-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--oat);
  color: var(--clay);
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

.info-list strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.info-list a,
.info-list span.val {
  font-size: 1.02rem;
  color: #463527;
  text-decoration: none;
  font-weight: 500;
}

.info-list a:hover { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.42rem 0;
  border-bottom: 1px dashed rgba(74, 56, 42, 0.14);
  font-weight: 500;
}

.hours th { color: #4a382a; font-weight: 700; }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.today {
  background: var(--butter);
  border-radius: 6px;
  padding-inline: 0.35rem;
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3f5a43;
  background: rgba(147, 161, 136, 0.24);
  border: 1px solid rgba(76, 97, 81, 0.25);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  margin-bottom: 0.9rem;
}

.open-pill.closed {
  color: #7a4a37;
  background: rgba(220, 167, 155, 0.26);
  border-color: rgba(190, 123, 87, 0.3);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(147, 161, 136, 0.28);
}

.visit-aside img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
  height: clamp(280px, 40vh, 400px);
  object-fit: cover;
}

.visit-aside {
  display: grid;
  gap: 1.1rem;
}

.quote-card {
  background: rgba(255, 252, 245, 0.8);
  border: 1px solid rgba(74, 56, 42, 0.1);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.45rem;
  box-shadow: var(--shadow-soft);
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-style: italic;
  line-height: 1.55;
  color: #4d3b2d;
}

.quote-card cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- footer */
.site-footer {
  background: #41332a;
  color: #e8dcc9;
  padding-block: clamp(2.6rem, 5vw, 3.6rem) 1.6rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 250, 240, 0.14);
}

.site-footer .brand-name,
.site-footer h4 {
  color: #fbf3e3;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cbb9a3;
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer a {
  color: #d8c9b5;
  font-size: 0.94rem;
  text-decoration: none;
}

.site-footer a:hover { color: #fff8ec; text-decoration: underline; text-underline-offset: 3px; }

.footer-brand p {
  max-width: 30ch;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.4rem;
  font-size: 0.8rem;
  color: #b8a591;
}

.site-footer .brand-mark {
  border-color: rgba(255, 250, 240, 0.3);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------------------------------------------------------- reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loved-card:hover,
  .btn:hover,
  .gallery-grid figure:hover img { transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* back to top */
.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid rgba(74, 56, 42, 0.16);
  color: var(--cocoa);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  font-size: 1rem;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
