/* Jonny's Place - site styles */

@font-face {
  font-family: "Aaaiight";
  src: url("/fonts/aaaiight.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Aaaiight";
  src: url("/fonts/aaaiight-fat.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --lime: #98ce3c;
  --lime-soft: #e9f4d6;
  --lime-deep: #4f7d1c;
  --sage: #6b7262;
  --sage-dark: #343c2f;
  --paper: #f7f6f1;
  --surface: #ffffff;
  --on-lime: #21251e;
  --header-bg: rgba(247, 246, 241, 0.92);
  --hero-glow: 0.18;
  --ink: #21251e;
  --muted: #5d6357;
  --line: #e2e2d8;
  --radius: 22px;
  --shadow: 0 18px 40px -22px rgba(33, 37, 30, 0.35);
  --display: "Aaaiight", "Marker Felt", "Comic Sans MS", cursive;
  --body: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* Night: from 7pm to 7am in the visitor's own time (see the head script) */
:root[data-theme="night"] {
  --lime-soft: #2c3820;
  --lime-deep: #b6e070;
  --sage: #353b30;
  --sage-dark: #101310;
  --paper: #181b16;
  --surface: #22261f;
  --ink: #eceee6;
  --muted: #a7ae9d;
  --line: #343a2f;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  --header-bg: rgba(24, 27, 22, 0.9);
  --hero-glow: 0.3;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lime-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  text-transform: lowercase;
}
h1 { font-size: clamp(3rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
h4 { font-size: 1.1rem; margin: 0 0 0.3em; letter-spacing: 0.02em; }

h1 .ap, h2 .ap, h3 .ap { font-family: var(--body); font-weight: 700; font-size: 0.8em; margin: 0 -0.04em; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin-bottom: 14px;
}

.lead { font-size: 1.25rem; line-height: 1.6; color: var(--muted); }

/* Buttons: slim pills, never full width */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { background: #a8db4c; color: var(--on-lime); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--on-lime); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,0.4); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; height: 58px; transition: transform 0.4s ease; }
.brand:hover img { transform: rotate(-12deg); }
.brand span { font-family: var(--display); font-size: 1.9rem; line-height: 1; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.02rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav a:hover { background: var(--lime-soft); }
.nav a[aria-current="page"] { background: var(--lime-soft); color: var(--lime-deep); font-weight: 700; }
.nav .btn { margin-left: 10px; padding: 11px 22px; }
.nav .btn:hover { background: #a8db4c; }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
  content: "";
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px var(--gutter) 32px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,0.35);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 1.25rem; padding: 10px 14px; }
  .nav .btn { margin: 12px 0 0; }
  .brand span { font-size: 1.6rem; white-space: nowrap; }
}
@media (max-width: 420px) {
  .brand { gap: 10px; }
  .brand img { width: 46px; height: 46px; }
  .brand span { font-size: 1.4rem; }
  .theme-toggle { width: 42px; height: 42px; }
  .menu-toggle { width: 44px; height: 44px; }
}

/* Day / night switch */
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav { margin-left: auto; }
.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--lime-soft);
  color: var(--lime-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.4s ease, background 0.2s ease;
}
.theme-toggle:hover { transform: rotate(-20deg); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .moon { display: none; }
[data-theme="night"] .theme-toggle .sun { display: none; }
[data-theme="night"] .theme-toggle .moon { display: block; }
@media (max-width: 920px) { .header-actions { margin-left: auto; } }

[data-theme="night"] .band-lime { background: var(--lime-soft); color: var(--ink); }
[data-theme="night"] .band-lime h2 { color: var(--lime); }
[data-theme="night"] .band-lime .btn-ghost { color: var(--ink); }
[data-theme="night"] .band-lime .btn-ghost:hover { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
[data-theme="night"] .hero,
[data-theme="night"] .page-hero {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 46% 14%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 63% 82%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 36% 40%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 50%, rgba(255,255,255,0.35), transparent);
}
[data-theme="night"] .hero::after, [data-theme="night"] .page-hero::after { --hero-blur: 40px; }
[data-theme="night"] .map iframe { filter: brightness(0.82) contrast(1.05); }
[data-theme="night"] img:not([src*="logo"]) { filter: brightness(0.94); }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.band-white { background: var(--surface); }
.band-lime { background: var(--lime); color: var(--on-lime); }
.band-sage { background: var(--sage); color: #fff; }
.band-dark { background: var(--sage-dark); color: #eef0e8; }
.band-dark a, .band-sage a { color: var(--lime); }
.band-sage .eyebrow, .band-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #dcefb8; }
.band-lime .eyebrow { color: var(--sage-dark); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero */
.hero {
  position: relative;
  background: var(--sage);
  color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--lime);
  opacity: var(--hero-glow);
  filter: blur(var(--hero-blur, 0));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 0.25em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { color: rgba(255,255,255,0.88); max-width: 34ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 34px; padding: 0; list-style: none; font-weight: 500; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }

.hero-collage { position: relative; aspect-ratio: 1 / 1.05; }
.hero-collage img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.hero-collage .a { width: 62%; height: 78%; top: 0; left: 0; }
.hero-collage .b { width: 52%; height: 58%; right: 0; bottom: 0; border: 6px solid var(--sage); }
.hero-collage .hero-badge {
  position: absolute;
  height: auto;
  border-radius: 50%;
  box-shadow: none;
  width: 34%;
  max-width: 150px;
  right: 6%;
  top: 4%;
  animation: spin 40s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.3));
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { max-width: 460px; width: 100%; margin: 0 auto; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--sage); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.88); max-width: 46ch; margin: 0; }
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--lime);
  opacity: calc(var(--hero-glow) - 0.02);
  filter: blur(var(--hero-blur, 0));
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321251e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 0 var(--line), var(--shadow);
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--lime-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--lime-deep); }
.card h3 { margin-bottom: 0.3em; }
.card p { color: var(--muted); margin: 0; }
.card .from { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--ink); }

/* Price list */
.price-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.price-group { background: var(--surface); border-radius: var(--radius); padding: 34px 32px 22px; box-shadow: 0 1px 0 var(--line), var(--shadow); }
.price-group h3 { display: flex; align-items: center; gap: 12px; }
.price-group h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); flex: none; }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.price-list li:first-child { border-top: 0; }
.price-list .name { flex: 1; }
.price-list .name small { display: block; color: var(--muted); font-size: 0.92rem; }
.price-list .price { font-weight: 700; white-space: nowrap; }
.note { display: flex; gap: 16px; align-items: flex-start; background: var(--lime-soft); border-radius: var(--radius); padding: 24px 28px; margin-top: 32px; }
.note strong { color: var(--lime-deep); }

