:root {
  --notebook-paper: #f1eee3;
  --notebook-card: #e8e2cf;
  --notebook-ink: #181a17;
  --notebook-pencil: #5b5748;
  --notebook-forest: #175c46;
  --notebook-forest-deep: #0d3b2c;
  --notebook-rust: #9c4a32;
  --notebook-hair: rgba(24, 26, 23, 0.16);
  --notebook-grid: rgba(87, 83, 74, 0.085);
}

body {
  margin: 0;
  background-color: var(--notebook-paper);
  background-image:
    linear-gradient(var(--notebook-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--notebook-grid) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--notebook-ink);
  font-family: "Newsreader", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

body > nav,
body > section,
body > .stats-bar,
body > footer {
  display: none !important;
}

.new-site,
.new-site *,
.new-site *::before,
.new-site *::after {
  box-sizing: border-box;
}

.new-site {
  min-height: 100vh;
  color: var(--notebook-ink);
}

.new-site a {
  color: inherit;
}

.new-site .mono {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
}

.notebook-shell,
.new-site main,
.notebook-footer {
  width: min(100%, 1400px);
  margin: 0 auto;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px 0;
  color: var(--notebook-pencil);
  font-size: 10px;
  text-transform: uppercase;
}

.notebook-nav {
  position: relative;
  top: auto;
  left: auto;
  z-index: 10;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 14px 40px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--notebook-hair);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

.notebook-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--notebook-ink);
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.notebook-logo svg {
  width: 40px;
  height: 34px;
  fill: var(--notebook-forest);
}

.notebook-logo .logo-shade {
  fill: var(--notebook-forest-deep);
  opacity: 0.48;
}

.notebook-logo .logo-tip {
  opacity: 0.82;
}

.notebook-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.notebook-links a {
  position: relative;
  display: block;
  padding: 5px 0;
  text-decoration: none;
}

.notebook-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--notebook-forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.notebook-links a:hover::after,
.notebook-links a:focus-visible::after {
  transform: scaleX(1);
}

.notebook-links a.active {
  color: var(--notebook-forest);
}

.notebook-links a.active::after {
  transform: scaleX(1);
}

.nav-subscribe {
  justify-self: end;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--notebook-ink);
  font: 13px "Newsreader", serif;
  text-decoration: none;
  cursor: pointer;
}

.nav-subscribe:hover {
  color: var(--notebook-forest);
}

.notebook-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 40px 48px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--notebook-pencil);
  font-size: 18px;
  font-style: italic;
}

.notebook-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(76px, 14vw, 188px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.75;
  user-select: none;
}

.notebook-hero h1 span {
  display: block;
}

.notebook-hero h1 span:first-child {
  color: var(--notebook-forest);
}

.hero-byline {
  position: relative;
  z-index: 2;
  max-width: 590px;
  margin: 30px auto 0;
  color: var(--notebook-pencil);
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
}

.hero-byline strong {
  color: var(--notebook-ink);
  font-style: normal;
  font-weight: 600;
}

.scribble {
  position: absolute;
  z-index: 3;
  color: var(--notebook-pencil);
  font: 600 22px "Caveat", cursive;
  pointer-events: none;
}

.scribble-one {
  top: 25%;
  left: 4%;
  transform: rotate(-6deg);
}

.scribble-two {
  right: 4%;
  top: 31%;
  color: var(--notebook-forest-deep);
  transform: rotate(5deg);
}

.scribble-three {
  right: 10%;
  bottom: 15%;
  transform: rotate(-2deg);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--notebook-hair);
  border-bottom: 1px solid var(--notebook-hair);
  color: var(--notebook-pencil);
  font-size: 10px;
  text-transform: uppercase;
}

.hero-strip span {
  padding: 18px 20px;
  text-align: center;
  border-left: 1px solid var(--notebook-hair);
}

.hero-strip span:first-child {
  border-left: 0;
}

.notebook-section {
  max-width: none;
  margin: 0;
  padding: 88px 40px;
  border-top: 1px solid var(--notebook-hair);
}

.hero-strip + .notebook-section {
  border-top: 0;
}

.section-index {
  display: block;
  margin-bottom: 19px;
  color: var(--notebook-forest);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}

