:root {
  color-scheme: dark;
  --cream: #f8e8c5;
  --muted: #ccb99b;
  --night: #736087;
  --plum: #2f1834;
  --plum-light: #8c70a0;
  --gold: #d6a44b;
  --orange: #d86d2d;
  --green: #8da85a;
  --lavender: #a78ab2;
  --line: #725b7b;
  --black: #09060c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  background: repeating-linear-gradient(-7deg, #9c84b1 0 28px, #a992bc 29px 55px);
  font-family: Georgia, "Times New Roman", serif;
}

a { color: inherit; }

.star-field,
.bat-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='94' viewBox='0 0 118 94'%3E%3Cpath fill='%23fff0cb' d='M13 22c8 1 13 5 18 11 4-6 11-9 18-8-3 4-4 8-3 13-5-2-9-1-15 5-6-6-11-7-17-4 2-6 1-11-1-17Z'/%3E%3Cpath fill='%23552d5e' d='M73 62c6 0 11 3 15 8 3-5 8-7 15-7-3 4-3 7-2 11-5-2-9-1-13 4-5-5-9-6-14-3 2-5 1-9-1-13Z'/%3E%3C/svg%3E");
  background-size: 118px 94px;
}

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
  background: var(--black);
  color: var(--gold);
  font: 700 .7rem/2.4 Arial, sans-serif;
  letter-spacing: .18em;
  white-space: nowrap;
}

.ticker div { width: max-content; animation: crawl 22s linear infinite; }

@keyframes crawl { to { transform: translateX(-50%); } }

.home-shell,
.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 70rem);
  margin: 0 auto;
}

.home-shell { width: min(100% - 1.5rem, 34rem); padding: 2.25rem 0 4rem; }

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.logo-orbit {
  display: grid;
  place-items: center;
  width: min(76vw, 20rem);
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 2.25rem;
  border: 4px dashed #f4d477;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: 0 0 0 7px #d994b5, 0 0 0 11px #53305d, 10px 11px 0 #53305d;
  animation: orbit 24s linear infinite;
}

.home-logo { display: block; width: 86%; height: 86%; margin: auto; border-radius: 50%; object-fit: cover; object-position: 50% 50%; }

@keyframes orbit { to { transform: rotate(360deg); } }

.pixel-kicker,
.mood-status,
.page-label,
.page-nav,
.button,
.site-footer {
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.pixel-kicker { margin: 0 0 .8rem; color: var(--orange); font-size: .75rem; font-weight: 700; }

h1 { margin: 0; font-size: clamp(3rem, 15vw, 5.4rem); font-weight: 400; letter-spacing: -.055em; line-height: .9; }
h1 em { color: var(--gold); font-weight: 400; }

.lead { max-width: 32ch; margin: 1.25rem 0 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 4.5vw, 1.3rem); font-style: italic; line-height: 1.5; }

