/*
  maliasik.com · Quiet Journal
  Sıcak, rafine ve uzun okumaya odaklı kişisel yayın kimliği.
  Renkli Link sayfasından bağımsızdır.
*/

:root {
  --bg: #f4f1eb;
  --surface: #fbfaf7;
  --surface-2: #ebe6dc;
  --text: #1e211e;
  --muted: #6d6b64;
  --faint: #c8c1b5;
  --border: rgba(30, 33, 30, 0.14);
  --accent: #8a6841;
  --accent-strong: #654a2e;
  --accent-glow: rgba(138, 104, 65, 0.13);
  --link: #526b60;
  --green: #426756;
  --red: #a34f45;
  --yellow: #9a793d;
  --code-bg: #1c221f;
  --header-bg: rgba(244, 241, 235, 0.88);
  --hero-bg: #1e2b25;
  --hero-surface: rgba(255, 255, 255, 0.055);
  --hero-text: #f5f1e8;
  --shadow-soft: 0 22px 70px rgba(47, 40, 31, 0.09);
  --shadow-card: 0 12px 34px rgba(47, 40, 31, 0.07);
  --display: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --serif: "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --body: var(--serif);
  --radius: 16px;
  --max-w: 800px;
}

[data-theme="dark"] {
  --bg: #111411;
  --surface: #181c18;
  --surface-2: #222722;
  --text: #ede9e0;
  --muted: #aaa69c;
  --faint: #4a4f49;
  --border: rgba(237, 233, 224, 0.14);
  --accent: #c4a378;
  --accent-strong: #e0c39d;
  --accent-glow: rgba(196, 163, 120, 0.16);
  --link: #a9c5b6;
  --green: #8db7a1;
  --red: #dc8f83;
  --yellow: #d4b679;
  --code-bg: #0b0e0c;
  --header-bg: rgba(17, 20, 17, 0.88);
  --hero-bg: #202a25;
  --hero-surface: rgba(255, 255, 255, 0.05);
  --hero-text: #f3efe7;
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 12px 34px rgba(0, 0, 0, 0.18);
}

html {
  background: var(--bg);
}

.public-site {
  background:
    radial-gradient(circle at 50% -12rem, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
}

.public-site::after {
  opacity: 0.012;
}

#progress-bar {
  height: 2px;
  background: var(--accent);
  box-shadow: none;
}

.container {
  max-width: calc(var(--max-w) + 3rem);
  padding-inline: 1.5rem;
}

.main-content {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
}

.main-content.home-wide {
  max-width: 1240px;
}

