/* ===== Dice Tower: css/styles.css =====
   Colors are taken from the cafe logo. Change them once here. */
:root {
  --ink: #1b1210;
  /* logo outlines and wordmark */
  --tower: #2d1710;
  /* shadow inside the tower */
  --tower-soft: #43241a;
  --maroon: #8f2a1d;
  /* dragon's dark red */
  --dragon: #cc3a1e;
  /* dragon's head and neck */
  --flame: #f0842c;
  /* the flame */
  --blush: #e9b5a0;
  /* wing and tower stone */
  --parchment: #f2dcc0;
  /* dragon's belly */
  --paper: #fffaf3;
  --steel: #8b8c90;
  /* the serving dome */
  --line: #e6cfb8;

  --font-display: "Metamorphous", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img,
iframe {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  margin: 0 0 .5em;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 0 0 .5em;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem clamp(1rem, 4vw, 3rem);
  background: var(--paper);
  color: var(--ink);
  border-bottom: 4px solid var(--dragon);
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

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

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

.site-nav a:not(.nav-cta):hover {
  color: var(--dragon);
}

.nav-cta {
  background: var(--dragon);
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--maroon);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}

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

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

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

/* ----- Hero ----- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--paper) 0%, var(--parchment) 100%);
}

.open-status {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: .3rem .9rem;
  background: var(--flame);
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 999px;
}

.open-status.closed { border-top-color: var(--maroon); }

.lede {
  font-size: 1.15rem;
  margin-top: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.hero-art img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-height: 540px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    animation: settle .9s ease-out 1;
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: .75rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--dragon);
  color: #fff;
}

.btn-primary:hover {
  background: var(--maroon);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ----- Sections ----- */
.section {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.section-head {
  margin-bottom: 2rem;
}

.section-dark {
  background: var(--tower);
  color: var(--parchment);
}

.status-note {
  color: var(--maroon);
  margin-bottom: 1rem;
}

.section-dark .status-note {
  color: var(--blush);
}

.status-note:empty {
  display: none;
}

/* ----- Menu ----- */
.menu-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tab {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.tab:hover {
  background: var(--parchment);
}

.tab[aria-selected="true"] {
  background: var(--dragon);
  border-color: var(--dragon);
  color: #fff;
}

.search input {
  font: inherit;
  width: min(100%, 300px);
  padding: .6rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
}

.search input:focus {
  border-color: var(--flame);
  outline: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 0 3rem;
}

.menu-cat {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 1.8rem 0 .4rem;
  color: var(--maroon);
  padding-bottom: .3rem;
  border-bottom: 3px solid var(--blush);
}

.menu-cat:first-child {
  margin-top: 0;
}

.menu-item {
  padding: .9rem 0;
  border-bottom: 1px dashed var(--line);
}

.menu-item-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

.menu-price {
  white-space: nowrap;
  color: var(--maroon);
}

.menu-desc {
  margin: .2rem 0 0;
  font-size: .97rem;
  color: #5b4238;
}

.menu-item.sold-out {
  opacity: .5;
}

.menu-item.sold-out .menu-name {
  text-decoration: line-through;
}

.sold-tag {
  font-size: .8rem;
  font-weight: 700;
  background: var(--line);
  border-radius: 4px;
  padding: 0 .4rem;
  margin-left: .5rem;
  vertical-align: middle;
}

/* ----- Events ----- */
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
}

.event {
  background: var(--tower-soft);
  border-radius: var(--radius);
  padding: 1.3rem;
  border-top: 6px solid var(--flame);
}

.event-when {
  margin: 0 0 .3rem;
  font-weight: 700;
  color: var(--flame);
}

.event h3 {
  font-size: 1.3rem;
  margin: 0 0 .4rem;
  color: #fff;
}

.event p:last-child {
  margin: 0;
  font-size: .98rem;
}

/* ----- About ----- */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

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

.about-facts li {
  background: var(--parchment);
  border-left: 6px solid var(--dragon);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ----- Visit ----- */
.visit {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  background: var(--parchment);
}

address {
  font-style: normal;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.hours {
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.hours th,
.hours td {
  text-align: left;
  padding: .3rem 1.5rem .3rem 0;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

/* ----- Form ----- */
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.5rem;
  max-width: 760px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: .3rem;
}

.optional {
  font-weight: 400;
  color: #5b4238;
  font-size: .9rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: .65rem .85rem;
  color: inherit;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--flame);
  outline: none;
}

.field.invalid input {
  border-color: #b3261e;
}

.error {
  color: #b3261e;
  font-size: .92rem;
  margin: .3rem 0 0;
}

.error:empty {
  display: none;
}

.form-status {
  margin-top: 1rem;
  font-weight: 700;
}

.form-status.ok {
  color: #2f6b3a;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 1.8rem clamp(1rem, 4vw, 3rem);
  border-top: 4px solid var(--dragon);
}

.site-footer p {
  margin: 0;
  max-width: none;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .9rem;
}

.footer-links a {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  color: var(--parchment);
  border: 1px solid rgba(233, 181, 160, .42);
  border-radius: 50%;
  background: rgba(240, 132, 44, .1);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #f0b274;
  border-color: var(--flame);
  background: rgba(240, 132, 44, .2);
  transform: translateY(-2px);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--parchment);
  outline-offset: 3px;
}

.footer-links svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.footer-links a:nth-child(2) svg,
.footer-links a:nth-child(3) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-links .icon-dot {
  fill: currentColor;
  stroke: none;
}

.footer-links .gmail-mark {
  stroke: var(--flame);
  stroke-width: 2.2;
}

/* ----- Mobile ----- */
@media (max-width: 820px) {
  .brand img {
    height: 32px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 4px solid var(--dragon);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .25s ease, visibility .25s;
  }

  .site-nav.open {
    max-height: 520px;
    visibility: visible;
  }

  .site-nav a {
    padding: 1rem clamp(1rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
  }

  .nav-cta {
    border-radius: 0;
  }

  .hero,
  .about,
  .visit {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    max-height: 280px;
  }

  .form {
    grid-template-columns: 1fr;
  }
}

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

  * {
    transition: none !important;
  }
}

/* ===== Tavern refresh: layered parchment, carved stone and living motion ===== */
body {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(143, 42, 29, .025) 32px 33px);
}

.site-header {
  padding-block: .8rem;
  box-shadow: 0 8px 24px rgba(27, 18, 16, .12);
  border-bottom-width: 5px;
}

.brand img { height: 46px; }

.site-nav { gap: clamp(.8rem, 1.7vw, 1.6rem); }

.site-nav a {
  position: relative;
  padding-block: .4rem;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: .05rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

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

.nav-cta {
  border: 2px solid var(--maroon);
  border-radius: 5px 14px 5px 14px;
  box-shadow: 3px 3px 0 var(--tower);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav-cta:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tower); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(690px, calc(100svh - 72px));
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 7vw, 6rem);
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  background: linear-gradient(115deg, var(--paper) 0%, var(--parchment) 78%, var(--blush) 150%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 1.2rem;
  border: 1px solid rgba(143, 42, 29, .28);
  clip-path: polygon(0 0, 26% 0, 27% 1%, 73% 1%, 74% 0, 100% 0, 100% 100%, 74% 100%, 73% 99%, 27% 99%, 26% 100%, 0 100%);
}

.hero::after {
  display: none;
}

.hero-text { max-width: 690px; }

.hero h1 {
  max-width: 12ch;
  margin-bottom: .35em;
  color: var(--tower);
  font-size: clamp(2.7rem, 6.5vw, 5.3rem);
  text-wrap: balance;
  text-shadow: 2px 2px 0 rgba(230, 207, 184, .8);
}

.hero .lede { max-width: 52ch; font-size: clamp(1.08rem, 1.4vw, 1.25rem); }

.open-status {
  border-radius: 3px 12px 3px 12px;
  box-shadow: 3px 3px 0 rgba(45, 23, 16, .2);
  letter-spacing: .025em;
}

.hero-art { position: relative; }

.hero-art::before {
  position: absolute;
  inset: 7% 4%;
  border: 1px solid rgba(143, 42, 29, .24);
  border-radius: 48% 48% 8px 8px;
  content: "";
  pointer-events: none;
}

.hero-art img {
  position: relative;
  z-index: 1;
  max-height: min(540px, 68vh);
  filter: drop-shadow(0 20px 18px rgba(27, 18, 16, .2));
  animation: tower-drift 6s ease-in-out infinite;
}

@keyframes tower-drift {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-11px) rotate(.6deg); }
}