.mood-status { display: inline-flex; gap: .65rem; align-items: center; padding: .72rem 1rem; border: 2px solid #53305d; color: #39213f; background: #e7a8c4; box-shadow: 5px 5px 0 #b887c6; font-size: .7rem; transform: rotate(1.25deg); }
.status-light { width: .65rem; height: .65rem; border-radius: 50%; background: #a9d65e; box-shadow: 0 0 10px #a9d65e; animation: blink 1.3s step-end infinite; }
@keyframes blink { 50% { opacity: .25; } }

.portal-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.25rem; }

.portal {
  position: relative;
  min-height: 8.75rem;
  padding: 1.15rem 1.3rem;
  overflow: hidden;
  border: 4px solid transparent;
  border-radius: .25rem;
  background:
    linear-gradient(#32172b, #32172b) padding-box,
    radial-gradient(circle, #fff7dc 0 1.3px, transparent 1.6px) 0 0 / 9px 9px border-box,
    linear-gradient(90deg, #e995ba, #b89bcf, #f4d477, #e995ba) border-box;
  text-decoration: none;
  box-shadow: 7px 8px 0 #53305d;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.portal:nth-child(even) { border-radius: .25rem; transform: rotate(.7deg); clip-path: polygon(1% 3%, 97% 0, 100% 91%, 4% 100%, 0 51%); }
.portal:nth-child(odd) { transform: rotate(-.55deg); }
.portal:hover,
.portal:focus-visible { transform: translate(3px, 4px) rotate(1deg) scale(1.015); box-shadow: 3px 3px 0 #53305d; background: linear-gradient(#4b2752, #4b2752) padding-box, radial-gradient(circle, #fff7dc 0 1.3px, transparent 1.6px) 0 0 / 9px 9px border-box, linear-gradient(90deg, #e995ba, #b89bcf, #f4d477, #e995ba) border-box; outline: 3px dashed var(--cream); outline-offset: 4px; }
.portal.is-jiggling { animation: jiggle .3s ease-in-out; }
@keyframes jiggle { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-3deg) scale(.98); } 55% { transform: rotate(3deg) scale(1.03); } 78% { transform: rotate(-1.5deg) scale(1); } }
.portal-order { color: var(--gold); clip-path: polygon(3% 7%, 98% 0, 100% 89%, 4% 100%, 0 48%); }
.portal-menu { color: var(--orange); }
.portal-care { color: var(--green); }
.portal-about { color: var(--lavender); }
.portal-number { font: 700 .7rem/1 "Courier New", monospace; }
.portal-icon { position: absolute; top: .65rem; right: 1.1rem; font-size: 3rem; opacity: .5; }
.portal-title { display: block; max-width: 13ch; margin-top: 2.2rem; color: #fff0cb; font-family: "Berkshire Swash", Georgia, serif; font-size: clamp(1.8rem, 8vw, 2.55rem); font-weight: 400; line-height: 1; text-shadow: 2px 2px 0 #53305d; }
.portal-note { display: block; margin-top: .6rem; font: italic 1rem/1.3 Georgia, serif; }

.guestbook-note { display: flex; gap: 1rem; align-items: center; max-width: 39rem; margin: 3.5rem auto 0; padding: 1rem 1.25rem; border: 1px dashed var(--line); background: rgba(36, 17, 38, .72); transform: rotate(-.7deg); }
.guestbook-note > span { color: var(--orange); font-size: 2rem; }
.guestbook-note p { margin: 0; color: var(--muted); line-height: 1.45; }
.guestbook-note strong { color: var(--cream); }

.site-footer { position: relative; z-index: 1; width: min(100% - 2rem, 70rem); margin: 0 auto; padding: 1.25rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .65rem; text-align: center; }
.site-footer p { margin: 0; }

/* Inner pages */
.page-shell { padding: 2rem 0 5rem; }
.page-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin-bottom: 4rem; font-size: .7rem; }
.page-nav a { color: var(--muted); text-underline-offset: .25rem; }
.page-nav a:hover { color: var(--gold); }
.mini-logo { width: 4rem; height: 4rem; object-fit: cover; border: 1px solid var(--gold); }
.home-link { margin-right: auto; color: var(--cream) !important; font-weight: 700; text-decoration: none; }

.page-heading { max-width: 52rem; margin-bottom: 3rem; }
.page-label { margin: 0 0 .75rem; color: var(--orange); font-size: .75rem; font-weight: 700; }
.page-heading h1 { font-size: clamp(3.4rem, 9vw, 7rem); }
.page-intro { max-width: 45ch; color: var(--muted); font-size: 1.25rem; font-style: italic; line-height: 1.55; }

.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.panel { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); background: rgba(36, 17, 38, .78); box-shadow: 6px 6px 0 var(--black); }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { margin: 0 0 .8rem; color: var(--gold); font-size: 1.45rem; }
.panel h3 { margin: 0 0 .5rem; color: var(--cream); }
.panel p, .panel li { color: var(--muted); font-family: Arial, sans-serif; line-height: 1.65; }
.panel ul, .panel ol { padding-left: 1.25rem; }
.price-line { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.price-line:last-child { border-bottom: 0; }
.price { color: var(--orange); font: 700 .75rem/1.4 "Courier New", monospace; text-transform: uppercase; }
.button { display: inline-block; margin-top: 1rem; padding: .8rem 1rem; border: 2px solid var(--gold); background: var(--gold); color: var(--black); font-size: .75rem; font-weight: 700; text-decoration: none; box-shadow: 4px 4px 0 var(--orange); }
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--orange); }
.spell { color: var(--cream) !important; font-family: Georgia, serif !important; font-size: 1.2rem; font-style: italic; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

@media (max-width: 48rem) {
  .content-grid { grid-template-columns: 1fr; }
  .panel.wide { grid-column: auto; }
  .page-nav { justify-content: center; text-align: center; }
  .home-link { width: calc(100% - 5rem); margin-right: 0; }
}

@media (max-width: 31rem) {
  .home-shell { padding-top: 1.5rem; }
  .portal-grid { margin-top: 2.75rem; }
  .page-nav a:not(.home-link) { width: 45%; }
  .ticker div { animation-duration: 16s; }
}
