/* ============================================================
   The Theatre Duck — clean, minimal, with a little personality
   Accent: warm amber, for all things that glow
   ============================================================ */

:root {
  --bg: #faf9f7;
  --bg-soft: #f2f0ec;
  --ink: #1c1b19;
  --ink-soft: #6b675f;
  --line: #e4e1da;
  --accent: #166534;
  --accent-soft: #e6f4ea;
  --highlighter: #b9e3c3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.05), 0 8px 24px rgba(28, 27, 25, 0.06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--highlighter);
  color: #111;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

mark {
  background: linear-gradient(104deg, transparent 0.4%, var(--highlighter) 0.4%, var(--highlighter) 97%, transparent 97%);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 2px;
}

.container {
  width: min(1080px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: 6.5rem 0 4.5rem;
  text-align: center;
  position: relative;
}

.hero .eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
  transform: rotate(-1deg);
  background: var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero p.lede {
  max-width: 560px;
  margin: 0 auto 1.6rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.status b {
  color: var(--accent);
}

.cta-row {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px) rotate(-1deg);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(28, 27, 25, 0.25);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
}

/* Sticky note */

.sticker {
  position: absolute;
  top: 3.5rem;
  right: 1rem;
  background: var(--white);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--ink);
  transform: rotate(3deg);
  box-shadow: var(--shadow);
  max-width: 220px;
  text-align: left;
}

.sticker::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 30%;
  width: 40%;
  height: 16px;
  background: rgba(22, 101, 52, 0.12);
  transform: rotate(-4deg);
  border: 1px dashed rgba(22, 101, 52, 0.4);
}

@media (max-width: 800px) {
  .sticker { position: static; margin: 0 auto 2rem; transform: rotate(2deg); }
}

/* ---------- Sections ---------- */

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.section-tight {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-head h2 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  z-index: 0;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.5em;
  background: rgba(22, 101, 52, 0.16);
  z-index: -1;
  border-radius: 2px;
}

.section-head a.more {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-gallery {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
}

@media (max-width: 900px) {
  .grid-3, .grid-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-gallery { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px) rotate(0.3deg);
}

.card-link:hover {
  text-decoration: none;
}

.card-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.card-body h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}

/* Light-panel placeholders (CSS-generated glow art) */

.panel {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  text-align: center;
  padding: 0 1rem;
}

.glow-green   { background: radial-gradient(circle at 30% 40%, #86efac, #16a34a 60%, #14532d); }
.glow-blue    { background: radial-gradient(circle at 70% 30%, #7dd3fc, #0ea5e9 60%, #1e3a8a); }
.glow-violet  { background: radial-gradient(circle at 40% 60%, #c4b5fd, #8b5cf6 60%, #4c1d95); }
.glow-teal    { background: radial-gradient(circle at 60% 65%, #5eead4, #14b8a6 60%, #134e4a); }
.glow-pink    { background: radial-gradient(circle at 35% 35%, #f9a8d4, #ec4899 60%, #831843); }
.glow-warm    { background: linear-gradient(140deg, #fdba74, #f97316 55%, #7c2d12); }
.glow-cool    { background: linear-gradient(140deg, #a5f3fc, #0891b2 55%, #164e63); }

/* Gallery tiles */

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}

.tile figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.avatar {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  gap: 0.75rem;
  transform: rotate(-1.5deg);
}

.avatar .initials {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.avatar .initials span {
  color: var(--accent);
}

.avatar .sub {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .about-layout { grid-template-columns: 1fr; }
}

/* ---------- Lists / prose ---------- */

.prose h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  z-index: 0;
}

.prose h2::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.5em;
  background: rgba(22, 101, 52, 0.16);
  z-index: -1;
  border-radius: 2px;
}

.prose p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.prose ul {
  margin: 0 0 1rem 1.25rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.35rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat .num {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat .label {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* ---------- Reviews ---------- */

.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.review p {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.review footer {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner .brand-dot {
  width: 8px;
  height: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.visitor {
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

.visitor b {
  color: var(--accent);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.page-hero .eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  transform: rotate(-1deg);
  background: var(--accent-soft);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 600px;
}

/* ---------- Meta / misc ---------- */

.meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  margin-top: 0.9rem;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.empty-note {
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 0.9rem;
}

/* ---------- Contact card ---------- */

.card-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 2rem;
}

.card-profile {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  position: relative;
}

.card-profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 6px;
  border-radius: 0 0 6px 6px;
  background: var(--accent);
}

.card-profile .eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin: 1.4rem 0 1rem;
  transform: rotate(-1deg);
  background: var(--accent-soft);
}

.card-profile h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.card-profile .handle {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card-profile .lede {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
}

.avatar-large {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #86efac, #16a34a 60%, #14532d);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line), 0 8px 20px rgba(22, 101, 52, 0.25);
  transform: rotate(-3deg);
  overflow: hidden;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.avatar-fallback span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5rem;
  margin-right: 0.1em;
}

.avatar-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-fields {
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

.contact-fields > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line);
}

.contact-fields > div:last-child {
  border-bottom: none;
}

.contact-fields dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.15rem;
}

.contact-fields dd {
  color: var(--ink);
  font-size: 0.95rem;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.link-btn span {
  color: var(--accent);
  transition: transform 0.15s ease;
}

.link-btn:hover {
  text-decoration: none;
  background: var(--white);
  border-color: var(--accent);
  transform: translateX(3px);
}

.link-btn:hover span {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .card-profile { padding: 2.25rem 1.5rem 2rem; }
  .contact-fields > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Contact popup ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 25, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 440px;
  padding: 1.9rem;
  position: relative;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.modal h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.modal .modal-sub {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row textarea {
  min-height: 110px;
  resize: vertical;
}

.modal .btn {
  width: 100%;
  text-align: center;
}

.form-status {
  font-size: 0.9rem;
  margin-top: 0.8rem;
  min-height: 1.2em;
}

.form-status.ok {
  color: #15803d;
}

.form-status.err {
  color: #b91c1c;
}