.new-site h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.new-site h2 em {
  color: var(--notebook-forest);
  font-weight: 500;
}

.section-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}

.section-intro .section-index {
  grid-column: 1 / -1;
  margin-bottom: -40px;
}

.section-intro > p,
.portfolio-heading > p {
  max-width: 530px;
  margin: 0;
  color: var(--notebook-pencil);
  font-size: 17px;
  line-height: 1.65;
}

.approach-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 46px;
  border: 1px solid var(--notebook-hair);
  border-radius: 4px;
  background: rgba(232, 226, 207, 0.5);
}

.approach-metric {
  display: grid;
  gap: 9px;
  padding: 25px 28px 23px;
  border-left: 1px solid var(--notebook-hair);
}

.approach-metric:first-child {
  border-left: 0;
}

.approach-metric strong {
  color: var(--notebook-forest-deep);
  font: 600 clamp(32px, 4vw, 48px)/1 "Fraunces", serif;
  letter-spacing: -0.035em;
}

.approach-metric strong.negative {
  color: var(--notebook-rust);
}

.approach-metric span {
  color: var(--notebook-pencil);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approach-metrics-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 15px;
  border-top: 1px solid var(--notebook-hair);
  color: var(--notebook-pencil);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--notebook-hair);
  border-bottom: 1px solid var(--notebook-hair);
}

.approach-card {
  min-height: 310px;
  padding: 30px 26px 28px;
  border-left: 1px solid var(--notebook-hair);
}

.approach-card:first-child {
  border-left: 0;
}

.card-number {
  display: block;
  margin-bottom: 52px;
  color: var(--notebook-forest);
  font-size: 10px;
  text-transform: uppercase;
}

.approach-card h3 {
  margin: 0 0 13px;
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 600;
}

.approach-card p {
  margin: 0;
  color: var(--notebook-pencil);
  font-size: 15px;
  line-height: 1.6;
}

.card-note {
  display: block;
  margin-top: 22px;
  color: var(--notebook-forest-deep);
  font: 600 18px "Caveat", cursive;
  transform: rotate(-2deg);
}

.about-section {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 90px;
  align-items: center;
}

.about-copy {
  max-width: 770px;
}

.about-copy h2 {
  margin-bottom: 35px;
}

.about-copy p {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--notebook-pencil);
  font-size: 17px;
  line-height: 1.7;
}

.about-copy .about-lead {
  color: var(--notebook-ink);
  font-size: 21px;
}

.drop-cap {
  float: left;
  margin: 0.08em 0.08em 0 0;
  color: var(--notebook-forest);
  font: 700 3em/0.72 "Fraunces", serif;
}

.about-card {
  position: relative;
  padding: 42px;
  border: 1px solid var(--notebook-hair);
  border-radius: 5px;
  background: var(--notebook-card);
  box-shadow: 13px 13px 0 rgba(24, 26, 23, 0.055);
}

.about-card::before {
  content: "independent by design";
  position: absolute;
  top: -20px;
  right: 16px;
  color: var(--notebook-forest-deep);
  font: 600 19px "Caveat", cursive;
  transform: rotate(3deg);
}

.about-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 32px;
  border: 1.5px solid var(--notebook-ink);
  border-radius: 50%;
  color: var(--notebook-forest);
  font: 700 24px "Fraunces", serif;
}

.about-quote {
  margin: 0;
  color: var(--notebook-ink);
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-transform: none;
}

.about-rule {
  height: 1px;
  margin: 32px 0 23px;
  background: var(--notebook-hair);
}

.about-facts {
  display: grid;
  gap: 13px;
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
}

.about-facts div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.about-facts dt {
  color: var(--notebook-pencil);
}

.about-facts dd {
  margin: 0;
  color: var(--notebook-ink);
  text-align: right;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  font-size: 10px;
  text-transform: uppercase;
}

.about-actions a {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--notebook-forest);
  text-decoration: none;
}

.about-actions a:hover {
  color: var(--notebook-ink);
}

.newsletter-section {
  background: rgba(232, 226, 207, 0.36);
}

.newsletter-heading,
.portfolio-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}

.newsletter-pitch {
  max-width: 530px;
}

.newsletter-pitch p {
  margin: 0 0 25px;
  color: var(--notebook-pencil);
  font-size: 17px;
  line-height: 1.65;
}