/* Reviews */
.rating { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.stars { color: #f5b301; font-size: 1.4rem; letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin: 0;
  position: relative;
  box-shadow: var(--shadow);
}
.review::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--lime);
}
.review p { font-size: 1.08rem; margin-bottom: 18px; }
.review footer { font-weight: 700; display: flex; align-items: center; gap: 12px; }
.review footer span { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.review footer .avatar { font-weight: 700; color: var(--on-lime); font-size: 1rem; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}

/* Gallery strip */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; transition: transform 0.3s ease; }
.gallery img:hover { transform: scale(1.03); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery img:nth-child(n+4) { display: none; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 44px); }
.member { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.member img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 20%; }
.member-body { padding: 32px 32px 36px; }
.member-body .role { font-weight: 700; color: var(--lime-deep); margin-bottom: 14px; display: block; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--lime-soft); color: var(--lime-deep); font-weight: 700; font-size: 0.92rem; padding: 7px 14px; border-radius: 999px; }

/* Prose (long-form pages) */
.prose { max-width: 720px; }
.prose p, .prose li { font-size: 1.12rem; }
.prose h2 { margin-top: 1.4em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 26px;
  border-left: 5px solid var(--lime);
  font-size: 1.3rem;
  line-height: 1.5;
}
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 8px; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 60px); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list .icon { width: 46px; height: 46px; border-radius: 14px; background: var(--lime-soft); display: grid; place-items: center; flex: none; }
.contact-list .icon svg { width: 22px; height: 22px; stroke: var(--lime-deep); }
.contact-list h4 { margin: 0; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-list p { margin: 2px 0 0; font-size: 1.12rem; }
.contact-list a { color: var(--ink); font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); background: var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta { text-align: center; }
.cta h2 { margin-bottom: 0.2em; }
.cta p { max-width: 560px; margin: 0 auto 28px; font-size: 1.15rem; }
.cta .btn-row { justify-content: center; }
.band-lime .btn-ghost { color: var(--on-lime); }
.band-lime .btn-ghost:hover { background: var(--on-lime); color: #fff; border-color: var(--on-lime); }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.post { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 0.25s ease; }
.post:hover { transform: translateY(-4px); color: var(--ink); }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post div { padding: 26px 28px 30px; }
.post h3 { margin-bottom: 0.3em; }
.post p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--sage-dark); color: #dfe3d6; padding: 72px 0 36px; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-base a { color: #dfe3d6; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: var(--lime); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand img { width: 96px; height: 96px; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.92rem; color: #b7bdab; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 6px; }