/* Header */
.site-header {
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-wrap {
  min-height: 76px;
  gap: 2.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.site-brand__domain {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.nav-links {
  gap: 1.9rem;
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.search-form::before {
  content: "⌕";
  left: 0.78rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
}

.search-form input {
  width: 150px;
  padding: 0.48rem 0.9rem 0.48rem 2.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.74rem;
}

.search-form input:focus {
  width: 200px;
  border-color: color-mix(in srgb, var(--accent) 68%, var(--border));
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-form input::placeholder {
  color: var(--muted);
}

.theme-toggle {
  width: 48px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.toggle-track {
  border-radius: 999px;
}

.toggle-thumb {
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  box-shadow: none;
}

[data-theme="dark"] .toggle-thumb {
  left: 26px;
}

.toggle-icon {
  font-size: 9px;
}

.toggle-icon--moon {
  left: 6px;
}

.toggle-icon--sun {
  right: 6px;
}

/* Home hero */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  margin: 1rem 0 5.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(196, 163, 120, 0.18), transparent 20rem),
    linear-gradient(138deg, #26382f 0%, var(--hero-bg) 54%, #18211d 100%);
  box-shadow: var(--shadow-soft);
  color: var(--hero-text);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -9rem;
  right: 13rem;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 455px;
  padding: clamp(2.5rem, 5vw, 5rem);
}

.home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 2rem;
  color: rgba(245, 241, 232, 0.62);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-hero__eyebrow span {
  padding-right: 0.8rem;
  border-right: 1px solid rgba(245, 241, 232, 0.28);
  color: #c7a77c;
}

.home-hero h1 {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: auto 0;
  color: var(--hero-text);
  font-family: var(--display);
  font-size: clamp(3rem, 6.2vw, 5.75rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.home-hero h1 span,
.home-hero h1 em {
  display: block;
}

.home-hero h1 em {
  margin-top: 0.16em;
  color: #c9ac84;
  font-size: 0.82em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.home-hero__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(245, 241, 232, 0.16);
}

.home-hero .tagline {
  max-width: 490px;
  color: rgba(245, 241, 232, 0.64);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.035em;
}

.home-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  color: var(--hero-text);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-hero__link span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(245, 241, 232, 0.28);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-hero__link:hover span {
  background: #c9ac84;
  color: #1e2b25;
  transform: translateX(2px);
}

.home-hero__edition {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-left: 1px solid rgba(245, 241, 232, 0.12);
  background: var(--hero-surface);
  color: var(--hero-text);
  overflow: hidden;
}

.home-hero__edition-label {
  color: rgba(245, 241, 232, 0.54);
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.home-hero__edition strong {
  margin-top: auto;
  color: #c9ac84;
  font-family: var(--display);
  font-size: 6.5rem;
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 0.78;
}

.home-hero__edition small {
  margin-top: 1.35rem;
  color: rgba(245, 241, 232, 0.7);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-hero__monogram {
  position: absolute;
  top: 5.6rem;
  right: -1.1rem;
  color: transparent;
  font-family: var(--display);
  font-size: 7.5rem;
  font-style: italic;
  letter-spacing: -0.12em;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(245, 241, 232, 0.08);
  transform: rotate(90deg);
}

/* Labels */
.section-label {
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.17em;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-label::after {
  height: 1px;
  background: var(--border);
}

/* Home feed */
.home-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 4rem;
}

.feed-list {
  gap: 1.5rem;
}

.feed-card,
.feed-card:nth-child(even) {
  display: grid;
  grid-template-columns: minmax(235px, 38%) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feed-card:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  border-left-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(47, 40, 31, 0.1);
  transform: translateY(-3px);
}

.feed-card:nth-child(even) .feed-card__cover,
.feed-card__cover {
  order: 0;
  width: 100%;
  height: 100%;
  min-height: 270px;
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--surface-2);
}

.feed-card__cover img {
  filter: saturate(0.78) contrast(1.03);
}

.feed-card:hover .feed-card__cover img {
  transform: scale(1.025);
}

.feed-card__body {
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.feed-card__meta {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-card__meta a {
  color: var(--accent-strong);
  font-weight: 650;
}

.feed-card__title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.feed-card__title a {
  color: var(--text);
}

.feed-card:hover .feed-card__title a {
  color: var(--accent-strong);
}

.feed-card__excerpt {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.65;
}

.feed-card__cta {
  align-self: flex-start;
  margin-top: 0.25rem;
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.feed-card__cta:hover {
  letter-spacing: 0.11em;
}

.feed-loader {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
}

.feed-loader__text::before {
  content: "↓";
  color: var(--accent);
}

/* Sidebar */
.sidebar {
  top: 6.5rem;
  gap: 1rem;
}

.sidebar-widget {
  margin: 0;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.sidebar-widget:nth-child(2) {
  border-color: transparent;
  background: var(--hero-bg);
  color: var(--hero-text);
  box-shadow: var(--shadow-card);
}

.sidebar-widget:nth-child(2) .section-label,
.sidebar-widget:nth-child(2) .sidebar-recent-item a {
  color: var(--hero-text);
}

.sidebar-widget:nth-child(2) .section-label::after,
.sidebar-widget:nth-child(2) .sidebar-recent-item {
  border-color: rgba(245, 241, 232, 0.13);
}

.sidebar-widget:nth-child(2) .sidebar-meta {
  color: rgba(245, 241, 232, 0.58);
}

.sidebar .section-label::after {
  display: none;
}

.pill-group {
  gap: 0.45rem;
}

.pill,
.chip {
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill:hover,
.chip:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-strong);
}

.chip::before {
  color: var(--accent);
}

.sidebar-recent-item {
  border-bottom: 1px solid var(--border);
}

.sidebar-recent-item a {
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sidebar-recent-item a::before {
  color: #c9ac84;
  font-family: var(--sans);
}

.sidebar-meta {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.6rem;
}

/* Archive */
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.page-header p {
  max-width: 560px;
  margin-top: 0.85rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.6;
}

.post-list-item {
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list-item:first-child {
  border-top: 1px solid var(--border);
}

.post-list-item:hover {
  padding-left: 0.55rem;
  background: linear-gradient(90deg, var(--accent-glow), transparent 72%);
}

.post-list-item .post-date,
.post-list-item .post-author,
.post-list-item .post-cat {
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-list-item .post-title {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
}

.pagination a,
.pagination span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 600;
}

.pagination .active {
  border-color: var(--hero-bg);
  background: var(--hero-bg);
  color: var(--hero-text);
}

/* Reading experience */
.post-detail .post-meta {
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.post-detail .post-meta a {
  color: var(--accent-strong);
  font-weight: 650;
}

.post-detail h1 {
  margin-bottom: 2.4rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.45rem, 7vw, 4.8rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.post-cover {
  max-height: 540px;
  margin-bottom: 3.5rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  filter: saturate(0.82) contrast(1.02);
}

.post-detail .article-content {
  max-width: 720px;
  margin-inline: auto;
  color: var(--text);
  font-family: var(--serif);
  font-size: calc(1.1rem * var(--reading-scale, 1));
  line-height: 1.92;
  transition: font-size .18s ease;
}

.post-detail .article-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.09em 0.13em 0 0;
  color: var(--accent);
  font-family: var(--display);
  font-size: 3.8em;
  font-weight: 400;
  line-height: 0.78;
}

.article-content h2,
.article-content h3 {
  color: var(--text);
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.article-content h2 {
  margin-top: 3.2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.article-content h3 {
  font-size: 1.35rem;
}

.article-content p {
  margin-bottom: 1.35rem;
}

.article-content a {
  color: var(--link);
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-content blockquote {
  margin: 2.4rem 0;
  padding: 1.4rem 1.6rem;
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 1.08em;
}

.article-content img {
  border: 1px solid var(--border);
  border-radius: 16px;
}

.article-content code {
  border: 1px solid var(--border);
  background: var(--code-bg);
  color: #d8c3a4;
}

.article-content pre {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: var(--shadow-card);
}

.article-content pre::before {
  background: linear-gradient(90deg, var(--accent), transparent 72%);
}

.toc {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
}

.toc__label {
  color: var(--accent-strong);
  font-family: var(--sans);
  font-weight: 650;
}

.toc__item a {
  color: var(--muted);
  font-family: var(--sans);
}

.share-bar {
  padding: 1rem 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.share-bar__label {
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 650;
}

.share-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 550;
}

.share-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-strong);
}

.post-nav {
  gap: 1rem;
  margin-top: 3rem;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.post-nav__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.post-nav__item--next {
  border-left: 1px solid var(--border);
}

.post-nav__link {
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
}

.post-nav__link:hover {
  background: var(--accent-glow);
}

.post-nav__dir {
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 600;
}

.post-nav__title {
  color: var(--text);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
}

.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-grid {
  gap: 1rem;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.related-card {
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.related-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  border-left-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: var(--surface);
  transform: translateY(-2px);
}

.related-card__cover {
  border-bottom: 1px solid var(--border);
}

.related-card__cat {
  color: var(--accent-strong);
  font-family: var(--sans);
  font-weight: 650;
}

.related-card__title {
  color: var(--text);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
}

.reading-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: -1.1rem 0 2rem;
  padding: .65rem .75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--sans);
}
.reading-toolbar__group {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.reading-toolbar__group > span {
  margin-right: .25rem;
  font-size: .61rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.reading-toolbar button {
  min-height: 30px;
  padding: .28rem .58rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 650;
  cursor: pointer;
}
.reading-toolbar button:hover,
.reading-toolbar button.is-saved {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-glow);
}
.series-panel {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) 1.5fr;
  gap: 1.5rem;
  margin: 0 0 2.4rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.series-panel__intro > span {
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .13em;
}
.series-panel__intro h2 {
  margin: .4rem 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.025em;
}
.series-panel__intro p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}
.series-panel ol {
  display: grid;
  align-content: start;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.series-panel li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: .5rem;
  padding: .45rem .55rem;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .71rem;
}
.series-panel li > span { color: var(--faint); font-variant-numeric: tabular-nums; }
.series-panel li a { color: var(--muted); text-decoration: none; }
.series-panel li a:hover { color: var(--accent-strong); }
.series-panel li.is-current { background: var(--accent-glow); color: var(--text); }
.series-panel li.is-current > span { color: var(--accent-strong); }

/* About */
.about-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 4rem;
}

.about-card__terminal {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(196, 163, 120, 0.18), transparent 14rem),
    var(--hero-bg);
  color: var(--hero-text);
  box-shadow: var(--shadow-soft);
}

.about-card__bar {
  display: none;
}

.about-card__body {
  padding: 2rem;
}

.about-card__name {
  color: #c9ac84;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-card__tagline {
  color: var(--hero-text);
  font-family: var(--display);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.about-card__section-label {
  color: rgba(245, 241, 232, 0.5);
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
}

.about-card__interests span {
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.06);
  color: rgba(245, 241, 232, 0.74);
  font-family: var(--sans);
  font-weight: 500;
}

.about-card__links {
  gap: 0.5rem;
  margin-top: 1rem;
}

.about-card__link {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 550;
}

.about-card__link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-strong);
}

.about-card__link-icon {
  color: var(--accent);
}

/* Contact */
.contact-layout {
  max-width: 720px;
}

.contact-title {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.contact-subtitle {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.contact-channels {
  gap: 0.75rem;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.contact-channel {
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.contact-channel:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.contact-channel__icon {
  color: var(--accent);
}

.contact-channel__label,
.contact-channel__value,
.contact-channel__arrow {
  font-family: var(--sans);
}

.contact-channel__label {
  font-weight: 650;
}

.contact-note {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--sans);
}

.contact-note__prompt {
  color: var(--accent);
}

/* Shared controls */
.btn {
  border-width: 1px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 650;
}

.btn-primary {
  border-color: var(--hero-bg);
  background: var(--hero-bg);
  color: var(--hero-text);
  box-shadow: none;
}

.btn-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
}

.alert {
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--sans);
}

.error-page__code {
  color: var(--accent);
  font-family: var(--display);
  text-shadow: none;
}

.error-page__msg,
.error-page__title {
  font-family: var(--display);
  font-style: normal;
}

/* Newsletter */
.footer-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.footer-newsletter h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.footer-newsletter p { margin: 0; }
.footer-newsletter form { display: flex; gap: .65rem; }

.footer-newsletter input {
  min-width: 0;
  flex: 1;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--background);
}

.footer-newsletter button {
  padding: .85rem 1.2rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.newsletter-result {
  max-width: 720px;
  margin: 7rem auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 30px;
  text-align: center;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.newsletter-result__mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 1.6rem;
}

.newsletter-result h1 { margin-top: .4rem; }

.newsletter-result p {
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.4rem;
  }

  .footer-newsletter form { flex-direction: column; }
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: transparent;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.67rem;
  font-weight: 500;
}

.site-footer a {
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
  text-underline-offset: 0.2em;
}

.back-to-top {
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--hero-bg);
  color: var(--hero-text);
  box-shadow: var(--shadow-card);
}

.back-to-top:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Mobile navigation and search */
.mobile-search-btn {
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.bottom-nav {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.bottom-nav__item {
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 600;
}

.bottom-nav__item::before {
  height: 2px;
  background: var(--accent);
}

.bottom-nav__item.is-active,
.bottom-nav__item:active {
  color: var(--accent-strong);
}

.cmd-overlay {
  background: rgba(14, 17, 15, 0.76);
}

.cmd-box {
  border-top: 1px solid var(--accent);
  background: var(--surface);
}

.cmd-bar {
  border-bottom: 1px solid var(--border);
}

.cmd-input {
  color: var(--text);
  font-family: var(--sans);
}

.cmd-close,
.cmd-shortcut__key {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-strong);
  font-family: var(--sans);
  font-weight: 650;
}

.cmd-shortcuts {
  gap: 1px;
  background: var(--border);
}

.cmd-shortcut {
  background: var(--surface);
}

.cmd-shortcut__label {
  color: var(--text);
  font-family: var(--sans);
  font-weight: 550;
}

@media (max-width: 1000px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 1rem;
    border-top: 0;
  }

  .sidebar-widget:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .home-hero {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .home-hero__copy {
    min-height: 400px;
    padding: 2.25rem;
  }

  .home-hero__edition {
    min-height: 145px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    border-top: 1px solid rgba(245, 241, 232, 0.12);
    border-left: 0;
  }

  .home-hero__edition strong {
    grid-row: 1 / 3;
    grid-column: 2;
    margin: 0;
    font-size: 5rem;
  }

  .home-hero__edition small {
    margin: 0;
  }

  .home-hero__monogram {
    top: 0.6rem;
    right: 7rem;
    transform: rotate(0);
  }

  .feed-card,
  .feed-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feed-card:nth-child(even) .feed-card__cover,
  .feed-card__cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .public-site {
    font-size: 16px;
  }

  .container {
    padding-inline: 1.1rem;
  }

  .nav-wrap {
    min-height: 64px;
    gap: 0.7rem;
  }

  .site-brand {
    font-size: 1.05rem;
  }

  .main-content {
    padding-top: 2rem;
    padding-bottom: 4.5rem;
  }

  .home-hero {
    margin: 0.2rem 0 4rem;
  }

  .home-hero__copy {
    min-height: 360px;
    padding: 1.65rem;
  }

  .home-hero__eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
    font-size: 0.58rem;
  }

  .home-hero__eyebrow span {
    padding-right: 0;
    padding-bottom: 0.35rem;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 241, 232, 0.2);
  }

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

  .home-hero__footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 2.4rem;
  }

  .home-hero__edition {
    min-height: 125px;
    padding: 1.4rem;
  }

  .home-hero__edition strong {
    font-size: 4.2rem;
  }

  .home-hero__edition small {
    font-size: 0.62rem;
  }

  .feed-card__body {
    padding: 1.4rem;
  }

  .feed-card__title {
    font-size: 1.45rem;
  }

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

  .sidebar-widget:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .post-list-item {
    align-items: flex-start;
  }

  .post-list-item .post-title {
    flex-basis: 100%;
    order: 3;
  }

  .post-detail h1 {
    font-size: clamp(2.3rem, 11vw, 3.25rem);
  }

  .post-cover {
    margin-bottom: 2.6rem;
    border-radius: 16px;
  }

  .post-detail .article-content {
    font-size: calc(1.04rem * var(--reading-scale, 1));
    line-height: 1.86;
  }

  .reading-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .series-panel {
    grid-template-columns: 1fr;
  }

  .post-nav {
    gap: 0.75rem;
  }

  .post-nav__item--next {
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }

  .contact-channel {
    padding: 0.9rem;
  }

  .contact-channel__value {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-card,
  .contact-channel,
  .related-card,
  .home-hero__link span {
    transition: none;
  }
}

/* Applications */
.main-content.apps-wide { max-width: 1160px; }
.app-page-header {
  max-width: 760px;
  margin-bottom: 3rem;
}
.app-page-kicker,
.saved-page-header > span {
  margin: 0 0 0.6rem;
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.app-page-header h1,
.saved-page-header h1 {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}
.app-page-header > p:last-child,
.saved-page-header p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.app-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.app-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-3px);
}
.app-card--featured { grid-column: span 2; }
.app-card__cover {
  display: block;
  aspect-ratio: 16 / 8;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.app-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84);
  transition: transform .45s ease;
}
.app-card:hover .app-card__cover img { transform: scale(1.025); }
.app-card__body { padding: 1.45rem; }
.app-card__top,
.app-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.app-card__icon,
.app-card__monogram,
.app-detail__icon,
.app-detail__monogram {
  width: 54px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 15px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.app-card__monogram,
.app-detail__monogram {
  display: grid;
  place-items: center;
  background: var(--hero-bg);
  color: var(--hero-text);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 750;
}
.app-status {
  display: inline-flex;
  padding: .25rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-glow);
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.app-card h2 {
  margin: 1.35rem 0 .55rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -.03em;
}
.app-card h2 a { color: var(--text); text-decoration: none; }
.app-card__body > p { min-height: 3.2em; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.app-card__footer {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--sans);
  font-size: .65rem;
}
.app-card__footer a { color: var(--accent-strong); font-weight: 650; text-decoration: none; }
.app-empty {
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.app-empty > span { color: var(--accent-strong); font-family: var(--sans); font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.app-empty h2 { margin: .8rem 0; font-family: var(--display); font-size: 2rem; font-weight: 500; }
.app-empty p { margin: 0; color: var(--muted); }

.app-detail__back {
  display: inline-block;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 650;
  text-decoration: none;
}
.app-detail__hero {
  padding: clamp(1.6rem, 5vw, 3rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0, rgba(196, 163, 120, .22), transparent 18rem),
    var(--hero-bg);
  color: var(--hero-text);
  box-shadow: var(--shadow-soft);
}
.app-detail__identity {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 1.35rem;
}
.app-detail__icon,
.app-detail__monogram { width: 84px; height: 84px; border-color: rgba(255,255,255,.16); border-radius: 21px; }
.app-detail__monogram { background: var(--hero-surface); }
.app-detail__hero .app-status { border-color: rgba(255,255,255,.15); color: #dec9a9; background: rgba(255,255,255,.06); }
.app-detail__hero h1 {
  margin: .6rem 0 .35rem;
  color: var(--hero-text);
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .95;
}
.app-detail__hero p { margin: 0; color: rgba(245,241,232,.72); }
.app-store-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.app-store-links a {
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: var(--hero-text);
  background: var(--hero-surface);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 650;
  text-decoration: none;
}
.app-store-links a:hover { border-color: rgba(255,255,255,.4); }
.app-detail__cover {
  width: 100%;
  max-height: 520px;
  margin: 2rem 0 3rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.app-detail__content { max-width: 720px; margin: 3rem auto; }
.app-detail__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 720px;
  margin: 2rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.app-detail__utility a { color: var(--muted); font-family: var(--sans); font-size: .7rem; font-weight: 650; }

/* Browser-local reading list */
.saved-page-header { margin-bottom: 2.5rem; }
.saved-posts-list { display: grid; gap: .85rem; }
.saved-post {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.saved-post__link { color: var(--text); font-family: var(--serif); font-size: 1.05rem; font-weight: 550; text-decoration: none; }
.saved-post__meta { color: var(--muted); font-family: var(--sans); font-size: .62rem; }
.saved-post__remove {
  grid-row: 1 / 3;
  grid-column: 2;
  padding: .4rem .65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: var(--sans);
  font-size: .62rem;
  cursor: pointer;
}
.saved-post__remove:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 760px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-card--featured { grid-column: auto; }
}
@media (max-width: 520px) {
  .app-detail__identity { grid-template-columns: 62px 1fr; }
  .app-detail__icon,
  .app-detail__monogram { width: 62px; height: 62px; border-radius: 16px; }
  .app-detail__hero { border-radius: 18px; }
}
