/* === Self-hosted Fonts === */

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/eb-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === Reset === */

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

html, body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: #0a0a0a;
  color: #f1f1f1;
  font-size: 1.125rem;
  line-height: 1.7;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
}

main {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  padding: 6rem 1.5rem 0;
  text-align: center;
  flex: 1;
}

main.home {
  max-width: none;
  padding: 0;
  text-align: left;
}

/* === Site Nav === */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
}

.nav-logo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: #fff;
  text-decoration: none;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #fff;
  text-decoration: none;
}

/* === Hero === */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 3rem 8rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, #141414, #0a0a0a 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero .cta {
  margin-top: 3rem;
  display: inline-block;
}

/* === Page Header (sub-pages) === */

.page-header {
  padding: 10rem 3rem 5rem;
  max-width: 900px;
}

.page-header .hero-label {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* === Content Sections (two-column) === */

.content-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.4s ease;
}

.content-section h2 {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0;
  position: sticky;
  top: 5rem;
  align-self: start;
  transition: color 0.4s ease;
}

.content-section.in-view h2 {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.section-body p,
.section-body li {
  color: #999;
  font-size: 1.05rem;
  line-height: 1.8;
}

.section-body p + p {
  margin-top: 0.75rem;
}

.learn-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: #ccc;
}

/* === Discover Row === */

.discover-row {
  display: flex;
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.discover-link {
  flex: 1;
  padding: 3rem;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s ease, background 0.3s ease;
}

.discover-link:last-child {
  border-right: none;
}

.discover-link:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
}

h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

h1.glow {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #e5e5e5;
  margin-bottom: 0.5rem;
}

p {
  color: #b0b0b0;
  margin-bottom: 0.75rem;
}

a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.section {
  text-align: left;
  margin-top: 2.5rem;
}

.section + .section {
  margin-top: 2rem;
}

.cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: transparent;
  color: #999;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cta:hover {
  color: #fff;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.4);
}

ol, ul {
  color: #b0b0b0;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

li {
  margin-bottom: 0.5rem;
}

details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
}

summary {
  padding: 1rem;
  cursor: pointer;
  color: #e0e0e0;
  font-style: italic;
  font-weight: 500;
  list-style: none;
}

summary::marker,
summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  font-style: normal;
  color: #666;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "\2212";
}

details .faq-answer {
  padding: 0 1rem 1rem;
  color: #bcbcbc;
}

label {
  display: block;
  color: #ccc;
  margin-bottom: 0.25rem;
}

textarea,
select,
input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: #f1f1f1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

textarea:focus,
select:focus,
.editor:focus {
  outline: none;
  border-color: #555;
}

.editor-toolbar {
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toolbar-btn {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #888;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}

.toolbar-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.toolbar-sep {
  width: 1px;
  align-self: stretch;
  margin: 6px 2px;
  background: rgba(255, 255, 255, 0.08);
}

.editor {
  width: 100%;
  min-height: 150px;
  max-height: 60vh;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: #f1f1f1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  overflow-y: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.editor.glow {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.editor-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.word-count {
  font-size: 0.75rem;
  color: #555;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.word-count.has-content {
  color: #666;
}

.editor:empty::before {
  content: "\201CYou don\2019t write poetry because you have something to say. You write it because there\2019s no other way to say it.\201D";
  color: #555;
  font-style: italic;
  pointer-events: none;
}

.editor blockquote {
  border-left: 2px solid #555;
  padding-left: 0.75rem;
  margin: 0.5rem 0;
  color: #999;
  font-style: italic;
}

select {
  appearance: none;
  cursor: pointer;
}

input[type="file"] {
  cursor: pointer;
  padding: 0.5rem;
}

input[type="file"]::file-selector-button {
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.75rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #ccc;
}

.checkbox-row input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  margin-top: 0.1rem;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-row input[type="checkbox"]:checked {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.checkbox-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.field-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

.hint {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
}

.error {
  font-size: 0.875rem;
  color: #f87171;
  margin-top: 0.25rem;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}

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

footer {
  width: 100%;
  margin-top: 6rem;
  padding: 3rem 3rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #555;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer a {
  color: #777;
}

.turnstile-container {
  height: 0;
  overflow: hidden;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.5rem 0;
  font-size: 0.8rem;
}


/* === Audio Tab Toggle === */

.mode-selector {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.mode-btn {
  all: unset;
  cursor: pointer;
  flex: 1;
  padding: 0.85rem 0;
  text-align: center;
  color: #666;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mode-btn:hover {
  color: #999;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.mode-btn.active {
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

/* === Recorder States === */

.recorder-state {
  text-align: center;
  padding: 1.5rem 0;
}

.record-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.record-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.record-btn.stop {
  border-color: #c0392b;
  box-shadow: 0 0 16px rgba(192, 57, 43, 0.3);
}

.ctrl-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease;
}

.ctrl-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.rec-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.rec-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0392b;
}

.rec-dot.paused {
  background: #888;
}

.rec-timer {
  color: #e0e0e0;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.rec-timer.paused {
  color: #999;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 40px;
}

.waveform-bar {
  width: 3px;
  border-radius: 1px;
  background: #c0392b;
  transition: height 0.1s ease;
}

.waveform.paused .waveform-bar {
  background: #666;
}

.rec-labels {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #666;
}

.rec-labels span {
  width: 72px;
  text-align: center;
}

.recorder-prompt {
  color: #999;
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 1.25rem;
}

.recorder-hint {
  color: #555;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.paused-label {
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
  margin-left: 0.25rem;
}

/* === Playback / Review === */

.playback-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.playback-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.scrub-container {
  flex: 1;
  min-width: 0;
}

.scrub-track {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #444;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  margin: 0;
  border: none;
}

.scrub-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  margin-top: -7px;
}

.scrub-track::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 5px;
}

.scrub-track::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.scrub-track::-moz-range-track {
  height: 10px;
  background: transparent;
  border-radius: 5px;
  border: none;
}

.timestamps {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #888;
}

.recorder-actions {
  display: flex;
  gap: 0.75rem;
}

.recorder-action {
  all: unset;
  cursor: pointer;
  flex: 1;
  padding: 0.7rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #999;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.recorder-action:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.recorder-action.primary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
}

.recorder-confirmation {
  color: #ccc;
  font-style: italic;
  padding: 1rem 0;
}

.recorder-unsupported {
  color: #999;
  font-style: italic;
  padding: 1.5rem 0;
}

/* === Responsive === */

@media (max-width: 768px) {
  .site-nav {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 0 1.5rem 5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3.5rem 1.5rem;
  }

  .content-section h2 {
    position: static;
  }

  .page-header {
    padding: 7rem 1.5rem 3rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .discover-row {
    flex-direction: column;
    gap: 0;
  }

  .discover-link {
    padding: 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .discover-link:last-child {
    border-bottom: none;
  }

  footer {
    padding: 2rem 1.5rem;
  }
}