.ink-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 14px 20px;
  border: 1px solid var(--notebook-ink);
  border-radius: 3px;
  background: var(--notebook-ink);
  color: var(--notebook-paper);
  font: 500 11px "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.ink-button:hover {
  border-color: var(--notebook-forest);
  background: var(--notebook-forest);
}

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

.issue-grid-single {
  grid-template-columns: minmax(0, 840px);
  justify-content: center;
}

.issue-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.1fr;
  gap: 18px 30px;
  padding: 25px;
  border: 1px solid var(--notebook-hair);
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

a.issue-card:hover {
  transform: translateY(-4px) rotate(-0.25deg);
  box-shadow: 8px 10px 0 rgba(24, 26, 23, 0.06);
}

.issue-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  color: var(--notebook-pencil);
  font-size: 9px;
  text-transform: uppercase;
}

.issue-paper {
  position: relative;
  min-height: 235px;
  padding: 25px 22px;
  overflow: hidden;
  border: 1px solid var(--notebook-hair);
  background: #f7f4e9;
  box-shadow: 6px 7px 0 rgba(24, 26, 23, 0.065);
}

.issue-paper > span {
  display: block;
  margin-bottom: 23px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--notebook-ink);
  font: 500 8px "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
}

.issue-paper h3 {
  margin: 0 0 22px;
  font: 600 23px/1.05 "Fraunces", serif;
}

.paper-lines {
  display: grid;
  gap: 7px;
}

.paper-lines i {
  display: block;
  height: 1px;
  background: rgba(24, 26, 23, 0.2);
}

.paper-lines i:last-child {
  width: 68%;
}

.issue-paper svg {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  width: calc(100% - 36px);
  height: 42px;
  fill: none;
  stroke: var(--notebook-forest);
  stroke-linecap: round;
  stroke-width: 2;
}

.issue-card > p {
  align-self: center;
  margin: 0;
  color: var(--notebook-pencil);
  font-size: 15px;
  line-height: 1.6;
}

.read-link {
  grid-column: 2;
  align-self: end;
  width: max-content;
  border-bottom: 1px solid currentColor;
  color: var(--notebook-forest);
  font-size: 9px;
  text-transform: uppercase;
}

.issue-card-upcoming .issue-paper svg {
  stroke: var(--notebook-rust);
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 34px;
  border-top: 1px solid var(--notebook-hair);
  border-bottom: 1px solid var(--notebook-hair);
}

.portfolio-stats > div {
  padding: 25px 22px;
  border-left: 1px solid var(--notebook-hair);
}

.portfolio-stats > div:first-child {
  border-left: 0;
}

.stat-label,
.portfolio-stats small {
  display: block;
  color: var(--notebook-pencil);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-stats strong {
  display: block;
  margin: 9px 0 7px;
  color: var(--notebook-forest);
  font: 700 clamp(28px, 3vw, 42px)/1 "Fraunces", serif;
}

.portfolio-stats strong.negative {
  color: var(--notebook-rust);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.live-chart-card,
.holdings-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--notebook-hair);
  border-radius: 5px;
  background: rgba(232, 226, 207, 0.62);
}

.chart-title-row,
.holdings-head,
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.chart-title-row .mono,
.holdings-head .mono {
  display: block;
  margin-bottom: 6px;
  color: var(--notebook-pencil);
  font-size: 9px;
  text-transform: uppercase;
}

.chart-title-row strong {
  font: 600 20px "Fraunces", serif;
}

.chart-key {
  display: flex;
  gap: 18px;
  align-items: start;
  color: var(--notebook-pencil);
  font-size: 9px;
  text-transform: uppercase;
}

.chart-key span::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  margin: 0 6px 3px 0;
  background: var(--notebook-forest);
}

.chart-key .key-benchmark::before {
  background: var(--notebook-rust);
}

.new-chart-wrap {
  position: relative;
  height: 370px;
  margin-top: 24px;
}

.chart-foot {
  margin-top: 14px;
  color: var(--notebook-pencil);
  font-size: 8px;
  text-transform: uppercase;
}

.holdings-head {
  align-items: baseline;
  margin-bottom: 19px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--notebook-hair);
}

