/* Personal journal. Kept apart from styles.css so the Community Arts pages keep their layout. */

:root {
  --ink: #f3eee6;
  --paper: #100e0c;
  --muted: #c2b8ae;
  --frame: #1c1916;
  --line: rgb(243 238 230 / 0.14);
  --line-strong: rgb(243 238 230 / 0.22);
  --accent: #e4a08f;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

a {
  text-underline-offset: 0.15em;
}

.dj-skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 20;
  transform: translateY(-150%);
  padding: 0.6rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.dj-skip:focus {
  transform: none;
}

.dj-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 1rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dj-bar a {
  color: var(--ink);
  text-decoration: none;
}

.dj-bar a:hover {
  text-decoration: underline;
}

.dj-bar [aria-current="page"] {
  color: var(--muted);
}

.dj-main {
  flex: 1;
}

.dj-main:focus,
.dj-main:focus-visible {
  outline: none;
}

.dj-wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding: 2.75rem 1.5rem 4.5rem;
  display: grid;
  gap: 2.75rem;
}

.eyebrow,
.dj-filters-title {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

h1,
.dj-entry h3,
.dj-profile-name,
.dj-prose h2,
.dj-links h2,
.dj-pager a {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
}

.dj-hero h1 {
  margin: 0.45rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--accent);
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.92;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.dj-note {
  max-width: 38rem;
  margin-top: 1.15rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.95rem;
}

.dj-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.dj-portrait {
  display: block;
  width: min(100%, 220px);
  height: auto;
  aspect-ratio: 543 / 724;
  object-fit: cover;
  background: var(--frame);
  border: 1px solid var(--line-strong);
  box-shadow: 6px 8px 0 rgb(243 238 230 / 0.07);
}

.dj-profile-name {
  margin-top: 0.9rem;
  font-size: 1.7rem;
}

.dj-profile-bio {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.dj-profile-link {
  margin-top: 0.7rem;
}

.dj-profile-link a,
.dj-footer a,
.dj-prose a,
.dj-links a,
.dj-breadcrumb a,
.dj-byline a {
  color: var(--ink);
}

.dj-categories {
  margin-top: -0.75rem;
}

.dj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.dj-filters button {
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.dj-filters button:hover {
  background: var(--frame);
}

.dj-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.dj-filters button[aria-pressed="true"]:hover {
  background: #e7e0d6;
}

.dj-list {
  border-bottom: 1px solid var(--line);
}

.dj-entry {
  position: relative;
  padding: 1.35rem 0.85rem;
  margin: 0 -0.85rem;
  border-top: 1px solid var(--line);
}

.dj-entry:hover,
.dj-entry:focus-within {
  background: var(--frame);
}

.dj-meta,
.dj-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dj-entry img {
  display: block;
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  margin-bottom: 0.85rem;
}

.dj-entry h3 {
  margin: 0.45rem 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.dj-entry h3 a {
  color: inherit;
  text-decoration: none;
}

.dj-entry h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.dj-entry h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.dj-entry > p:last-child {
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.55;
}

.dj-empty {
  padding: 1.25rem 0;
  color: var(--muted);
}

.dj-reading {
  max-width: 48rem;
  margin-inline: auto;
  padding: 2.25rem 1.5rem 4.5rem;
}

.dj-breadcrumb {
  margin-bottom: 1.75rem;
}

.dj-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  font-size: 0.88rem;
}

.dj-breadcrumb [aria-current="page"] {
  color: var(--muted);
}

.dj-breadcrumb [aria-hidden="true"] {
  color: var(--muted);
}

.dj-article h1 {
  margin: 0.6rem 0 0.9rem;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 0.98;
}

.dj-article-header,
.dj-prose,
.dj-links,
.dj-figure {
  max-width: 40rem;
}

.dj-article-header {
  margin-bottom: 1.5rem;
}

.dj-byline {
  margin-top: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.dj-byline a {
  font-style: normal;
  font-weight: 600;
}

.dj-updated {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.dj-figure,
.dj-video {
  margin: 1.75rem 0;
}

.dj-figure img,
.dj-video video {
  display: block;
  width: auto;
  max-width: min(100%, 40rem);
  max-height: 36rem;
  height: auto;
  background: var(--frame);
}

.dj-video video {
  width: 100%;
  max-width: 100%;
  max-height: none;
  background: #000;
}

.dj-frame,
.dj-embed {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--frame);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dj-embed {
  position: relative;
  display: block;
}

.dj-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.dj-prose {
  display: grid;
  gap: 1.05rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  hyphens: auto;
}

.dj-prose h2 {
  margin-top: 0.45rem;
  color: var(--ink);
  font-size: 1.85rem;
}

.dj-prose h3 {
  margin-top: 0.35rem;
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.dj-prose b,
.dj-prose h2.entry-subhead {
  margin: 0;
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.65;
}

.dj-prose h2.entry-display {
  margin: 0.6rem 0 0.9rem;
  color: inherit;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  line-height: 0.98;
}

.dj-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.dj-prose i,
.dj-prose em {
  color: var(--ink);
}

.dj-prose ul,
.dj-prose ol {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
}

.dj-prose ul {
  list-style: disc;
}

.dj-prose ol {
  list-style: decimal;
}

.dj-prose li::marker {
  color: var(--accent);
}

.dj-prose blockquote {
  margin: 0.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.3;
}

.dj-links {
  margin-top: 0.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.dj-links h2 {
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
}

.dj-links ul {
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.dj-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.dj-pager a {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
  text-decoration: none;
}

.dj-pager a:hover {
  text-decoration: underline;
}

.dj-pager span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dj-pager .is-prev {
  grid-column: 1;
}

.dj-pager .is-next {
  grid-column: 2;
  text-align: right;
}

.dj-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.dj-footer {
  padding: 1.5rem 1.5rem 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (min-width: 860px) {
  .dj-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3.5rem;
  }

  .dj-profile {
    position: sticky;
    top: 4.5rem;
  }
}

@media (max-width: 640px) {
  .dj-bar,
  .dj-wrap,
  .dj-reading {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .dj-hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .dj-pager {
    grid-template-columns: 1fr;
  }

  .dj-pager .is-prev,
  .dj-pager .is-next {
    grid-column: 1;
    text-align: left;
  }
}

@media (max-width: 400px) {
  .dj-bar {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .dj-bar,
  .dj-skip,
  .dj-filters,
  .dj-pager,
  .dj-profile-link {
    display: none;
  }

  :root {
    --ink: #14110f;
    --paper: #fff;
    --muted: #3d3834;
    --frame: #fff;
    --line: rgb(20 17 15 / 0.2);
    --line-strong: rgb(20 17 15 / 0.28);
    --accent: #6e3429;
  }

  body {
    background: #fff;
    color: #14110f;
  }

  .dj-entry {
    break-inside: avoid;
  }
}
