:root {
  --ink: #111318;
  --ink-soft: #1a1f29;
  --paper: #f6f1e7;
  --paper-deep: #e7dcc9;
  --muted: #8b908f;
  --muted-light: #c9c2b3;
  --signal: #a7f06a;
  --signal-deep: #385f26;
  --copper: #c67d48;
  --blueprint: #465f7d;
  --line: rgba(246, 241, 231, 0.14);
  --dark-line: rgba(17, 19, 24, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --measure: 74rem;
  --narrow: 48rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 5%, rgba(167, 240, 106, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(70, 95, 125, 0.24), transparent 26rem),
    var(--ink);
  color: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 0;
}

body:has(.admin-toolbar) {
  padding-bottom: 4.75rem;
}

a {
  color: inherit;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--signal);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 0.16rem solid var(--signal);
  outline-offset: 0.2rem;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 0.96;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  letter-spacing: -0.08em;
  margin-bottom: 1.4rem;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.4rem);
  letter-spacing: -0.055em;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  padding: 0;
}

li {
  list-style: none;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(17, 19, 24, 0.78);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 1rem max(1.25rem, calc((100vw - var(--measure)) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-identity {
  display: grid;
  line-height: 1;
  text-decoration: none;
}

.site-mark {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-submark,
.eyebrow,
.panel-label,
.happening-state,
.note-card time,
.offer-grid span,
.page-heading > p:first-child {
  color: var(--muted-light);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-submark {
  color: var(--muted);
  font-size: 0.67rem;
  margin-top: 0.38rem;
}

.primary-navigation ul {
  align-items: center;
  display: flex;
  gap: 1.15rem;
  margin: 0;
}

.primary-navigation a {
  color: var(--paper-deep);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 2.4rem;
  padding: 0.45rem 0;
  text-decoration: none;
}

.primary-navigation a[aria-current="page"] {
  color: var(--signal);
}

.primary-navigation .nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding-inline: 1rem;
}

.site-notice {
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  padding: 0.8rem max(1.25rem, calc((100vw - var(--measure)) / 2));
}

.site-notice p {
  margin: 0;
}

.hero-shell,
.section-shell,
.interior-page {
  margin-inline: auto;
  max-width: var(--measure);
  padding-inline: 1.25rem;
}

.hero-shell {
  align-items: end;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  min-height: calc(100vh - 5.25rem);
  padding-bottom: 5rem;
  padding-top: clamp(5rem, 9vw, 8rem);
}

.hero-copy > .content_block_editor:first-child p {
  color: var(--signal);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-summary {
  color: var(--paper-deep);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-actions a,
.button-link,
.event-actions a {
  align-items: center;
  border: 1px solid var(--paper);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
}

.hero-actions a:first-child,
.button-link,
.event-actions a {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.hero-actions a:last-child {
  color: var(--paper);
}

.signal-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  position: relative;
}

.signal-panel::before {
  background: var(--signal);
  border-radius: 999px;
  content: "";
  height: 0.65rem;
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  width: 0.65rem;
}

.signal-panel ol {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.signal-panel li {
  align-items: center;
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr;
  padding: 1rem;
}

.signal-panel li span {
  color: var(--signal);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.section-shell,
.interior-page {
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.split-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.split-section > div:first-child p,
.notes-preview > div:first-child p,
.consult-band > p:not(.eyebrow),
.page-heading > .content_block_editor:last-child p {
  color: var(--paper-deep);
  font-size: 1.08rem;
  max-width: var(--narrow);
}

.offer-grid {
  display: grid;
  gap: 1rem;
}

.offer-grid article,
.empty-notes-card,
.note-card,
.method-grid div {
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.2rem;
}

.offer-grid article:first-child {
  background: rgba(167, 240, 106, 0.12);
  border-color: rgba(167, 240, 106, 0.38);
}

.offer-grid p,
.method-grid p,
.note-card p,
.empty-notes-card p,
.note-detail p,
.note-body li {
  color: var(--paper-deep);
}

.method-section {
  background: var(--paper);
  border-radius: 2rem;
  color: var(--ink);
  margin-bottom: 5rem;
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.method-section .eyebrow {
  color: var(--signal-deep);
}

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

.method-grid div {
  background: rgba(17, 19, 24, 0.04);
  border-color: var(--dark-line);
}

.method-grid p {
  color: #3e4146;
  margin: 0;
}

.notes-preview {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.text-link {
  color: var(--signal);
  font-weight: 800;
}

.note-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.note-list--compact {
  gap: 0.85rem;
}

.note-card {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 5.2rem minmax(0, 1fr) auto;
}

.note-card time {
  align-items: center;
  aspect-ratio: 1;
  background: var(--paper);
  border-radius: 1rem;
  color: var(--ink);
  display: grid;
  justify-items: center;
  line-height: 1;
  padding: 0.75rem;
}

.note-card time strong {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.note-card h3 a {
  text-decoration: none;
}

.note-card > a {
  color: var(--signal);
  font-weight: 800;
  text-decoration: none;
}

.consult-band {
  background:
    linear-gradient(135deg, rgba(167, 240, 106, 0.2), rgba(70, 95, 125, 0.16)),
    var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 2rem;
  margin-bottom: 4rem;
  padding: clamp(2rem, 6vw, 4.5rem);
}

.interior-page {
  min-height: 62vh;
}

.page-heading {
  margin-bottom: 3rem;
  max-width: 52rem;
}

.page-heading h1 {
  max-width: 10ch;
}

.notes-section + .notes-section {
  margin-top: 4rem;
}

.note-detail {
  margin-inline: auto;
  max-width: 48rem;
}

.note-detail header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.note-detail header p {
  color: var(--signal);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note-detail time {
  color: var(--muted-light);
  display: block;
  font-weight: 700;
}

.note-body {
  margin-top: 2rem;
}

.note-body h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

.note-body ul,
.note-body ol {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
}

.note-body li {
  list-style: disc;
}

.note-detail footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.site-footer {
  background: #090b0f;
  border-top: 1px solid var(--line);
  color: var(--paper-deep);
  padding: 3rem max(1.25rem, calc((100vw - var(--measure)) / 2));
}

.site-footer section {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 12rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer nav ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.site-footer small {
  border-top: 1px solid var(--line);
  display: block;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.admin-toolbar {
  align-items: center;
  background: rgba(9, 11, 15, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  color: var(--paper);
  display: flex;
  gap: 1rem;
  justify-content: center;
  left: 0;
  padding: 0.8rem 1rem;
  position: fixed;
  right: 0;
  z-index: 30;
}

.admin-toolbar p {
  margin: 0;
}

.admin-toolbar nav {
  display: flex;
  gap: 0.75rem;
}

.admin-toolbar a {
  color: var(--signal);
  font-weight: 800;
}

.content_block_editor.admin .rendered_content {
  cursor: pointer;
  outline: 1px dashed rgba(167, 240, 106, 0.75);
  outline-offset: 0.25rem;
}

.cb-modal.hidden {
  display: none;
}

.cb-modal {
  inset: 0;
  position: fixed;
  z-index: 100;
}

.cb-modal-backdrop {
  background: rgba(9, 11, 15, 0.72);
  inset: 0;
  position: absolute;
}

.cb-modal-dialog {
  background: var(--paper);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  left: 50%;
  max-height: calc(100vh - 4rem);
  max-width: 44rem;
  overflow: auto;
  padding: 1rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 2rem);
}

.cb-modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cb-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
}

.cb-plain {
  min-height: 10rem;
  width: 100%;
}

.btn-like {
  border: 1px solid var(--dark-line);
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}

.btn-like.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .primary-navigation ul {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-shell,
  .split-section,
  .notes-preview,
  .site-footer section {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
  }

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

@media (max-width: 620px) {
  .hero-actions,
  .note-detail footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a,
  .button-link,
  .event-actions a {
    width: 100%;
  }

  .note-card {
    grid-template-columns: 4.6rem minmax(0, 1fr);
  }

  .note-card > a {
    grid-column: 2;
  }
}