.btn {
  border-radius: 4px 14px 4px 14px;
  box-shadow: 3px 4px 0 rgba(45, 23, 16, .26);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-3px); box-shadow: 3px 7px 0 rgba(45, 23, 16, .22); }
.btn:active { transform: translateY(1px); box-shadow: 1px 2px 0 rgba(45, 23, 16, .2); }

.section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 7vw, 6rem);
}

.section-head { max-width: 760px; }

.section-head h2,
.about h2,
.dice h2,
.visit h2 { color: var(--tower); }

.section-head h2::after,
.about h2::after,
.dice h2::after,
.visit h2::after {
  display: block;
  width: 3.8rem;
  height: 3px;
  margin-top: .65rem;
  content: "";
  background: var(--flame);
}

.section-dark {
  background-color: var(--tower);
  background-image: repeating-linear-gradient(135deg, transparent 0 46px, rgba(233, 181, 160, .035) 47px 48px);
  border-block: 5px solid var(--maroon);
}

.section-dark .section-head h2 { color: var(--parchment); }
.section-dark .section-head h2::after { background: var(--flame); }

.events { gap: 1.25rem; }

.event {
  position: relative;
  min-height: 190px;
  padding: 1.5rem;
  border: 1px solid rgba(233, 181, 160, .2);
  border-top: 5px solid var(--flame);
  border-radius: 4px 18px 4px 18px;
  box-shadow: 0 8px 0 rgba(27, 18, 16, .22);
  transition: transform .25s ease, box-shadow .25s ease;
}