.hand-note {
  color: var(--notebook-forest-deep);
  font: 600 18px "Caveat", cursive;
  transform: rotate(2deg);
}

.holdings-table-wrap {
  max-height: 398px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--notebook-hair) transparent;
}

.holdings-card table {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.holdings-card th,
.holdings-card td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--notebook-hair);
  text-align: right;
  white-space: nowrap;
}

.holdings-card th {
  color: var(--notebook-pencil);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.holdings-card th:first-child,
.holdings-card td:first-child {
  padding-left: 0;
  text-align: left;
}

.holdings-card th:last-child,
.holdings-card td:last-child {
  padding-right: 0;
}

.holding-ticker {
  color: var(--notebook-ink);
  font-weight: 600;
}

.holding-positive {
  color: var(--notebook-forest);
}

.holding-negative {
  color: var(--notebook-rust);
}

.portfolio-disclosure {
  max-width: 760px;
  margin: 25px 0 0;
  color: var(--notebook-pencil);
  font-size: 11px;
  line-height: 1.55;
}

.portfolio-intro-actions {
  max-width: 530px;
}

.portfolio-intro-actions > p {
  margin: 0;
  color: var(--notebook-pencil);
  font-size: 17px;
  line-height: 1.65;
}

.history-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 22px;
  padding: 13px 17px;
  border: 1px solid var(--notebook-ink);
  border-radius: 3px;
  background: var(--notebook-ink);
  color: var(--notebook-paper);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.history-button:hover {
  border-color: var(--notebook-forest);
  background: var(--notebook-forest);
}

.trade-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(13, 20, 17, 0.74);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
  transition: opacity 180ms ease;
}

.trade-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.trade-modal {
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-height: min(900px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid var(--notebook-hair);
  border-radius: 5px;
  outline: 0;
  background-color: var(--notebook-paper);
  background-image:
    linear-gradient(var(--notebook-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--notebook-grid) 1px, transparent 1px);
  background-size: 34px 34px;
  box-shadow: 16px 18px 0 rgba(0, 0, 0, 0.16);
  color: var(--notebook-ink);
  transform: translateY(14px);
  transition: transform 180ms ease;
}

.trade-modal-overlay.open .trade-modal {
  transform: translateY(0);
}

.trade-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding: 30px 34px 27px;
  border-bottom: 1px solid var(--notebook-hair);
  background: rgba(241, 238, 227, 0.94);
}

.trade-modal-header .section-index {
  margin-bottom: 10px;
}

.trade-modal-header h2 {
  margin: 0;
  font: 600 clamp(34px, 5vw, 54px)/1 "Fraunces", serif;
  letter-spacing: -0.035em;
}

.trade-modal-header p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--notebook-pencil);
  font-size: 14px;
  line-height: 1.5;
}

.trade-modal-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--notebook-hair);
  border-radius: 50%;
  background: transparent;
  color: var(--notebook-ink);
  font: 300 29px/1 "Newsreader", serif;
  cursor: pointer;
}

.trade-modal-close:hover {
  border-color: var(--notebook-forest);
  color: var(--notebook-forest);
}

.trade-modal-body {
  padding: 0 34px 32px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--notebook-hair) transparent;
}

.trade-ticker-group {
  border-bottom: 1px solid var(--notebook-hair);
}

.trade-ticker-group > summary {
  display: grid;
  grid-template-columns: minmax(160px, 230px) minmax(0, 1fr) auto 24px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

.trade-ticker-group > summary::-webkit-details-marker,
.fill-details > summary::-webkit-details-marker {
  display: none;
}

.trade-symbol {
  min-width: 0;
  color: var(--notebook-forest);
  font: 700 clamp(15px, 1.35vw, 20px) "Fraunces", serif;
  overflow-wrap: anywhere;
}

.trade-name {
  overflow: hidden;
  color: var(--notebook-pencil);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-count {
  color: var(--notebook-pencil);
  font-size: 9px;
  text-transform: uppercase;
}

.trade-chevron {
  color: var(--notebook-forest);
  font: 24px/1 "Newsreader", serif;
  text-align: center;
  transition: transform 180ms ease;
}

.trade-ticker-group[open] .trade-chevron {
  transform: rotate(45deg);
}

.trade-cycle-list {
  display: grid;
  gap: 14px;
  padding: 0 0 24px 250px;
}

.trade-cycle-card {
  padding: 20px;
  border: 1px solid var(--notebook-hair);
  border-radius: 4px;
  background: rgba(232, 226, 207, 0.6);
}

.trade-cycle-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 17px;
}

.trade-cycle-top > .mono {
  color: var(--notebook-pencil);
  font-size: 9px;
  text-transform: uppercase;
}

.holding-badge {
  padding: 5px 8px;
  border: 1px solid var(--notebook-hair);
  border-radius: 999px;
  font: 500 8px "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.holding-badge.is-open {
  border-color: rgba(23, 92, 70, 0.3);
  background: rgba(23, 92, 70, 0.08);
  color: var(--notebook-forest);
}

.holding-badge.is-closed {
  color: var(--notebook-pencil);
}

.trade-cycle-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--notebook-hair);
  border-bottom: 1px solid var(--notebook-hair);
}

