* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fg: #000;
  --bg: #f7f5ee; /* warm, muted off-white — writing paper */
  --border: #000;
  --muted: #555;
  --muted-bg: #f7f7f7;

  /* brand */
  --dandelion: #D3DD32;

  /* evening theme tokens */
  --night-bg: #000335;
  --light: 255, 220, 70; /* RGB triplet — use as rgba(var(--light), α) */
}

html { overflow-x: hidden; background: var(--bg); }

body {
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.5;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
  color: var(--fg);
  background: var(--bg);
}
body.is-evening {
  background: transparent;
}
/* saved to home screen: clear the translucent status bar / notch */
@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top); }
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.12em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }

/* universal button — macOS-y light grey */
button {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Arial', Times, serif;
  font-size: 15px;
  font-weight: normal;
  color: #000;
  outline: 0;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  background-color: var(--bg);
  background-image: none;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #000;
}
button:hover { background-color: rgba(0, 0, 0, 0.05); }
button:active { background-color: rgba(0, 0, 0, 0.1); }

/* header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  border-bottom: 1px solid #000;
  padding-bottom: .5rem;
}

.site-name { font-weight: normal; text-decoration: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}

.site-nav a { text-decoration: none; }

.site-nav a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  body { margin-top: .75rem; padding: 0 .75rem 3rem; overflow-x: hidden; }
  .site-header { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; margin-top: .5rem; }
}

/* intro */
.intro { margin: 0 0 1rem; }

/* site-intro: outside photo + tagline + info table */
.site-intro { margin: 0 0 1rem; }
.outside-photo { margin: 0 0 .75rem; position: relative; }
.intro-photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #000;
}
.photo-credit {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  font-size: .8em;
  color: #000;
  font-style: italic;
  background: var(--bg);
  padding: 1px 6px;
  border: 1px solid #000;
  border-radius: 3px;
}
.photo-credit a { color: inherit; text-decoration: none; }
.photo-credit a:hover { text-decoration: underline; }
.site-intro .tagline { margin-bottom: .5rem; }

/* homepage slideshow */
.slideshow { position: relative; margin: 0 0 1.5rem; }
.slides-viewport { overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid #000; }
@media (max-width: 600px) { .slides-viewport { aspect-ratio: 1 / 1; } }
.slides-track { display: flex; height: 100%; }
.slideshow .slide { flex: 0 0 100%; height: 100%; }
.slideshow .intro-photo { width: 100%; height: 100%; object-fit: cover; border: 0; }
@media (max-width: 600px) { .slideshow .intro-photo { pointer-events: none; } }
.slideshow .slide.is-contain { background: transparent; padding: 1rem; }
.slideshow .slide.is-contain .intro-photo { object-fit: contain; }
.slideshow.has-multiple .slides-track { cursor: pointer; }
/* fixed overlays — do not move with the sliding track */
.slideshow .slideshow-credit { z-index: 2; }
.slideshow-nav {
  position: absolute;
  left: .5rem;
  bottom: .5rem;
  display: flex;
  gap: .35rem;
  z-index: 2;
}
.slideshow-nav button:hover { background-color: var(--bg); }

/* coffee thoughts */
.coffee-thoughts {
  margin-bottom: 2rem;
  border-left: 2px solid #000;
  padding: .25rem 0 .25rem .75rem;
  font-style: italic;
}
.coffee-thoughts h3 {
  font-size: .85em;
  font-weight: bold;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .25rem;
}

/* shared bordered-table for meta info */
.meta {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1px;       /* the 1px gaps become every grid line */
  background: #000;          /* shows through the gaps = uniform lines */
  font-size: .92em;
  margin-top: .5rem;
}
.meta th, .meta td {
  padding: .45rem .65rem;
  vertical-align: top;
  text-align: left;
  font-weight: normal;
  background: var(--bg);
  overflow-wrap: anywhere;
}
.meta th {
  width: 30%;
  white-space: nowrap;
  font-style: italic;
  color: #000;
}
.meta td a { text-decoration: underline; }

/* wifi cell: network on left, reveal button / password on right */
.meta td .cell-l { display: inline; }
.meta td .cell-r { float: right; }
@media (max-width: 600px) {
  .meta td .cell-r { float: none; display: block; margin-top: .35rem; }
}
.wifi-pass {
  font-family: ui-monospace, monospace;
  font-size: .9em;
  background: var(--muted-bg);
  border: 1px solid #000;
  border-radius: 3px;
  padding: 0 .35rem;
}
.wifi-reveal { font-size: .85em; }

/* "more" row collapsible */
.more-details > summary {
  cursor: pointer;
  display: inline-block;
  list-style: none;
  text-decoration: underline;
  color: #000;
}
.more-details > summary::-webkit-details-marker { display: none; }
.more-details > summary::after { content: 'show'; }
.more-details[open] > summary::after { content: 'hide'; }
.more-details[open] > summary { margin-bottom: .35rem; }
.more-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .15rem .65rem;
  font-size: .95em;
}
.more-list dt { color: #000; font-style: italic; }
.more-list dd { overflow-wrap: anywhere; min-width: 0; }

/* anchor-jump padding */
#menu, #memory, #blog, #hours {
  scroll-margin-top: 1.5rem;
}