.event:hover { transform: translateY(-7px) rotate(-.4deg); box-shadow: 0 15px 0 rgba(27, 18, 16, .18); }
.event-when { letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }

.about { background: var(--paper); }

.about-copy {
  padding: clamp(1.3rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-left: 5px solid var(--dragon);
  background: linear-gradient(135deg, var(--paper), #fff 80%);
  box-shadow: 8px 8px 0 rgba(230, 207, 184, .48);
}

.about-facts li {
  border: 1px solid var(--line);
  border-left: 6px solid var(--dragon);
  border-radius: 3px 14px 3px 14px;
  box-shadow: 4px 4px 0 rgba(230, 207, 184, .55);
  transition: transform .2s ease;
}

.about-facts li:hover { transform: translateX(6px); }

.dice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  background: linear-gradient(115deg, var(--parchment), var(--paper));
}

.d20-stage {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 50% 50% 6px 6px;
  background: radial-gradient(ellipse at 50% 65%, #fff 0, var(--parchment) 65%);
  text-align: center;
}

.d20-stage::before {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(143, 42, 29, .34);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.d20-btn { position: relative; z-index: 1; filter: drop-shadow(0 12px 10px rgba(27, 18, 16, .2)); transition: transform .3s ease; }
.d20-btn:hover { transform: translateY(-7px) rotate(8deg) scale(1.05); }

.visit {
  align-items: center;
  background: var(--parchment);
  border-block: 1px solid var(--line);
}

.visit-info {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid rgba(143, 42, 29, .24);
  background: rgba(255, 250, 243, .56);
  box-shadow: 7px 7px 0 rgba(230, 207, 184, .7);
}

.hours th, .hours td { border-bottom: 1px dashed rgba(143, 42, 29, .2); }

.map-frame { min-height: 360px; padding: 8px; background: var(--tower); box-shadow: 9px 9px 0 rgba(45, 23, 16, .22); }
.map-frame iframe { min-height: 360px; border-radius: 2px; filter: sepia(.12) contrast(.94); }

.reserve {
  background: linear-gradient(180deg, var(--paper), var(--parchment));
}

.form {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-top: 5px solid var(--dragon);
  background: rgba(255, 250, 243, .85);
  box-shadow: 8px 8px 0 rgba(230, 207, 184, .65);
}

.field input, .field textarea, .field select { border-radius: 3px 10px 3px 10px; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 3px rgba(240, 132, 44, .18); }

.site-footer {
  padding-block: 2.2rem;
  border-top-width: 6px;
  background-image: repeating-linear-gradient(135deg, transparent 0 40px, rgba(233, 181, 160, .035) 41px 42px);
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .25, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-text.reveal { transition-delay: .08s; }
.hero-art.reveal { transition-delay: .2s; }

@media (max-width: 820px) {
  .brand img { height: 36px; }
  .hero { min-height: auto; padding: 2.5rem 1.25rem 3rem; }
  .hero::before { inset: .6rem; }
  .hero::after { width: 85vw; right: -30%; }
  .hero-art img { max-height: 290px; }
  .hero h1 { max-width: 14ch; font-size: clamp(2.55rem, 11vw, 4rem); }
  .dice { grid-template-columns: 1fr; }
  .d20-stage { max-width: 440px; width: 100%; margin-inline: auto; }
  .map-frame, .map-frame iframe { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .btn, .event, .about-facts li, .d20-btn { transition: none; }
}

/* Adventurers' quest board */
.events {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 8px ridge var(--maroon);
  background-color: var(--tower-soft);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(233, 181, 160, .045) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(27, 18, 16, .12) 73px 77px);
  box-shadow: inset 0 0 0 3px rgba(240, 132, 44, .18), 0 12px 0 rgba(27, 18, 16, .25);
}

.event {
  min-height: 210px;
  padding: 2.2rem 1.35rem 1.5rem;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 6px solid var(--dragon);
  border-top: 1px solid var(--line);
  border-radius: 2px 8px 3px 5px;
  background-color: var(--parchment);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(143, 42, 29, .055) 28px 29px);
  box-shadow: 3px 5px 0 rgba(27, 18, 16, .32);
  clip-path: polygon(0 0, 96% 0, 100% 5%, 100% 100%, 5% 100%, 0 96%);
  transition: transform .25s ease, box-shadow .25s ease;
}

.event::before {
  position: absolute;
  top: .55rem;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #696f72;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 76% 28%, #895338 0 8%, transparent 18%),
    radial-gradient(ellipse at 27% 76%, #9b6040 0 7%, transparent 17%),
    linear-gradient(135deg, transparent 0 42%, rgba(55, 59, 61, .9) 45% 48%, transparent 51%),
    linear-gradient(72deg, transparent 0 62%, rgba(67, 70, 72, .8) 64% 66%, transparent 69%),
    radial-gradient(circle at 32% 28%, #f2f3f3 0 10%, #c4c9cb 30%, #9fa6aa 68%, #747d81 100%);
  box-shadow: 1px 2px 2px rgba(27, 18, 16, .4), inset 0 1px 1px rgba(255, 255, 255, .65);
  content: "";
  transform: translateX(-50%);
}

.event::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25px;
  height: 25px;
  background: var(--blush);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  content: "";
}

.event:hover {
  z-index: 1;
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 5px 11px 0 rgba(27, 18, 16, .28);
}

.event-when {
  color: var(--maroon);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.event h3 {
  color: var(--tower);
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(143, 42, 29, .32);
}

.event p:last-child { color: var(--ink); }

.dice .d20-result {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  min-height: 4.4em;
  display: grid;
  place-items: center;
  padding: .8rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--maroon);
  border-radius: 4px 12px 4px 12px;
  box-shadow: 4px 5px 0 rgba(45, 23, 16, .28);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dice .d20-history li {
  color: var(--paper);
  background: var(--tower);
  border: 1px solid var(--maroon);
  box-shadow: 1px 2px 0 rgba(45, 23, 16, .18);
}

@media (max-width: 820px) {
  .events { padding: 1rem; border-width: 6px; }
  .event { min-height: 185px; }
}

@media (prefers-reduced-motion: reduce) {
  .event:hover { transform: none; }
}

/* Home hero: keep the dragon and Dice Tower wordmark together. */
.hero-art {
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  gap: .35rem;
}

.hero-art img {
  display: block;
  width: min(100%, 350px);
  height: auto;
  max-height: none;
  object-fit: contain;
}

.hero-art::before {
  display: block;
  z-index: 0;
  inset: 2% 4% 3.2rem;
  border: 6px solid var(--maroon);
  border-bottom-width: 5px;
  border-radius: 50% 50% 3px 3px / 27% 27% 3px 3px;
  background:
    radial-gradient(ellipse at 20% 28%, rgba(255, 250, 243, .3), transparent 28%),
    radial-gradient(ellipse at 78% 68%, rgba(91, 54, 39, .1), transparent 34%),
    linear-gradient(90deg, rgba(91, 54, 39, .1), transparent 18% 82%, rgba(91, 54, 39, .1)),
    linear-gradient(90deg, transparent 49px, rgba(91, 54, 39, .16) 50px 51px, transparent 52px) 0 0 / 100px 110px,
    linear-gradient(90deg, transparent 49px, rgba(91, 54, 39, .16) 50px 51px, transparent 52px) 50px 55px / 100px 110px,
    repeating-linear-gradient(0deg, transparent 0 54px, rgba(91, 54, 39, .17) 55px 57px),
    linear-gradient(145deg, #f0ddbf, #c9a47a 56%, #ead2ad);
  box-shadow: inset 0 0 0 2px rgba(255, 250, 243, .4), 0 12px 20px rgba(45, 23, 16, .18);
  content: "";
  pointer-events: none;
}

.hero-art .open-status {
  position: relative;
  z-index: 2;
  display: block;
  width: fit-content;
  margin: 0;
  max-width: 100%;
  padding: .5rem .9rem;
  border: 0;
  border-block: 1px solid rgba(143, 42, 29, .25);
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 243, .8) 14%, rgba(255, 250, 243, .8) 86%, transparent);
  color: var(--ink);
  box-shadow: none;
  text-align: center;
}

.status-copy { display: grid; justify-items: center; gap: .08rem; }
.status-label { color: var(--maroon); font: 400 .98rem/1.25 var(--font-display); }
.status-hours { color: #5b4238; font-size: .82rem; line-height: 1.3; }
.hero-art .open-status.is-open .status-label { color: #355d39; }

@media (max-width: 460px) {
  .hero-art .open-status { padding-inline: .45rem; }
  .status-label { font-size: .9rem; }
  .status-hours { font-size: .76rem; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text { order: 0; max-width: 44rem; margin-inline: auto; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero h1 { max-width: 15ch; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; width: min(72vw, 300px); justify-self: center; margin: 0 auto 1rem; }
  .hero-art img { width: 100%; }
}

@media (max-width: 460px) {
  .hero { padding: 2rem 1rem 2.5rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-art { width: min(70vw, 270px); }
}

/* Warm wooden backing for the quest notices */
.quest-board {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 12px ridge var(--tower-soft);
  background-color: #936640;
  background-image:
    radial-gradient(ellipse at 16% 35%, transparent 0 17px, rgba(81, 48, 26, .24) 19px 21px, transparent 24px),
    radial-gradient(ellipse at 81% 72%, transparent 0 22px, rgba(81, 48, 26, .2) 24px 26px, transparent 29px),
    linear-gradient(153deg, transparent 0 24%, rgba(77, 48, 29, .55) 24.12% 24.27%, rgba(244, 218, 182, .65) 24.38% 24.52%, transparent 24.64%),
    linear-gradient(156deg, transparent 0 26%, rgba(77, 48, 29, .44) 26.08% 26.2%, transparent 26.33%),
    linear-gradient(168deg, transparent 0 67%, rgba(77, 48, 29, .48) 67.12% 67.26%, rgba(244, 218, 182, .55) 67.36% 67.49%, transparent 67.61%),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(91, 56, 32, .2) 49px 51px, rgba(255, 224, 181, .13) 52px 54px, transparent 55px 108px),
    repeating-linear-gradient(1deg, transparent 0 5px, rgba(91, 56, 32, .08) 6px 7px, transparent 8px 15px),
    linear-gradient(100deg, #825938 0%, #a7774e 16%, #936640 30%, #ad7d50 43%, #936640 54%, #b48659 72%, #825938 100%);
  box-shadow: inset 0 0 0 3px var(--maroon), inset 0 0 0 7px rgba(27, 18, 16, .4), 0 16px 30px rgba(27, 18, 16, .32);
}

.events {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 320px));
  justify-content: center;
}

@media (max-width: 820px) {
  .quest-board { padding: 1rem; border-width: 8px; }
  .events { gap: 1.35rem; }
  .event { padding-inline: 1.35rem; }
}

@media (max-width: 640px) {
  .quest-board { padding: .65rem; border-width: 6px; }
  .events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    padding: .65rem;
  }

  .events > .event:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - .7rem) / 2);
  }

  .event {
    min-width: 0;
    min-height: 0;
    padding: 1.7rem .75rem 1rem;
    border-radius: 4px;
    clip-path: none;
    overflow-wrap: anywhere;
  }

  .event-when { font-size: .68rem; letter-spacing: .045em; }
  .event h3 { font-size: clamp(.88rem, 3.8vw, 1.05rem); }
  .event p:last-child { font-size: .8rem; line-height: 1.35; }
  .event:hover { transform: translateY(-3px); }
}

@media (max-width: 380px) {
  .quest-board { padding: .45rem; }
  .events { gap: .5rem; padding: .45rem; }
  .event { padding-inline: .6rem; }
  .event p:last-child { font-size: .76rem; }
}

/* Keep quest notices as simple square-cornered boxes at every size. */
.event {
  border-radius: 0;
  clip-path: none;
  background-color: var(--parchment);
  background-image:
    repeating-radial-gradient(circle at 1px 1px, rgba(45, 23, 16, .055) 0 .45px, transparent .8px 3px),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(143, 42, 29, .04) 28px 29px),
    repeating-linear-gradient(176deg, rgba(255, 250, 243, .06) 0 1px, transparent 1px 5px);
}

.event::after { display: none; }