.trade-cycle-stats > div {
  padding: 14px;
  border-left: 1px solid var(--notebook-hair);
}

.trade-cycle-stats > div:first-child {
  border-left: 0;
}

.trade-cycle-stats dt {
  margin-bottom: 7px;
  color: var(--notebook-pencil);
  font: 500 8px "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trade-cycle-stats dd {
  margin: 0;
  font: 600 15px "Fraunces", serif;
  font-variant-numeric: tabular-nums;
}

.fill-details {
  margin-top: 15px;
}

.fill-details > summary {
  width: max-content;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--notebook-forest);
  font-size: 8px;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.fill-table-wrap {
  margin-top: 13px;
  overflow-x: auto;
}

.fill-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.fill-table-wrap th,
.fill-table-wrap td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--notebook-hair);
  text-align: right;
  white-space: nowrap;
}

.fill-table-wrap th:first-child,
.fill-table-wrap td:first-child,
.fill-table-wrap th:nth-child(2),
.fill-table-wrap td:nth-child(2) {
  text-align: left;
}

.fill-table-wrap th {
  color: var(--notebook-pencil);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.notebook-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 35px;
  align-items: start;
  padding: 40px;
  border-top: 1px solid var(--notebook-hair);
  background: transparent;
  color: var(--notebook-pencil);
  font-size: 13px;
  line-height: 1.65;
}

.notebook-footer strong {
  color: var(--notebook-ink);
  font: 600 18px "Fraunces", serif;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  font-size: 9px;
  text-transform: uppercase;
}

.notebook-footer a {
  text-decoration: none;
}

.notebook-footer a:hover {
  color: var(--notebook-forest);
}

/* Dedicated Newsletter and Portfolio pages. */
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: 60px;
  align-items: end;
  min-height: 0;
  padding: 42px 40px 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--notebook-hair);
}

.page-hero > .section-index {
  grid-column: 1 / -1;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(52px, 6.4vw, 86px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.page-hero h1 em {
  color: var(--notebook-forest);
  font-weight: 500;
}

.page-hero > p {
  grid-column: 2;
  max-width: 590px;
  margin: 0 0 8px;
  color: var(--notebook-pencil);
  font-size: 18px;
  line-height: 1.6;
}

.page-scribble {
  position: absolute;
  right: 8%;
  top: 28%;
  color: var(--notebook-forest-deep);
  font: 600 22px "Caveat", cursive;
  transform: rotate(4deg);
}

.archive-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 50px;
}

.archive-heading > p {
  max-width: 500px;
  margin: 0;
  color: var(--notebook-pencil);
  font-size: 17px;
  line-height: 1.65;
}

.subscribe-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 90px;
  align-items: center;
  background: rgba(232, 226, 207, 0.4);
}

.subscribe-copy > p {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--notebook-pencil);
  font-size: 17px;
  line-height: 1.65;
}

.subscribe-form {
  display: grid;
  padding: 34px;
  border: 1px solid var(--notebook-hair);
  border-radius: 5px;
  background: var(--notebook-card);
  box-shadow: 10px 11px 0 rgba(24, 26, 23, 0.05);
}

.subscribe-form label {
  margin: 17px 0 8px;
  color: var(--notebook-pencil);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscribe-form label:first-child {
  margin-top: 0;
}

.subscribe-form label span {
  float: right;
  opacity: 0.72;
}

.subscribe-form input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--notebook-hair);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--notebook-ink);
  font: 17px "Newsreader", serif;
}

