/* Tiny Elf Ideas — a sugar-plum counter for last-minute December nights */
:root {
  --bg: #fff7fb;
  --card: #ffffff;
  --ink: #3b1d3a;
  --muted: #8a6a86;
  --primary: #ff5c8a;
  --primary-dark: #e84574;
  --primary-deep: #c22650;
  --primary-ink: #a81c43;
  --accent: #ffc542;
  --line: rgba(59, 29, 58, 0.12);
  --line-strong: rgba(59, 29, 58, 0.24);
  --tint: #fff0f6;
  --shadow-1: 0 1px 2px rgba(59, 29, 58, 0.06);
  --shadow-2: 0 8px 24px rgba(59, 29, 58, 0.08);
  --radius: 16px;
  --max: 1120px;
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 92, 138, 0.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary-dark); }

.te-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.te-skip:focus { left: 12px; top: 12px; }

.te-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 247, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.te-head-inner,
.te-hero,
.te-gen,
.te-prose,
.te-all,
.te-faq,
.te-page {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.te-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.te-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.te-brand .gf-site-icon {
  display: block;
  width: 32px;
  height: 32px;
}

.te-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.te-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.te-nav a:hover {
  background: var(--tint);
  color: var(--primary-ink);
}

.te-hero {
  padding-top: 48px;
  padding-bottom: 24px;
}

.te-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.te-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 92, 138, 0.18);
}