/* menu */
.menu { margin-bottom: 3rem; }
.menu > h2 { font-size: inherit; font-weight: bold; margin-bottom: 1rem; }

.menu-title { margin-bottom: 1rem; font-size: inherit; font-weight: bold; }

.menu-sections {
  display: grid;
  gap: 1.5rem;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  background: var(--bg);
}

.menu-sheets { display: grid; gap: 1.5rem; }

/* one sheet's gap is for its sections; keep title tight above them */
.menu-sheet { gap: 1rem; }

/* current menu image with archive select in the corner */
.menu-figure {
  position: relative;
  margin: 0;
}
.menu-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #000;
  border-radius: 4px;
  cursor: zoom-in;
}

/* clicked: instant full-screen view, image centered and contained */
.menu-figure.is-zoomed {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.menu-figure.is-zoomed img {
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  border: none;
  border-radius: 0;
  cursor: zoom-out;
}
.menu-figure.is-zoomed .menu-archive {
  position: fixed;
  top: .5rem;
  right: .5rem;
}
.menu-archive {
  position: absolute;
  top: .5rem;
  right: .5rem;
}
.menu-archive select {
  font-family: 'Arial', Times, serif;
  font-size: 13px;
  color: #000;
  max-width: 13rem;
  padding: 3px 6px;
  background-color: var(--bg);
  border: 1px solid #000;
  border-radius: 4px;
  cursor: pointer;
}
.menu-archive select:hover { background-color: var(--bg); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-section { border: none; }

.menu-section + .menu-section { margin-top: .25rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  list-style: none;
  padding: .1rem 0;
  border-top: 1px solid #000;
  margin: 0;
}

.section-head::-webkit-details-marker { display: none; }

/* only real toggles invite interaction */
summary.section-head { cursor: pointer; }
summary.section-head:hover { background: rgba(0, 0, 0, 0.03); }

.section-heading { font-style: italic; }

/* small disclosure arrow next to the section name */
summary.section-head .section-heading::after {
  content: "▸";
  display: inline-block;
  margin-left: .35rem;
  font-size: .7em;
  font-style: normal;
  color: var(--muted);
  vertical-align: .1em;
  transition: transform .15s ease;
}
.menu-section[open] > .section-head .section-heading::after {
  transform: rotate(90deg);
}

.section-price { font-size: inherit; }

.section-description { color: #555; font-size: .9em; margin: .4rem 0; }

.section-items { list-style: none; margin-bottom: .5rem; }

.section-items li { padding: .2rem 0; }

.section-items li.suboption { padding-left: 1rem; }

.item-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}
.item-name {}
.item-price { color: #555; font-size: .9em; }
.item-note { display: block; color: #555; font-size: .82em; }

/* about */
.about { margin-bottom: 3rem; }

.about h2,
.contact h3 { font-size: inherit; font-weight: bold; margin-bottom: .75rem; }

.about-body { margin-bottom: 1.5rem; }

.contact { margin-top: 1.5rem; }

address { font-style: normal; margin: .5rem 0 1rem; white-space: pre-line; }

.hours { list-style: none; margin-bottom: 1rem; }

.hours li { display: flex; gap: 2rem; }

.contact-links { list-style: none; }

.contact-links li + li { margin-top: .2rem; }

/* blog */
.blog { margin-bottom: 3rem; }
.blog h2 { font-size: inherit; font-weight: bold; margin-bottom: 1.5rem; }

.posts { list-style: none; display: grid; gap: 2.5rem; }

.post { border-top: 1px solid #000; padding-top: 1rem; }
.blog-home { border-top: 1px solid #000; padding-top: 2rem; }
.blog-home .post { border-top: 0; padding-top: 0; }

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  font-size: .9em;
}

.post-author {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  display: inline-block;
}

.post-author .dot,
.entry-author .dot {
  width: 12px;
  height: 12px;
  background: #c4f04a;
  display: inline-block;
}

.post-name { font-weight: bold; }
.post-time { color: inherit; font-size: 17px; }

.post-text { margin-bottom: .75rem; }
.post-text p + p { margin-top: .5rem; }
.post-text img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
  margin: .75rem 0;
}
.post-text figure { margin: .75rem 0; }
.post-text figure img { margin: 0; }
.post-text figcaption {
  font-size: .85em;
  color: #555;
  font-style: italic;
  margin-top: .25rem;
}

/* memory section */
.memory { margin-bottom: 3rem; border-top: 1px solid #000; padding-top: 2rem; }
.memory h2 { font-size: inherit; font-weight: bold; margin-bottom: .5rem; }
.memory-intro { margin-bottom: 1rem; color: #000; }

.memory-divider {
  border: 0;
  border-top: 1px solid #000;
  margin: 1.5rem 0;
}

.leave-memory-wrap { text-align: center; margin-top: 1.5rem; padding: 0; }
.leave-memory-wrap .memory-form { text-align: left; padding: 0; }
.leave-memory { display: block; margin-bottom: 0; padding: 0; }
.leave-memory > summary {
  display: inline-block;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid #000;
  border-radius: 4px;
  padding: 3px 8px;
  font-family: 'Arial', Times, serif;
  font-size: 15px;
  color: #000;
  list-style: none;
  user-select: none;
}
.leave-memory > summary::-webkit-details-marker { display: none; }
.leave-memory > summary::marker { content: ''; }
.leave-memory > summary:hover { background: rgba(0, 0, 0, 0.05); }
.leave-memory[open] > summary { margin-bottom: 1rem; }

.memory-form { margin-bottom: 0; }
.memory-form p { margin-bottom: .6rem; }
.memory-form label { display: block; font-size: .9em; }

.memory-form input[type="text"],
.memory-form input[type="email"],
.memory-form select,
.memory-form textarea {
  display: block;
  width: 100%;
  font-family: inherit;
  /* 16px keeps iOS from zooming the viewport on focus */
  font-size: 16px;
  color: var(--fg);
  border: 1px solid #000;
  background: var(--bg);
  padding: .25rem .4rem;
  margin-top: .15rem;
  border-radius: 4px;
}

/* strip the native (blue, on iOS) select chrome and supply our own arrow */
.memory-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .55rem center;
}

.memory-form textarea { resize: vertical; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success, .form-error {
  padding: .5rem .75rem;
  border: 1px solid #000;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: .9em;
}
.form-error { background: #fdecea; }
.form-success { background: #eaf6e3; }

/* newsletter signup section */
.newsletter { margin-bottom: 3rem; border-top: 1px solid #000; padding-top: 2rem; }
.newsletter h2 { font-size: inherit; font-weight: bold; margin-bottom: .5rem; }
.newsletter .form-success, .newsletter .form-error { font-size: 1em; }
.newsletter-intro { color: var(--muted); margin-bottom: .75rem; }
.newsletter-form { margin-top: 1rem; }
.newsletter-form input {
  background: var(--bg);
}
.newsletter-email input[type="email"] {
  width: 100%;
  font-family: inherit;
  /* 16px keeps iOS from zooming the viewport on focus */
  font-size: 16px;
  padding: 4px 8px;
  border: 1px solid #000;
  border-radius: 4px;
}
.newsletter-form .captcha { margin-top: 1rem; }
.newsletter-form .captcha input {
  margin-left: .75rem;
  width: 3.5rem;
  font-family: inherit;
  /* 16px keeps iOS from zooming the viewport on focus */
  font-size: 16px;
  padding: 4px 8px;
  border: 1px solid #000;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .newsletter-form .captcha input { display: block; width: 3.5rem; margin: .35rem 0 0; }
}
.newsletter-submit { margin-top: 1rem; text-align: center; }

/* photo upload */
.photo-upload { margin-bottom: .8rem; }
.photo-upload > label {
  display: block;
  font-size: .9em;
  margin-bottom: .25rem;
}

.photo-preview {
  border: 1px solid #000;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem;
  text-align: center;
}

.photo-preview img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-placeholder {
  color: #999;
  font-size: .85em;
  font-style: italic;
}

.photo-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.photo-clear-btn { margin-top: .4rem; display: none; }
.photo-clear-btn.is-visible { display: inline-block; }

/* checkbox row (newsletter) */
.checkbox-row label {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
}
.checkbox-row input[type="checkbox"] {
  width: 1.15rem !important;
  height: 1.15rem;
  flex: 0 0 auto;
  margin: 0 !important;
  accent-color: #000;
}

/* color picker swatches */
.color-picker {
  display: inline-flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.color-picker input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.color-picker label {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid #000;
  cursor: pointer;
  margin: 0;
}
.color-picker input[type="radio"]:checked + label {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.captcha { font-size: .9em; }

/* memory slideshow */
.entries-wrap { position: relative; }
.entries {
  list-style: none;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  gap: 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .5rem;
}
.entry {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
}
.entry-img {
  display: block;
  width: 55%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #000;
}
.entry-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .65rem;
  font-size: .92em;
}
.entry-author {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: bold;
}
.entry-time { color: #555; }
/* overlap the entry's own border so the table's outer line isn't doubled */
.entry .meta { margin: 0 -1px -1px; width: calc(100% + 2px); }
.entry .meta th, .entry .meta td { border-left: 0; border-right: 0; }
.entry .meta td .entry-img { margin: .35rem 0; }

.entries-nav {
  display: flex;
  justify-content: flex-end;
  gap: .35rem;
  margin-top: .5rem;
}
.entries-count {
  flex: 1;
  align-self: center;
  color: #555;
  font-size: .9em;
}

/* illustration — cafe window + sidewalk */
.illustration {
  position: relative;
  margin: 4rem auto 2rem;
  width: 100%;
}

/* coming-soon placeholder page: center the animation in the viewport */
body.placeholder-page {
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.placeholder-main { width: 100%; }
.placeholder-msg { text-align: center; margin: 0; }
body.placeholder-page .illustration { margin: 2rem auto; }

.window {
  position: relative;
  background: var(--bg);
  border: 1px solid #000;
  margin-bottom: -1px;
}

/* upper transom windows */
.window-upper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-bottom: 1px solid #000;
}
.window-upper span {
  display: block;
  height: 28px;
  border: 1px solid #000;
}

/* glass + mullion dividers */
.window-panes {
  position: relative;
  padding: 3.75rem 1.25rem 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.mullion {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #000;
}
.mullion-1 { left: 33.33%; }
.mullion-2 { left: 66.66%; }
.window-art {
  display: block;
  width: 82%;
  height: auto;
  position: relative;
  margin: 0 auto;
}

/* paneled wooden base */
.window-base {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 4px;
  border-top: 1px solid #000;
}
.window-base span {
  display: block;
  height: 48px;
  border: 1px solid #000;
  position: relative;
}
.window-base span::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid #000;
}

/* evening: warm interior lights through the window */
.illustration.is-evening .window-panes {
  background: var(--night-bg);
  overflow: hidden;
}
.orb {
  position: absolute;
  top: -25px;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border-radius: 50%;
  background: rgba(var(--light), 0.85);
  box-shadow:
    0 0 50px 18px rgba(var(--light), 0.32),
    0 0 110px 40px rgba(var(--light), 0.18),
    0 0 200px 60px rgba(var(--light), 0.08);
  filter: blur(9px);
  pointer-events: none;
}
.orb-1 { left: 16.66%; }
.orb-2 { left: 50%; }
.orb-3 { left: 83.33%; }
.illustration.is-evening .window-art {
  filter: brightness(1.08) saturate(1.15);
}
.sidewalk-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(var(--light), 0.45) 0%,
    rgba(var(--light), 0.22) 35%,
    rgba(var(--light), 0.00) 70%);
  pointer-events: none;
  z-index: 1;
}

/* sidewalk with perspective + flipped shadow */
.sidewalk {
  position: relative;
  height: 150px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  perspective: 520px;
  perspective-origin: 50% 0%;
  overflow: hidden;
  background: var(--bg);
}

.sidewalk-floor {
  position: absolute;
  top: 0;
  left: -5%;
  right: -5%;
  height: 320px;
  transform-origin: 50% 0;
  transform: rotateX(60deg);
  background-image:
    linear-gradient(to bottom,
      #000 0, #000 2px, transparent 2px,
      transparent 52px, #000 52px, #000 53.7px, transparent 53.7px,
      transparent 104px, #000 104px, #000 105.5px, transparent 105.5px,
      transparent 156px, #000 156px, #000 157.2px, transparent 157.2px,
      transparent 208px, #000 208px, #000 209px, transparent 209px,
      transparent 260px, #000 260px, #000 260.8px, transparent 260.8px,
      transparent 312px, #000 312px, #000 312.7px, transparent 312.7px),
    repeating-linear-gradient(to right, #000 0 1px, transparent 1px 110px);
}

/* rolling dandelion ball */
.ball {
  --ball-size: 18px;
  --ball-bottom: 14px;
  position: absolute;
  bottom: var(--ball-bottom);
  left: calc(50% - 50vw - 40px);
  width: var(--ball-size);
  height: var(--ball-size);
  pointer-events: none;
  z-index: 5; /* always rolls in front of the window + sidewalk glow */
}
.ball-circle {
  width: 100%;
  height: 100%;
  background: var(--dandelion);
  border: 1px solid #000;
  border-radius: 50%;
}
.ball-shadow {
  position: absolute;
  bottom: calc(var(--ball-size) * -0.2);
  left: -4px;
  width: calc(var(--ball-size) + 8px);
  height: calc(var(--ball-size) * 0.28);
  background: #000;
  opacity: 0.35;
  border-radius: 50%;
  filter: blur(1.5px);
}
body.is-evening .ball-shadow {
  background: rgba(var(--light), 1);
  opacity: 0.22;
}
.ball.rolling { animation: ball-roll var(--ball-duration, 5s) linear forwards; }
.ball.rolling .ball-circle { animation: ball-spin var(--ball-duration, 5s) linear forwards; }
@keyframes ball-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 60px)); }
}
@keyframes ball-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(1440deg); }
}

.window-shadow {
  position: absolute;
  top: 145px;
  left: 35%;
  width: 30%;
  height: auto;
  filter: blur(4px) saturate(0.6) brightness(0.55);
  transform-origin: top center;
  pointer-events: none;
  /* opacity + transform set inline based on Buxton sun position */
}
@media (max-width: 600px) {
  .window-shadow { left: 25%; width: 50%; }
}

/* hours section */
.hours-section { margin: 2rem 0 2rem; }
.hours-section h3 {
  font-size: inherit;
  font-weight: bold;
  margin-bottom: .75rem;
}
.t-c {
  animation: blink-colon 1s steps(2) infinite;
}
@keyframes blink-colon {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.open-status { font-weight: bold; }
.open-status.open-open { color: #007a28; }
.open-status.open-closed { color: #ff0000; }
/* hours rendered as a meta-style table (matching the top info table) */
.hours-table { margin-top: 0; }
.hours-table th {
  font-style: normal;
  width: 40%;
}
.hours-table tr.today th,
.hours-table tr.today td {
  font-weight: bold;
  background: #f0f5b8;
  color: #000;
}
.hours-table .today-marker {
  color: #000;
  font-size: .85em;
  font-weight: normal;
  font-style: italic;
}

/* user profile page */
.user-page { margin-bottom: 3rem; }
.user-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  border: 1px solid #000;
  object-fit: cover;
}
.user-name {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
}
.user-role {
  color: #555;
  font-style: italic;
  font-size: .9em;
  margin: 0;
}
.user-posts-heading {
  font-size: inherit;
  font-weight: bold;
  margin: 1.5rem 0 .75rem;
}
.back-link { margin-top: 1.5rem; }

/* ===== evening: page stays light, scene area goes dark with gradient transition ===== */
html.is-evening { background: var(--bg); }
body.is-evening { background: transparent; }

.night-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 5rem;
  padding: 1rem 1.5rem 2rem;
  background: var(--night-bg);
  color: #e8e3d2;
}
.night-stage::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -40px;
  height: 40px;
  background: linear-gradient(to bottom, transparent 0%, var(--night-bg) 100%);
  pointer-events: none;
}
/* keep illustration and hours-section at content column width inside the stage */
.night-stage > .illustration,
.night-stage > .hours-section {
  max-width: 552px; /* matches body 600px max-width minus 3rem horizontal padding */
  margin-left: auto;
  margin-right: auto;
}

/* hours text in evening */
body.is-evening .hours-section,
body.is-evening .hours-section h3 { color: #fff; }
body.is-evening .open-status.open-open { color: #4be37a; }
body.is-evening .open-status.open-closed { color: #ff5c5c; }

/* window lines white in evening */
body.is-evening .window,
body.is-evening .window-upper,
body.is-evening .window-base { border-color: #fff; }
body.is-evening .window-upper span,
body.is-evening .window-base span,
body.is-evening .window-base span::before { border-color: #fff; }
body.is-evening .mullion { background: #fff; }

/* sidewalk reflection — uses shared --light-glow */
.illustration.is-evening .sidewalk-glow,
body.is-evening .sidewalk-glow {
  background: radial-gradient(ellipse at 50% 0%,
    rgba(var(--light), 0.45) 0%,
    rgba(var(--light), 0.22) 35%,
    rgba(var(--light), 0.00) 70%);
}
body.is-evening { background: var(--bg); padding-bottom: 0; margin-bottom: 0; }
body.is-evening .site-footer {
  position: relative;
  background: var(--night-bg);
  color: #fff;
  border-top-color: #fff;
  padding-bottom: 2rem;
  margin-top: 0;
  /* extend dark backdrop full viewport width AND down past page end */
  box-shadow: 0 0 0 100vmax var(--night-bg);
  clip-path: inset(0 -100vmax -100vmax -100vmax);
}
body.is-evening .site-footer a { color: inherit; }
body.is-evening .footer-links li { color: #fff; }

/* scene elements in evening */
body.is-evening .window {
  background: var(--night-bg);
  border-color: #fff;
}
body.is-evening .window-panes { background: var(--night-bg); }
body.is-evening .window-upper span,
body.is-evening .window-base span {
  border-color: #fff;
}
body.is-evening .window-base span::before { border-color: #fff; }
body.is-evening .mullion { background: #fff; }
body.is-evening .sidewalk { background: transparent; }
body.is-evening .sidewalk-floor {
  background-image:
    linear-gradient(to bottom,
      #fff 0, #fff 2px, transparent 2px,
      transparent 52px, #fff 52px, #fff 53.7px, transparent 53.7px,
      transparent 104px, #fff 104px, #fff 105.5px, transparent 105.5px,
      transparent 156px, #fff 156px, #fff 157.2px, transparent 157.2px,
      transparent 208px, #fff 208px, #fff 209px, transparent 209px,
      transparent 260px, #fff 260px, #fff 260.8px, transparent 260.8px,
      transparent 312px, #fff 312px, #fff 312.7px, transparent 312.7px),
    repeating-linear-gradient(to right, #fff 0 1px, transparent 1px 110px);
}

/* text colors after the illustration */
body.is-evening .hours-section a,
body.is-evening .site-footer a { color: inherit; }
body.is-evening .footer-links li { color: #fff; }

/* footer */
.site-footer {
  border-top: 1px solid #000;
  padding-top: .5rem;
  margin-top: 4rem;
  font-size: .85em;
  color: #000;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0rem 1rem;
  margin-bottom: .35rem;
}
.site-footer a { color: inherit; }

@media (max-width: 600px) {
  body.is-evening .site-footer a,
  body.is-evening .footer-links li,
  body.is-evening .footer-links a { color: #fff; }
}