.subscribe-form input:focus {
  border-color: var(--notebook-forest);
}

.subscribe-form .ink-button {
  justify-content: space-between;
  margin-top: 27px;
}

.subscribe-form .ink-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  min-height: 18px;
  margin: 14px 0 0;
  font-size: 13px;
}

.form-message.success {
  color: var(--notebook-forest);
}

.form-message.error {
  color: var(--notebook-rust);
}

.compact-heading {
  margin-bottom: 45px;
}

.about-profile {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--notebook-hair);
  border-radius: 5px;
  background: var(--notebook-card);
  box-shadow: 12px 13px 0 rgba(24, 26, 23, 0.06);
  transform: rotate(-0.45deg);
}

.about-photo::after {
  content: "the long view";
  position: absolute;
  right: 22px;
  bottom: 48px;
  padding: 2px 7px;
  background: rgba(241, 238, 227, 0.82);
  color: var(--notebook-forest-deep);
  font: 600 20px "Caveat", cursive;
  transform: rotate(2deg);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 2px;
  filter: saturate(0.9) contrast(1.02);
}

.about-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 3px 0;
  color: var(--notebook-pencil);
  font-size: 8px;
  text-transform: uppercase;
}

.profile-copy h2 {
  margin-bottom: 30px;
}

.profile-copy > p {
  margin: 15px 0 0;
  color: var(--notebook-pencil);
  font-size: 17px;
  line-height: 1.67;
}

.profile-copy .profile-lead {
  color: var(--notebook-ink);
  font-size: 20px;
}

.principles-section {
  background: rgba(232, 226, 207, 0.4);
}

.principles-heading {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 45px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--notebook-hair);
  border-bottom: 1px solid var(--notebook-hair);
}

.principles-grid article {
  min-height: 260px;
  padding: 28px;
  border-left: 1px solid var(--notebook-hair);
}

.principles-grid article:first-child {
  border-left: 0;
}

.principles-grid .card-number {
  margin-bottom: 45px;
}

.principles-grid h3 {
  margin: 0 0 12px;
  font: 600 25px "Fraunces", serif;
}

.principles-grid p {
  margin: 0;
  color: var(--notebook-pencil);
  font-size: 15px;
  line-height: 1.6;
}

.footer-copy {
  justify-self: end;
  font-size: 9px;
  text-align: right;
  text-transform: uppercase;
}

[data-new-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 550ms ease, transform 550ms ease;
}

