/* Public Notes extends the portfolio's existing type and colors. */
.hero-nav a {
  color: var(--primary-color);
  font-size: 1.6rem;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.hero-nav a:hover { text-decoration: underline; }

.notes-home-intro {
  max-width: 48ch;
  margin-bottom: 2.8rem;
  color: var(--secondary-color);
  font-size: 2rem;
  line-height: 1.5;
  font-weight: 300;
}

.note-preview {
  display: block;
  border-block: 1px solid var(--primary-accent);
  padding: 2.4rem 0;
  color: inherit;
  text-decoration: none;
}

.note-preview time,
.note-date,
.note-meta {
  color: var(--secondary-color);
  font-size: 1.4rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.note-preview h3 {
  margin: 1.4rem 0 1.2rem;
  max-width: 28ch;
  font-size: clamp(2.6rem, 3vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.note-preview p {
  max-width: 54ch;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--primary-accent);
}

.note-read,
.notes-all {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary-color);
  font-size: 1.6rem;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.note-preview:hover h3,
.notes-all:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.notes-page { min-height: 100svh; }
.notes-shell { width: min(92%, 120rem); margin-inline: auto; }

.notes-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-block: 2.4rem;
  border-bottom: 1px solid var(--primary-accent);
}

.notes-brand {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.notes-masthead a,
.notes-footer a { color: inherit; text-decoration: none; text-underline-offset: 0.3em; }
.notes-masthead a:hover,
.notes-footer a:hover { text-decoration: underline; }
.notes-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2.8rem; font-size: 1.6rem; }

.notes-intro { padding-block: clamp(6rem, 9vw, 12rem) 5.6rem; }
.notes-intro h1 {
  font-size: clamp(6.4rem, 12vw, 15rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
  margin-bottom: 3rem;
}
.notes-intro p { max-width: 40ch; color: var(--secondary-color); font-size: clamp(1.8rem, 2.3vw, 2.6rem); line-height: 1.5; font-weight: 300; }
.notes-list { list-style: none; padding-bottom: 10rem; }
.notes-row {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr) 3rem;
  gap: 2rem;
  padding-block: 3.4rem;
  border-block: 1px solid var(--primary-accent);
  text-decoration: none;
  color: inherit;
}
.notes-row h2 { max-width: 28ch; font-size: clamp(2.8rem, 3.6vw, 4.6rem); line-height: 1.12; font-weight: 400; letter-spacing: -0.04em; }
.notes-row p { margin-top: 1.8rem; max-width: 54ch; color: var(--primary-accent); font-size: 1.8rem; line-height: 1.6; font-weight: 300; }
.notes-row:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.note-arrow { font-size: 2.8rem; line-height: 1; text-align: right; }

.note-layout { max-width: 78rem; margin-inline: auto; padding-top: 5rem; padding-bottom: 10rem; }
.note-back { display: inline-block; color: var(--secondary-color); font-size: 1.6rem; text-decoration: none; text-underline-offset: 0.3em; }
.note-back:hover { color: var(--primary-color); text-decoration: underline; }
.note-header { margin-top: 5rem; margin-bottom: 4.4rem; }
.note-header h1 { font-size: clamp(3.8rem, 5.5vw, 6.8rem); line-height: 1.05; font-weight: 500; letter-spacing: -0.05em; text-wrap: balance; margin-bottom: 2.4rem; }
.note-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.note-copy { font-size: 1.9rem; line-height: 1.75; font-weight: 400; overflow-wrap: break-word; }
.note-copy p + p { margin-top: 2.4rem; }
.note-copy .note-lead { font-size: clamp(2.1rem, 2.6vw, 2.6rem); line-height: 1.55; letter-spacing: -0.015em; }
.note-copy h2 { margin-top: 5rem; margin-bottom: 1.8rem; font-size: clamp(2.6rem, 3vw, 3.2rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
.note-copy strong { font-weight: 600; }
.note-copy a { color: inherit; text-underline-offset: 0.2em; }
.note-end { margin-top: 5rem; padding-top: 2.4rem; border-top: 1px solid var(--primary-accent); }
.notes-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2rem; padding-block: 3rem; border-top: 1px solid var(--primary-accent); }
.notes-footer > a { font-size: 2rem; font-weight: 500; letter-spacing: -0.04em; }
.notes-footer ul { display: flex; flex-wrap: wrap; gap: 2rem; list-style: none; font-size: 1.4rem; color: var(--secondary-color); }

.notes-page :focus-visible,
.hero-nav a:focus-visible,
.notes-home a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.notes-page ::selection { background: var(--primary-color); color: var(--background-color); }
.skip-link { position: absolute; top: -10rem; left: 4%; z-index: 2; padding: 1.2rem 2rem; background: var(--primary-color); color: var(--background-color); font-size: 1.6rem; }
.skip-link:focus { top: 1rem; }

@media (max-width: 600px) {
  .notes-masthead { gap: 1rem; padding-block: 1.6rem; }
  .notes-brand { font-size: 1.6rem; }
  .notes-nav { gap: 1.4rem; font-size: 1.4rem; }
  .notes-row { grid-template-columns: minmax(0, 1fr) 2.4rem; gap: 1.6rem; padding-block: 2.4rem; }
  .notes-row > .note-date { grid-column: 1 / -1; }
  .notes-row h2 { font-size: 3rem; }
  .note-header { margin-top: 3.6rem; }
  .note-layout { padding-top: 3.2rem; padding-bottom: 7rem; }
  .note-copy { font-size: 1.8rem; }
  .notes-list { padding-bottom: 7rem; }
}
