.hero {
  padding-top: calc(var(--space-xl) + 0.5rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  max-width: 58rem;
  padding-bottom: 8rem;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(3.6rem, 3rem + 2vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-block: var(--space-sm) var(--space-md);
  text-wrap: balance;
}

.hero-log-accent {
  color: var(--accent-secondary);
}

.hero-copy p {
  max-width: 58ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

.hero-side {
  display: none;
}

.hero-copy .note-line {
  max-width: 54ch;
}

.hero-intro {
  max-width: 62ch;
}

.hero-deck {
  max-width: 48rem;
  color: var(--color-text);
  font-size: clamp(1.15rem, 1.05rem + 0.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
}

.hero-intro.stack-md > * + * {
  margin-top: var(--space-xl);
}

.hero-log-panel {
  max-width: min(100%, 60rem);
  min-height: 9rem;
  display: grid;
  align-items: center;
  padding: clamp(1.35rem, 2vw, 1.9rem);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 1.5rem 1.5rem 0;
  background:
    linear-gradient(90deg, rgba(125, 255, 58, 0.1), rgba(125, 255, 58, 0.04) 24%, rgba(255, 255, 255, 0.01) 100%),
    rgba(17, 20, 22, 0.88);
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.65;
}

.hero-signup {
  display: grid;
  gap: var(--space-sm);
  max-width: 56rem;
  padding: 1.1rem;
  border: 1px solid rgba(38, 53, 61, 0.9);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(102, 230, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(17, 20, 22, 0.82);
}

.hero-signup .newsletter-form {
  align-items: end;
  width: 100%;
}

.hero-signup .form-field {
  flex: 1 1 14rem;
}

.hero-signup .button {
  min-width: 16.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-signup .newsletter-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-signup .newsletter-consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--accent-primary);
}

.hero-signup .newsletter-consent span {
  display: inline;
}

.hero-signup .newsletter-consent a,
.hero-signup .newsletter-consent a:hover,
.hero-signup .newsletter-consent a:focus,
.hero-signup .newsletter-consent a:focus-visible,
.hero-signup .newsletter-consent a:active,
.hero-signup .newsletter-consent a:visited {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.hero-signup .newsletter-consent--secondary {
  margin-top: -0.35rem;
}

.hero-signup .newsletter-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-signup .newsletter-turnstile {
  min-height: 0;
}

.hero-signup .newsletter-feedback {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-signup .newsletter-feedback.is-success {
  color: rgba(240, 246, 250, 0.9);
}

.hero-signup .newsletter-feedback.is-error {
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-signup .newsletter-success {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  justify-items: center;
  text-align: center;
  align-content: center;
}

.hero-signup .newsletter-success[hidden] {
  display: none !important;
}

.hero-signup[data-newsletter-preview-success] .newsletter-success[hidden] {
  display: grid !important;
}

.hero-signup .newsletter-success strong {
  color: var(--accent-secondary);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-signup .newsletter-success p {
  margin: 0;
  max-width: 36rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.hero-signup.hero-signup--busy .button,
.hero-signup .button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.hero-signup.hero-signup--submitted {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 15rem;
}

.hero-signup.hero-signup--submitted > .newsletter-hero-heading,
.hero-signup.hero-signup--submitted > .newsletter-form,
.hero-signup.hero-signup--submitted > .newsletter-disclaimer,
.hero-signup.hero-signup--submitted > .newsletter-consent,
.hero-signup.hero-signup--submitted > .newsletter-turnstile,
.hero-signup.hero-signup--submitted > .newsletter-feedback {
  display: none !important;
}

.hero-panel {
  padding: var(--space-xl);
  border-radius: 1.8rem;
  border: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, rgba(102, 230, 255, 0.08), rgba(125, 255, 58, 0.04)),
    var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.hero-panel p {
  color: var(--color-text-secondary);
}

.hero-panel .meta-badge {
  margin-bottom: var(--space-sm);
}

.hero-stack {
  display: grid;
  gap: var(--space-xl);
}

.home-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.home-led {
  display: grid;
  gap: var(--space-lg);
}

.home-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.home-logs {
  display: grid;
  gap: var(--space-sm);
}

.home-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.home-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.home-sidebar {
  display: grid;
  gap: var(--space-lg);
}

.page-intro {
  padding-top: var(--space-3xl);
}

.page-intro h1 {
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-sm);
}

.page-intro p {
  max-width: 56ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
}

.featured-article {
  display: grid;
  gap: var(--space-md);
  max-width: 56rem;
  background:
    linear-gradient(90deg, rgba(125, 255, 58, 0.04), rgba(102, 230, 255, 0.03)),
    var(--color-surface);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: var(--space-xl);
  align-items: start;
}

.about-sections {
  display: grid;
  gap: var(--space-xl);
}

.about-block {
  max-width: var(--layout-reading);
}

.about-hero {
  display: block;
}

.about-hero-copy {
  max-width: min(100%, 72rem);
  display: grid;
  gap: var(--space-lg);
}

.about-video {
  padding: 0;
  overflow: hidden;
  max-width: min(100%, 48rem);
}

.about-video-frame {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  min-height: 100%;
  background:
    radial-gradient(circle at center, rgba(102, 230, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(10, 12, 14, 0.92);
}

.about-video-frame .label-mono {
  color: var(--accent-secondary);
}

.about-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.about-article {
  max-width: var(--layout-reading);
}

.about-prose {
  display: grid;
  gap: var(--space-md);
}

.about-prose h2,
.about-prose h3 {
  margin-top: var(--space-lg);
  line-height: var(--leading-tight);
}

.about-prose h2 {
  font-size: clamp(1.9rem, 1.55rem + 0.9vw, 2.5rem);
}

.about-prose h3 {
  font-size: clamp(1.35rem, 1.15rem + 0.4vw, 1.7rem);
}

.about-prose p,
.about-prose li {
  max-width: 65ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

.about-prose strong,
.about-prose em {
  color: var(--color-text);
}

.about-prose ul {
  display: grid;
  gap: var(--space-sm);
  padding-left: 1.2rem;
}

.about-callout {
  margin-top: var(--space-sm);
}

.about-cta {
  margin-top: var(--space-lg);
  max-width: 42rem;
}

.about-signoff {
  margin-top: var(--space-sm);
}

.legal-shell {
  max-width: none;
  width: 100%;
  padding: clamp(1.5rem, 2vw, 2rem);
  border: 1px solid rgba(38, 53, 61, 0.9);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(102, 230, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(17, 20, 22, 0.35);
}

.legal-prose {
  gap: var(--space-lg);
  max-width: none;
}

.legal-prose p,
.legal-prose li {
  max-width: none;
}

.legal-page .about-article {
  max-width: none;
}

.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-sm);
}

.legal-prose th,
.legal-prose td {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(38, 53, 61, 0.9);
  text-align: left;
  vertical-align: top;
  color: var(--color-text-secondary);
}

.legal-prose th {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.02);
}

.guide-intro {
  padding-top: var(--space-3xl);
}

.guide-intro-copy {
  max-width: 74rem;
  display: grid;
  gap: var(--space-md);
}

.guide-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.guide-intro-copy h1 {
  max-width: 14ch;
  font-size: clamp(3.15rem, 2.4rem + 2vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.guide-deck {
  max-width: 60ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

.guide-video {
  margin-top: var(--space-lg);
  max-width: min(100%, 48rem);
  padding: 0;
  overflow: hidden;
}

.guide-video-frame {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  min-height: 100%;
  background:
    radial-gradient(circle at center, rgba(102, 230, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(10, 12, 14, 0.92);
}

.guide-video-frame .label-mono {
  color: var(--accent-secondary);
}

.guide-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.guide-inline-figure img,
.guide-article {
  max-width: min(100%, 70rem);
  display: grid;
  gap: var(--space-lg);
}

.guide-article h2,
.guide-article h3 {
  line-height: var(--leading-tight);
}

.guide-article h2 {
  margin-top: var(--space-lg);
  font-size: clamp(1.9rem, 1.55rem + 0.8vw, 2.45rem);
}

.guide-article h3 {
  margin-top: var(--space-md);
  font-size: clamp(1.28rem, 1.1rem + 0.45vw, 1.6rem);
}

.guide-article p,
.guide-article li {
  max-width: 66ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

.guide-article strong,
.guide-article em {
  color: var(--color-text);
}

.guide-article ul,
.guide-numbered-list {
  display: grid;
  gap: var(--space-sm);
  padding-left: 1.2rem;
}

.guide-article hr {
  display: none;
}

.guide-article pre {
  overflow-x: auto;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(102, 230, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(17, 20, 22, 0.82);
  color: var(--color-text);
}

.guide-article code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.7;
}

.guide-inline-figure {
  margin: var(--space-md) 0;
}

.guide-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.guide-table {
  width: min(100%, 70rem);
  border-collapse: collapse;
  border: 1px solid rgba(38, 53, 61, 0.9);
}

.guide-table th,
.guide-table td {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(38, 53, 61, 0.9);
  text-align: left;
  vertical-align: top;
  color: var(--color-text-secondary);
}

.guide-table th {
  color: var(--color-text);
  background: rgba(17, 20, 22, 0.72);
}

.guide-related-notes {
  margin-top: 2.5rem;
}

.guide-mistake-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}

.guide-inline-figure figcaption {
  margin-top: 0.7rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.guide-newsletter-cta {
  display: block;
  max-width: min(100%, 48rem);
}

.newsletter-hero {
  display: block;
}

.newsletter-hero-copy {
  max-width: 72rem;
  display: grid;
  gap: var(--space-md);
}

.newsletter-hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(3.15rem, 2.45rem + 1.9vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.newsletter-deck {
  max-width: 48rem;
  color: var(--color-text);
  font-size: clamp(1.15rem, 1.05rem + 0.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
}

.newsletter-article {
  max-width: min(100%, 68rem);
  display: grid;
  gap: var(--space-lg);
}

.newsletter-article h2 {
  margin-top: var(--space-lg);
  font-size: clamp(1.9rem, 1.55rem + 0.8vw, 2.4rem);
  line-height: var(--leading-tight);
}

.newsletter-article p,
.newsletter-article li {
  max-width: 67ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

.newsletter-article strong,
.newsletter-article em {
  color: var(--color-text);
}

.newsletter-article hr {
  display: none;
}

.newsletter-points {
  display: grid;
  gap: var(--space-lg);
  padding-left: 1.2rem;
}

.newsletter-points li {
  line-height: 1.75;
  padding-left: 0.15rem;
}

.newsletter-points strong {
  display: inline-block;
  margin-right: 0.2rem;
}

.newsletter-mid-cta {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border-left: 3px solid rgba(102, 230, 255, 0.32);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 0 1rem 1rem 0;
}

.newsletter-mid-cta p {
  color: var(--color-text);
}

.newsletter-note {
  color: var(--color-text);
}

.newsletter-subscribe-box {
  max-width: min(100%, 48rem);
  margin-top: var(--space-sm);
}

.newsletter-page .newsletter-subscribe-box h2,
.weekly-log-subscribe h2,
.about-cta h2 {
  font-size: 1.5em;
  line-height: normal;
  letter-spacing: normal;
  font-weight: 700;
  margin: 0;
  text-wrap: unset;
}

.newsletter-article .about-callout {
  justify-self: start;
  inline-size: min(100%, var(--layout-reading));
}

.weekly-log-intro {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-lg);
  min-height: calc(100vh - var(--header-height) - var(--space-lg));
  display: flex;
  align-items: flex-start;
}

.weekly-log-stack {
  max-width: min(100%, 62rem);
  display: grid;
  gap: var(--space-lg);
}

.weekly-log-intro h1 {
  max-width: 16ch;
  font-size: clamp(3.15rem, 2.45rem + 1.9vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.weekly-log-deck {
  max-width: 48rem;
  color: var(--color-text);
  font-size: clamp(1.15rem, 1.05rem + 0.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
}

.weekly-log-lead {
  max-width: 48rem;
  margin-top: var(--space-xl);
}

.weekly-log-latest-block {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.weekly-log-section-title {
  margin-bottom: 0;
}

.weekly-log-section-title h2 {
  font-size: clamp(1.9rem, 1.55rem + 0.8vw, 2.4rem);
  line-height: var(--leading-tight);
  margin-bottom: 0;
}

.weekly-log-latest {
  max-width: min(100%, 62rem);
}

.weekly-log-page .weekly-log-latest {
  width: 100%;
  justify-self: stretch;
  grid-template-columns: minmax(6.5rem, 7.25rem) minmax(0, 1fr);
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

.weekly-log-page .weekly-log-latest .weekly-log-entry-main,
.weekly-log-page .weekly-log-latest .article-row-content {
  width: 100%;
  justify-self: stretch;
  min-width: 0;
}

.weekly-log-page .weekly-log-latest .article-row-content h3,
.weekly-log-page .weekly-log-latest .article-row-content p {
  max-width: none;
  overflow-wrap: anywhere;
}

.weekly-log-page .weekly-log-entry {
  grid-template-columns: minmax(8rem, 9rem) minmax(0, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
  align-items: center;
}

.weekly-log-page .weekly-log-entry--placeholder {
  grid-template-columns: minmax(0, 1fr);
}

.weekly-log-page .weekly-log-entry-meta {
  display: grid;
  gap: 0.7rem;
  align-content: center;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.weekly-log-page .weekly-log-entry .meta,
.weekly-log-page .weekly-log-entry .meta-badge {
  margin: 0;
}

.weekly-log-page .weekly-log-entry .meta {
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.weekly-log-page .weekly-log-entry .meta-badge {
  display: grid;
  gap: 0.18rem;
  padding-inline: 1rem;
  justify-content: center;
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.weekly-log-page .weekly-log-date-label {
  display: block;
}

.weekly-log-page .weekly-log-date-note {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: none;
}

.weekly-log-page .weekly-log-entry-main {
  display: grid;
  gap: 0.95rem;
  min-width: 0;
  align-content: start;
}

.weekly-log-page .weekly-log-entry .article-row-content {
  min-width: 0;
}

.weekly-log-page .weekly-log-entry .article-row-content h3 {
  margin-bottom: 0.65rem;
}

.weekly-log-page .weekly-log-entry .article-row-content p {
  margin-bottom: 0;
}

.weekly-log-page .weekly-log-entry .text-link {
  justify-self: start;
  align-self: start;
  margin-top: 0;
}

.weekly-log-latest p {
  color: var(--color-text-secondary);
}

.weekly-log-subscribe {
  max-width: min(100%, 62rem);
}

.weekly-log-signup-section {
  padding-top: var(--space-lg);
}

.weekly-log-subscribe .button {
  min-width: 16rem;
}

.weekly-log-list {
  max-width: min(100%, 62rem);
}

.weekly-log-continues {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
}

.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: var(--space-xl);
  align-items: start;
}

.benefit-list {
  display: grid;
  gap: var(--space-md);
}

.benefit-list li {
  list-style: none;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.benefit-list li::before {
  content: "•";
  color: var(--color-accent-secondary);
  margin-right: 0.6rem;
}

.faq-grid {
  display: grid;
  gap: var(--space-md);
}

.article-hero {
  padding-top: var(--space-3xl);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, var(--layout-reading)) minmax(14rem, 18rem);
  gap: var(--space-2xl);
  align-items: start;
}

.log-template-page .article-shell {
  grid-template-columns: minmax(0, var(--layout-reading));
}

.log-template-page .log-template-title-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-sm);
}

.log-template-page .log-template-week {
  color: var(--color-text-secondary);
  font-size: clamp(0.6rem, 0.51rem + 0.21vw, 0.775rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.log-template-page .log-template-date-pill {
  display: grid;
  gap: 0.18rem;
  padding: 0.45rem 0.625rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 230, 255, 0.28);
  background: rgba(102, 230, 255, 0.06);
  text-align: center;
  font-size: 0.5em;
}

.log-template-page .log-template-date-label {
  display: block;
  color: var(--color-text-secondary);
}

.log-template-page .log-template-date-note {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.36rem;
  letter-spacing: 0.08em;
}

.article-header h1 {
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  margin-block: var(--space-sm);
}

.article-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-md);
  max-width: 60ch;
}

.article-meta-bar,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.article-body {
  display: grid;
  gap: var(--space-lg);
  padding-top: var(--space-2xl);
}

.log-template-page .article-body {
  padding-top: 0;
}

.log-template-page .article-inline-trade-card {
  margin-block: var(--space-sm);
}

.log-template-page .guide-related-notes p,
.log-template-page .guide-related-notes li {
  max-width: 66ch;
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

.log-template-page .guide-related-notes strong {
  color: var(--color-text);
}

.log-template-page .guide-related-notes ul {
  display: grid;
  gap: var(--space-sm);
  padding-left: 1.2rem;
}

.log-template-page .log-template-recap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}

.log-template-page .log-template-recap-card {
  display: grid;
  gap: 0.85rem;
}

.log-template-page .log-template-recap-card-note {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.log-template-page .log-template-recap-card .trade-card {
  padding: 0.95rem 1rem;
}

.log-template-page .log-template-recap-card .trade-card-header {
  margin-bottom: 0.8rem;
}

.log-template-page .log-template-recap-card .trade-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.log-template-page .log-template-recap-card .trade-card-grid div {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  justify-items: center;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.7rem 0.6rem;
  text-align: center;
}

.log-template-page .log-template-recap-card .trade-card-grid .label-mono,
.log-template-page .log-template-recap-card .trade-card-grid strong {
  text-align: center;
}

.log-template-page .log-template-recap-card .trade-card-grid strong {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-top: 0;
  font-size: clamp(1rem, 0.92rem + 0.18vw, 1.15rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.log-template-page .log-template-field--ticker {
  border-color: rgba(102, 230, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(102, 230, 255, 0.08), rgba(102, 230, 255, 0.02)),
    rgba(27, 31, 34, 0.9);
}

.log-template-page .log-template-field--ticker .label-mono,
.log-template-page .log-template-field--ticker strong {
  color: var(--accent-secondary);
}

.log-template-page .log-template-field--ticker strong {
  font-weight: 800;
  font-size: clamp(1.08rem, 0.98rem + 0.24vw, 1.28rem);
}

.log-template-page .log-template-field--secondary .label-mono,
.log-template-page .log-template-field--secondary strong {
  color: var(--color-text-secondary);
}

.log-template-page .log-template-field--secondary strong {
  font-weight: 600;
}

.log-template-page .log-template-field--highlight {
  border-color: rgba(102, 230, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(102, 230, 255, 0.08), rgba(102, 230, 255, 0.02)),
    rgba(27, 31, 34, 0.9);
}

.log-template-page .log-template-field--highlight .label-mono,
.log-template-page .log-template-field--highlight strong {
  color: var(--accent-secondary);
}

.log-template-page .log-template-field--highlight strong {
  font-weight: 700;
}

.log-template-page .log-template-watchlist-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
}

.log-template-page .log-template-watchlist-card .trade-card-header {
  margin-bottom: 0.2rem;
}

.log-template-page .log-template-watchlist-stack {
  display: grid;
  gap: 0.75rem;
}

.log-template-page .log-template-watchlist-stack .trade-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(38, 53, 61, 0.68);
}

.log-template-page .log-template-watchlist-stack .trade-card-grid:first-child {
  padding-top: 0;
  border-top: 0;
}

.log-template-page .log-template-watchlist-stack .trade-card-grid div {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  justify-items: center;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.7rem 0.6rem;
  text-align: center;
}

.log-template-page .log-template-watchlist-stack .label-mono,
.log-template-page .log-template-watchlist-stack strong {
  text-align: center;
}

.log-template-page .log-template-watchlist-stack strong {
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.log-template-page .log-template-watchlist-stack .trade-card-grid > div:nth-child(3) strong,
.log-template-page .log-template-watchlist-stack .trade-card-grid > div:nth-child(4) strong,
.log-template-page .log-template-watchlist-stack .trade-card-grid > div:nth-child(5) strong {
  font-size: clamp(0.82rem, 0.78rem + 0.1vw, 0.92rem);
  font-weight: 500;
  line-height: 1.35;
}

.article-body h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  margin-top: var(--space-md);
}

.article-body p,
.article-body li {
  color: var(--color-text-secondary);
}

.log-template-page .article-body p,
.log-template-page .article-body li {
  font-size: 18px;
}

.article-body ul {
  padding-left: 1.2rem;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: grid;
  gap: var(--space-md);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  align-items: center;
}

.home-notes .section-header,
.home-guides .section-header,
.home-value .section-header {
  max-width: 52rem;
}

.home-page .section-header p,
.home-page .guide-card p,
.home-page .cta-panel p {
  font-size: var(--text-md);
  line-height: var(--leading-body);
}

.home-page .cta-panel form[data-newsletter-enhanced] .newsletter-disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
}

.home-page .newsletter-subscribe-box .meta {
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 400;
  letter-spacing: normal;
  line-height: var(--leading-body);
  text-transform: none;
}

@media (min-width: 981px) {
  .home-page .hero-layout {
    padding-bottom: 8rem;
  }

  .home-page .hero ~ .section {
    padding-block: calc(var(--space-3xl) * 0.58);
  }

  .home-page .hero ~ .section-tight {
    padding-block: calc(var(--space-2xl) * 0.58);
  }

  .home-page .hero ~ .section .section-header {
    margin-bottom: calc(var(--space-xl) * 0.62);
  }

  .home-page .hero ~ .section .home-section-grid,
  .home-page .hero ~ .section .home-archive-grid {
    gap: calc(var(--space-xl) * 0.68);
  }

  .home-page .hero ~ .section .home-value-grid,
  .home-page .hero ~ .section .home-guides-grid {
    gap: calc(var(--space-lg) * 0.68);
  }

  .home-page .hero + .section {
    margin-top: -4.5rem;
    padding-top: 0;
  }

  .page-intro ~ .section,
  .page-intro ~ .section-tight,
  .guide-intro ~ .section,
  .guide-intro ~ .section-tight,
  .weekly-log-intro ~ .section,
  .weekly-log-intro ~ .section-tight {
    padding-block: calc(var(--space-3xl) * 0.58);
  }

  .page-intro ~ .section-tight,
  .guide-intro ~ .section-tight,
  .weekly-log-intro ~ .section-tight {
    padding-block: calc(var(--space-2xl) * 0.58);
  }

  .page-intro ~ .section .section-header,
  .page-intro ~ .section-tight .section-header,
  .guide-intro ~ .section .section-header,
  .guide-intro ~ .section-tight .section-header,
  .weekly-log-intro ~ .section .section-header,
  .weekly-log-intro ~ .section-tight .section-header {
    margin-bottom: calc(var(--space-xl) * 0.62);
  }

  .page-intro ~ .section .home-section-grid,
  .page-intro ~ .section .home-archive-grid,
  .guide-intro ~ .section .home-section-grid,
  .guide-intro ~ .section .home-archive-grid,
  .weekly-log-intro ~ .section .home-section-grid,
  .weekly-log-intro ~ .section .home-archive-grid {
    gap: calc(var(--space-xl) * 0.68);
  }

  .page-intro ~ .section .guides-grid,
  .page-intro ~ .section .related-grid,
  .guide-intro ~ .section .guides-grid,
  .guide-intro ~ .section .related-grid,
  .weekly-log-intro ~ .section .guides-grid,
  .weekly-log-intro ~ .section .related-grid,
  .page-intro ~ .section .home-value-grid,
  .page-intro ~ .section .home-guides-grid,
  .guide-intro ~ .section .home-value-grid,
  .guide-intro ~ .section .home-guides-grid,
  .weekly-log-intro ~ .section .home-value-grid,
  .weekly-log-intro ~ .section .home-guides-grid {
    gap: calc(var(--space-lg) * 0.68);
  }

  .newsletter-page .page-intro.section-tight,
  .about-page .page-intro.section-tight {
    padding-top: calc(var(--space-xl) + 0.5rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .weekly-log-page .weekly-log-intro {
    padding-top: calc(var(--space-xl) + 0.5rem);
    padding-bottom: 8rem;
    min-height: 100vh;
    align-items: center;
  }

  .newsletter-page .newsletter-hero,
  .about-page .about-hero,
  .weekly-log-page .weekly-log-intro .container {
    width: min(100% - 2rem, var(--layout-max));
    max-width: 58rem;
    margin-left: auto;
    padding-bottom: 8rem;
  }

  .newsletter-page .newsletter-hero-copy,
  .about-page .about-hero-copy,
  .weekly-log-page .weekly-log-stack {
    max-width: 100%;
  }

  .newsletter-page .page-intro.section-tight + .section,
  .about-page .page-intro.section-tight + .section,
  .weekly-log-page .weekly-log-intro + .weekly-log-signup-section {
    position: relative;
    z-index: 2;
    margin-top: -2rem;
  }

  .newsletter-page .page-intro.section-tight + .section {
    margin-top: -4.5rem;
    padding-top: 0;
  }

  .about-page .page-intro.section-tight + .section {
    margin-top: -4.5rem;
    padding-top: 0;
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .home-section-grid,
  .home-archive-grid,
  .split-panel,
  .newsletter-layout,
  .article-shell,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .guides-grid,
  .home-value-grid,
  .home-guides-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guides-grid .guide-card:nth-child(odd) {
    transform: none;
  }

  .weekly-log-page .weekly-log-entry {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    align-items: start;
  }

  .weekly-log-page .weekly-log-entry-meta {
    gap: 0.6rem;
    justify-items: start;
    text-align: left;
  }

  .weekly-log-page .weekly-log-entry .meta-badge {
    margin-inline: 0;
    justify-content: flex-start;
    justify-items: start;
    text-align: left;
  }

  .weekly-log-page .weekly-log-entry .text-link {
    justify-self: start;
    margin-top: 0;
  }

  .log-template-page .log-template-recap-card .trade-card-grid,
  .log-template-page .log-template-watchlist-stack .trade-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .log-template-page .log-template-recap-card .trade-card-grid div,
  .log-template-page .log-template-watchlist-stack .trade-card-grid div {
    min-width: 0;
  }

  .log-template-page .log-template-recap-card .trade-card-grid > div:first-child,
  .log-template-page .log-template-watchlist-stack .trade-card-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .log-template-page .log-template-watchlist-stack .label-mono {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }
}

@media (min-width: 701px) and (max-width: 960px) {
  .guides-page .guides-grid {
    grid-template-columns: 1fr;
  }

  .home-page .hero-layout {
    padding-bottom: 4.5rem;
  }

  .home-page .hero ~ .section {
    padding-block: calc(var(--space-3xl) * 0.42);
  }

  .home-page .hero ~ .section-tight {
    padding-block: calc(var(--space-2xl) * 0.42);
  }

  .home-page .hero ~ .section .section-header {
    margin-bottom: calc(var(--space-xl) * 0.5);
  }

  .home-page .hero ~ .section .home-section-grid,
  .home-page .hero ~ .section .home-archive-grid {
    gap: calc(var(--space-xl) * 0.55);
  }

  .home-page .hero ~ .section .home-value-grid,
  .home-page .hero ~ .section .home-guides-grid {
    gap: calc(var(--space-lg) * 0.55);
  }

  .home-page .hero ~ .section .home-guides-grid {
    grid-template-columns: 1fr;
  }

  .page-intro ~ .section,
  .page-intro ~ .section-tight,
  .guide-intro ~ .section,
  .guide-intro ~ .section-tight,
  .article-hero ~ .section,
  .article-hero ~ .section-tight,
  .weekly-log-intro ~ .section,
  .weekly-log-intro ~ .section-tight {
    padding-block: calc(var(--space-3xl) * 0.42);
  }

  .page-intro ~ .section .section-header,
  .page-intro ~ .section-tight .section-header,
  .guide-intro ~ .section .section-header,
  .guide-intro ~ .section-tight .section-header,
  .article-hero ~ .section .section-header,
  .article-hero ~ .section-tight .section-header,
  .weekly-log-intro ~ .section .section-header,
  .weekly-log-intro ~ .section-tight .section-header {
    margin-bottom: calc(var(--space-xl) * 0.5);
  }

  .page-intro ~ .section .home-section-grid,
  .page-intro ~ .section .home-archive-grid,
  .guide-intro ~ .section .home-section-grid,
  .guide-intro ~ .section .home-archive-grid,
  .article-hero ~ .section .home-section-grid,
  .article-hero ~ .section .home-archive-grid,
  .weekly-log-intro ~ .section .home-section-grid,
  .weekly-log-intro ~ .section .home-archive-grid {
    gap: calc(var(--space-xl) * 0.55);
  }

  .page-intro ~ .section .guides-grid,
  .page-intro ~ .section .related-grid,
  .guide-intro ~ .section .guides-grid,
  .guide-intro ~ .section .related-grid,
  .article-hero ~ .section .guides-grid,
  .article-hero ~ .section .related-grid,
  .weekly-log-intro ~ .section .guides-grid,
  .weekly-log-intro ~ .section .related-grid,
  .page-intro ~ .section .home-value-grid,
  .page-intro ~ .section .home-guides-grid,
  .guide-intro ~ .section .home-value-grid,
  .guide-intro ~ .section .home-guides-grid,
  .article-hero ~ .section .home-value-grid,
  .article-hero ~ .section .home-guides-grid,
  .weekly-log-intro ~ .section .home-value-grid,
  .weekly-log-intro ~ .section .home-guides-grid {
    gap: calc(var(--space-lg) * 0.55);
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: var(--space-3xl);
    align-items: flex-start;
  }

  .home-page .hero {
    min-height: auto;
    padding-top: calc(var(--space-3xl) * 0.67);
  }

  .home-page .hero-layout {
    gap: calc(1.75rem * 0.67);
    padding-bottom: 1.35rem;
  }

  .home-page .hero-stack {
    gap: calc(var(--space-xl) * 0.67);
  }

  .home-page .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 10.6vw, 3.7rem);
    line-height: 0.9;
    margin-block: calc(var(--space-sm) * 0.67) calc(var(--space-md) * 0.67);
    white-space: nowrap;
    text-wrap: nowrap;
  }

  .home-page .hero-intro,
  .home-page .hero-deck,
  .home-page .hero-log-panel,
  .home-page .hero-signup {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-page .hero-intro.stack-md > * + * {
    margin-top: calc(var(--space-xl) * 0.67);
  }

  .home-page .hero-signup {
    gap: calc(var(--space-sm) * 0.67);
    padding-block: calc(1.1rem * 0.67);
  }

  .hero-signup .newsletter-consent--secondary {
    margin-top: 0;
  }

  .home-page .section {
    padding-block: calc(var(--space-2xl) * 0.67);
  }

  .home-page .section-tight {
    padding-block: calc(var(--space-xl) * 0.67);
  }

  .home-page .section-header {
    margin-bottom: calc(var(--space-xl) * 0.67);
  }

  .home-page .home-section-grid,
  .home-page .home-archive-grid {
    gap: calc(var(--space-xl) * 0.67);
  }

  .home-page .home-value-grid,
  .home-page .home-guides-grid {
    gap: calc(var(--space-lg) * 0.67);
  }

  .page-intro {
    padding-top: calc(var(--space-3xl) * 0.67);
  }

  .guide-intro,
  .article-hero,
  .weekly-log-intro {
    padding-top: calc(var(--space-3xl) * 0.67);
  }

  .newsletter-page .page-intro.section-tight,
  .about-page .page-intro.section-tight,
  .legal-page .page-intro.section-tight,
  .guide-intro.section-tight {
    padding-bottom: calc(var(--space-xl) * 0.67);
  }

  .weekly-log-intro {
    padding-bottom: calc(var(--space-lg) * 0.67);
  }

  .page-intro ~ .section,
  .page-intro ~ .section-tight,
  .guide-intro ~ .section,
  .guide-intro ~ .section-tight,
  .article-hero ~ .section,
  .article-hero ~ .section-tight,
  .weekly-log-intro ~ .section,
  .weekly-log-intro ~ .section-tight {
    padding-block: calc(var(--space-2xl) * 0.67);
  }

  .page-intro ~ .section .section-header,
  .page-intro ~ .section-tight .section-header,
  .guide-intro ~ .section .section-header,
  .guide-intro ~ .section-tight .section-header,
  .article-hero ~ .section .section-header,
  .article-hero ~ .section-tight .section-header,
  .weekly-log-intro ~ .section .section-header,
  .weekly-log-intro ~ .section-tight .section-header {
    margin-bottom: calc(var(--space-xl) * 0.67);
  }

  .weekly-log-intro {
    min-height: auto;
    display: block;
  }

  .hero-copy h1,
  .page-intro h1,
  .article-header h1,
  .guide-intro-copy h1 {
    max-width: none;
  }

  .guides-grid,
  .guide-mistake-gallery,
  .home-value-grid,
  .home-guides-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .trade-card {
    padding: var(--space-lg);
  }

  .weekly-log-subscribe .button {
    width: 100%;
    min-width: 0;
  }

  .log-template-page .article-hero {
    padding-top: calc(var(--space-3xl) * 0.67);
  }

  .log-template-page .article-body {
    gap: calc(var(--space-lg) * 0.67);
  }

  .log-template-page .log-template-recap-card .trade-card-grid,
  .log-template-page .log-template-watchlist-stack .trade-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .log-template-page .log-template-recap-card .trade-card-grid > div:first-child,
  .log-template-page .log-template-watchlist-stack .trade-card-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .log-template-page .log-template-recap-card .trade-card-grid strong,
  .log-template-page .log-template-watchlist-stack strong {
    font-size: clamp(0.98rem, 0.92rem + 0.2vw, 1.12rem);
  }

  .log-template-page .log-template-watchlist-stack .label-mono {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
}