[data-new-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Newsletter modal, restyled to match the notebook system. */
.modal-overlay {
  background: rgba(13, 20, 17, 0.7) !important;
  backdrop-filter: blur(6px);
}

.modal-card {
  border: 1px solid var(--notebook-hair) !important;
  border-radius: 5px !important;
  background-color: var(--notebook-paper) !important;
  background-image:
    linear-gradient(var(--notebook-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--notebook-grid) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  box-shadow: 14px 16px 0 rgba(0, 0, 0, 0.15) !important;
  color: var(--notebook-ink) !important;
}

.modal-eyebrow,
.modal-field label {
  color: var(--notebook-forest) !important;
  font-family: "IBM Plex Mono", monospace !important;
}

.modal-title,
.modal-result-title {
  color: var(--notebook-ink) !important;
  font-family: "Fraunces", serif !important;
}

.modal-sub,
.modal-result-body {
  color: var(--notebook-pencil) !important;
  font-family: "Newsreader", serif !important;
}

.modal-field input {
  border-color: var(--notebook-hair) !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  font-family: "Newsreader", serif !important;
}

.modal-field input:focus {
  border-color: var(--notebook-forest) !important;
  box-shadow: 0 0 0 3px rgba(23, 92, 70, 0.12) !important;
}

.modal-submit {
  border-radius: 2px !important;
  background: var(--notebook-ink) !important;
  font-family: "IBM Plex Mono", monospace !important;
}

.modal-submit:hover {
  background: var(--notebook-forest) !important;
}

@media (max-width: 1060px) {
  .notebook-nav {
    grid-template-columns: 1fr auto;
  }

  .notebook-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    margin-top: 17px;
  }

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

  .approach-card:nth-child(3) {
    border-left: 0;
  }

  .approach-card:nth-child(n + 3) {
    border-top: 1px solid var(--notebook-hair);
  }

  .issue-card {
    grid-template-columns: 1fr;
  }

  .issue-card > p,
  .read-link {
    grid-column: 1;
  }

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

@media (max-width: 760px) {
  .utility-bar {
    padding: 12px 20px 0;
  }

  .utility-bar span:last-child {
    display: none;
  }

  .notebook-nav {
    padding: 12px 20px 16px;
  }

  .notebook-links {
    justify-content: flex-start;
    gap: 23px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .notebook-links::-webkit-scrollbar {
    display: none;
  }

  .notebook-hero {
    padding: 54px 20px 42px;
  }

  .approach-metric {
    gap: 7px;
    padding: 19px 10px 17px;
    text-align: center;
  }

  .approach-metric strong {
    font-size: clamp(27px, 9vw, 38px);
  }

  .approach-metrics-note {
    line-height: 1.55;
  }

  .notebook-hero h1 {
    font-size: clamp(64px, 22vw, 120px);
    line-height: 0.8;
  }

  .scribble {
    display: none;
  }

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

  .hero-strip span:nth-child(3) {
    border-left: 0;
  }

  .hero-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--notebook-hair);
  }

  .notebook-section {
    padding: 66px 20px;
  }

  .section-intro,
  .about-section,
  .about-profile,
  .newsletter-heading,
  .portfolio-heading,
  .archive-heading,
  .subscribe-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-hero {
    display: block;
    min-height: 0;
    padding: 34px 20px 32px;
  }

  .page-hero h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .page-hero > p {
    margin: 18px 0 0;
  }

  .page-scribble {
    display: none;
  }

  .subscribe-form {
    padding: 28px 23px;
  }

  .about-photo {
    padding: 8px;
    transform: none;
  }

  .about-photo figcaption {
    display: grid;
  }

  .principles-heading,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid article {
    min-height: 0;
    border-top: 1px solid var(--notebook-hair);
    border-left: 0;
  }

  .principles-grid article:first-child {
    border-top: 0;
  }

  .section-intro .section-index {
    margin-bottom: -12px;
  }

  .approach-grid,
  .issue-grid,
  .portfolio-stats {
    grid-template-columns: 1fr;
  }

  .approach-card {
    min-height: 0;
    border-top: 1px solid var(--notebook-hair);
    border-left: 0;
  }

  .approach-card:first-child {
    border-top: 0;
  }

  .card-number {
    margin-bottom: 30px;
  }

  .about-card {
    padding: 32px 27px;
  }

  .portfolio-stats > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-top: 1px solid var(--notebook-hair);
    border-left: 0;
  }

  .portfolio-stats > div:first-child {
    border-top: 0;
  }

  .portfolio-stats strong {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
  }

  .chart-title-row,
  .chart-foot {
    display: grid;
  }

  .new-chart-wrap {
    height: 290px;
  }

  .trade-modal-overlay {
    padding: 10px;
  }

  .trade-modal {
    max-height: calc(100vh - 20px);
  }

  .trade-modal-header {
    padding: 23px 20px 20px;
  }

  .trade-modal-body {
    padding: 0 20px 22px;
  }

  .trade-ticker-group > summary {
    grid-template-columns: 96px minmax(0, 1fr) 20px;
    gap: 11px;
  }

  .trade-count {
    grid-column: 2;
    grid-row: 2;
  }

  .trade-chevron {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .trade-symbol {
    font-size: 20px;
  }

  .trade-cycle-list {
    padding-left: 0;
  }

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

  .trade-cycle-stats > div:nth-child(3) {
    border-top: 1px solid var(--notebook-hair);
    border-left: 0;
  }

  .trade-cycle-stats > div:nth-child(4) {
    border-top: 1px solid var(--notebook-hair);
  }

  .notebook-footer {
    grid-template-columns: 1fr;
    padding: 35px 20px;
  }

  .footer-copy {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .notebook-logo span {
    display: none;
  }

  .notebook-links {
    font-size: 13px;
  }

  .issue-card,
  .live-chart-card,
  .holdings-card {
    padding: 18px;
  }

  .chart-key {
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-new-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