.te-hero h1 {
  max-width: 900px;
  margin: 12px 0;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.te-lede {
  max-width: 65ch;
  margin: 0;
  font-size: 18px;
}

.te-gen {
  padding-top: 8px;
  padding-bottom: 56px;
}

.te-gen-box {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.te-controls {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.te-field + .te-field { margin-top: 20px; }

.te-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.te-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.te-chip {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.te-chip:hover {
  border-color: var(--primary);
  color: var(--primary-ink);
}

.te-chip.is-on {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

.te-chip:focus-visible,
.te-go:focus-visible,
.te-copy:focus-visible,
.te-again:focus-visible,
.te-form button:focus-visible,
.te-form input:focus-visible,
.te-form textarea:focus-visible,
.te-name:focus-visible {
  outline: 3px solid rgba(255, 92, 138, 0.35);
  outline-offset: 2px;
}

.te-go {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary-deep);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-1);
}

.te-go:hover { background: var(--primary-ink); }

.te-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.te-empty {
  margin: 12px 0 0;
  color: #a12d4e;
  font-size: 14px;
  font-weight: 800;
}

.te-result {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 110px;
  padding: 0 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

.te-stripe {
  height: 10px;
  margin: 0 -28px 20px;
  background: repeating-linear-gradient(135deg, var(--primary) 0 12px, #ffffff 12px 24px);
}

.te-stamp {
  position: absolute;
  top: 26px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px dashed rgba(59, 29, 58, 0.35);
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: var(--shadow-1);
}

.te-kicker {
  margin: 0 0 6px;
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.te-title {
  margin: 0 0 6px;
  padding-right: 84px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.te-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.te-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.te-tag {
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.te-plan {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.te-plan div {
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.te-plan dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.te-plan dd {
  margin: 0;
  font-size: 16px;
}

.te-note-box {
  margin-top: 16px;
  padding: 16px;
  background: var(--tint);
  border: 1px solid rgba(255, 92, 138, 0.18);
  border-radius: var(--radius);
}

.te-note-label {
  margin: 0;
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.te-note {
  margin: 6px 0 12px;
  font-size: 16px;
  white-space: pre-line;
}

.te-note-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.te-name-wrap { flex: 1 1 180px; }

.te-name-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.te-name {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.te-copy,
.te-again {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.te-copy {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.te-copy:hover { background: #2a1229; }

.te-again {
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
}

.te-again:hover {
  border-color: var(--primary);
  color: var(--primary-ink);
}

.te-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.te-prose {
  padding-top: 8px;
  padding-bottom: 24px;
}

.te-prose-inner { max-width: 70ch; }

.te-prose h2 {
  margin: 40px 0 12px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.te-prose h3 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.te-prose p,
.te-prose li {
  font-size: 17px;
  line-height: 1.7;
}

.te-prose ul,
.te-prose ol { padding-left: 22px; }

.te-prose li { margin: 6px 0; }

.te-prose a {
  color: var(--primary-dark);
  font-weight: 700;
}

.te-all {
  padding-top: 8px;
  padding-bottom: 24px;
}

.te-all h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.te-all-lede {
  max-width: 70ch;
  margin: 0 0 20px;
  color: var(--ink);
}

.te-all-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.te-all-item {
  align-self: start;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.te-all-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}

.te-all-item summary::-webkit-details-marker { display: none; }

.te-all-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.te-all-item[open] summary::after { content: "\2212"; }

.te-all-title {
  font-size: 16px;
  font-weight: 800;
}

.te-all-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.te-all-body {
  padding: 0 0 16px;
  border-top: 1px dashed var(--line-strong);
  font-size: 15px;
}

.te-all-body p { margin: 10px 0 0; }

.te-all-group {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.te-faq {
  padding-top: 8px;
  padding-bottom: 64px;
}

.te-faq h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.te-faq details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.te-faq details:last-child { border-bottom: 1px solid var(--line); }

.te-faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
}

.te-faq summary::-webkit-details-marker { display: none; }

.te-faq summary::after {
  content: "+";
  color: var(--primary-deep);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.te-faq details[open] summary::after { content: "\2212"; }

.te-faq p {
  max-width: 70ch;
  margin: 8px 0 0;
}

.te-page {
  padding-top: 48px;
  padding-bottom: 64px;
}

.te-page-inner { max-width: 760px; }

.te-page-kicker {
  margin: 0 0 6px;
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.te-page h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
}

.te-page h2 {
  margin: 32px 0 8px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.te-page p,
.te-page li {
  font-size: 16px;
  line-height: 1.7;
}

.te-page ul { padding-left: 22px; }

.te-contact {
  margin-top: 24px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.te-form label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 800;
}

.te-form input,
.te-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.te-form textarea {
  min-height: 140px;
  resize: vertical;
}

.te-form button {
  min-height: 48px;
  margin-top: 16px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary-deep);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.te-form button:hover { background: var(--primary-ink); }

.te-form-msg {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.te-tickets { margin-top: 16px; }

.te-foot {
  margin-top: 24px;
  background: var(--ink);
  color: #fff;
}

.te-foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.te-foot-brand {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.te-foot-note {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.te-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.te-foot-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.te-foot-nav a:hover { color: var(--accent); }

.te-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

@media (max-width: 640px) {
  .te-head-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .te-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .te-hero {
    padding-top: 32px;
  }

  .te-eyebrow {
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .te-hero h1 {
    font-size: 32px;
  }

  .te-gen-box {
    grid-template-columns: 1fr;
  }

  .te-chips { gap: 6px; }

  .te-chip {
    padding: 8px 9px;
    font-size: 13.5px;
  }

  .te-result {
    padding: 0 20px 20px;
  }

  .te-stripe {
    margin: 0 -20px 16px;
  }

  .te-stamp {
    top: 22px;
    right: 14px;
    width: 64px;
    height: 64px;
    font-size: 12px;
  }

  .te-title {
    padding-right: 68px;
    font-size: 26px;
  }

  .te-all-grid {
    grid-template-columns: 1fr;
  }

  .te-all-item summary {
    flex-wrap: wrap;
  }

  .te-prose h2,
  .te-all h2,
  .te-faq h2 {
    font-size: 30px;
  }

  .te-page h1 {
    font-size: 34px;
  }

  .te-foot-inner {
    grid-template-columns: 1fr;
  }

  .te-go,
  .te-copy,
  .te-again {
    min-height: 48px;
  }
}
