:root {
  color-scheme: light;
  --paper: #f7f1e7;
  --ink: #3c3832;
  --muted: #746b5f;
  --line: #e3d8c8;
  --accent: #925038;
  --cream: #eee2cf;
  --cream-hover: #e6d5ba;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #e9d6c8; }
.site-shell { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 40px 0 31px; border-bottom: 1px solid var(--line); }
.brand { display: block; }
.brand-logo { display: block; position: relative; width: 120px; height: 178px; background: #696256 url("img/vertical-logo.png") left center / 200% 100% no-repeat; background-blend-mode: screen; image-rendering: pixelated; clip-path: polygon(8% 0, 92% 0, 100% 5.4%, 100% 94.6%, 92% 100%, 8% 100%, 0 94.6%, 0 5.4%); }
.brand-logo::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to right, rgb(247 241 231 / 45%) 1px, transparent 1px), linear-gradient(to bottom, rgb(247 241 231 / 45%) 1px, transparent 1px); background-size: 4px 4px; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 16px; }
.site-nav a { border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; gap: 9px; }
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.site-nav a:last-child { color: var(--muted); }
.site-identity { display: flex; align-items: center; gap: 26px; min-width: 0; }
.brand { flex-shrink: 0; }
.brand-copy h1 { margin: 0 0 9px; font-family: inherit; font-size: 16px; line-height: 1.2; font-weight: 600; letter-spacing: -.4px; }
.brand-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.site-header { gap: 24px; }
.site-nav { flex-shrink: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.post-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.post-thumbnail { display: block; align-self: center; background: var(--cream); border-radius: 16px; overflow: hidden; }
.post-thumbnail img { display: block; width: 100%; height: auto; object-fit: contain; transition: transform 250ms ease; }
.post-thumbnail:hover img { transform: none; }
.post-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 6px 0; }
.post-date { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.post-title { margin: 14px 0 11px; font-family: inherit; font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.6px; overflow-wrap: anywhere; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { margin: 0 0 21px; color: var(--muted); font-size: 16px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-post { display: inline-flex; align-items: center; gap: 22px; min-height: 38px; padding: 9px 14px; border: 1px solid #dfcdb3; border-radius: 10px; background: var(--cream); color: var(--accent); font-size: 16px; transition: background 160ms ease, border-color 160ms ease; }
.read-post:hover { background: var(--cream-hover); border-color: var(--accent); }
.more-posts { display: flex; align-items: center; gap: 32px; margin: 36px auto 0; padding: 13px 20px; border: 1px solid #dfcdb3; border-radius: 12px; color: var(--ink); background: var(--cream); font-size: 16px; }
.more-posts:hover { border-color: var(--muted); background: var(--cream-hover); }
.posts-status { color: var(--muted); font-size: 16px; line-height: 1.7; }
.site-footer { margin-top: 67px; padding: 26px 0 30px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 16px; }
.skip-link { position: fixed; left: 20px; top: -80px; padding: 12px; border-radius: 10px; background: var(--paper); color: var(--ink); z-index: 2; }
.skip-link:focus { top: 15px; }
@media (max-width: 740px) {
  .site-shell { padding: 0 26px; }
  .site-header { padding-top: 28px; padding-bottom: 26px; }
  .brand-logo { width: 90px; height: 133.5px; }
  .post-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 25px; }
  .post-title { font-size: 32px; }
}
@media (max-width: 580px) {
  .site-shell { padding: 0 22px; }
  .site-nav { gap: 22px; }
  .site-header { flex-wrap: wrap; gap: 16px; padding-bottom: 16px; }
  .site-identity { gap: 19px; width: 100%; }
  .brand-copy h1 { font-size: 16px; }
  .brand-copy p { max-width: 190px; font-size: 16px; }
  .site-nav { margin-left: 109px; }
  .post-card { grid-template-columns: minmax(0, 1fr); gap: 21px; padding: 27px 0; }
  .post-copy { padding: 0; }
  .post-title { font-size: 32px; margin-top: 11px; }
  .post-excerpt { font-size: 16px; margin-bottom: 18px; }
  .read-post { min-height: 44px; }
  .site-footer { margin-top: 48px; line-height: 1.7; }
  .site-footer > span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Two gallery columns on larger screens; keep a generous single column on mobile. */
/* Leave room for the hover lift below the sticky header's opaque shadow. */
#posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1200px; margin-inline: auto; padding-top: 36px; }
#posts .post-card {
  display: block;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  transition: transform 180ms ease;
}
#posts .post-copy {
  background: var(--site-panel-bg);
  border-radius: 0 0 var(--site-panel-radius) var(--site-panel-radius);
  transition: background-color 180ms ease;
}
#posts .post-card:focus-within .post-copy {
  background: color-mix(in srgb, var(--ink) 4%, var(--paper));
}
@media (hover: hover) and (pointer: fine) {
  #posts .post-card:hover {
    transform: translateY(-2px);
  }
  #posts .post-card:hover .post-copy { background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }
}
@media (prefers-reduced-motion: reduce) {
  #posts .post-card:hover { transform: none; }
}
#posts .post-card-link { display: flex; flex-direction: column; gap: 0; height: 100%; padding: 0; }
#posts .post-thumbnail { width: 100%; border-radius: var(--site-image-radius) var(--site-image-radius) 0 0; }
#posts .post-thumbnail-featured { position: relative; aspect-ratio: 16 / 9; }
#posts .post-thumbnail-featured img { position: absolute; max-width: none; max-height: none; transform: none; }
#posts .post-copy { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 12px 16px; }
#posts .post-title { margin: 0; }
#posts .post-date { flex-shrink: 0; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
#posts .post-card-link:hover .post-title { color: var(--ink); }
.posts-sentinel { height: 1px; }
@media (max-width: 800px) {
  #posts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
  #posts { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  #posts .post-copy { padding: 14px; }
}

/* Digital channel display with a brief segmented signal sweep. */
.year-filter {
  --bar-grid-size: 3px;
  --bar-controls-height: 21px;
  margin-top: 28px;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 24px;
}
.year-controls { position: relative; display: flex; align-items: center; height: var(--bar-controls-height); margin: 0; }
.year-window {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  height: var(--bar-controls-height);
  /* Actual SVG dots, like the logo; native dimensions avoid gradient rasterization artifacts. */
  mask-image: url('img/year-grid-desktop.svg');
  mask-size: 720px 21px;
  mask-position: left top;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
.year-signal {
  display: grid;
  gap: 0;
  width: 100%;
  height: calc(3 * var(--bar-grid-size));
}

.year-segment {
  --segment-color: var(--accent);
  display: block;
  transform-origin: center;
  background: color-mix(in srgb, var(--segment-color) 75%, var(--paper));
  opacity: .6;
  transition: box-shadow 100ms steps(2, end);
}
.year-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 6px;
  pointer-events: none;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 6px, 4px 6px, 4px 4px, 2px 4px, 2px 2px, 0 2px);
}
.year-indicator:not([data-ready]) { visibility: hidden; }
.year-track { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.year-selection {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  border: 0;
  opacity: .45;
  z-index: -1;
}
.year-selection::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 32px;
  max-width: 70%;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}
.year-selection:not([data-ready]) { visibility: hidden; }
.year-stop {
  flex: 0 1 88px;
  min-width: 64px;
  min-height: 44px;
  display: grid;
  align-items: center;
  padding: 0 6px;
  border: 0;
  border-radius: var(--site-image-radius, 4px);
  color: var(--muted);
  background: transparent;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.year-stop-label {
  position: relative;
  display: block;
  opacity: .5;
  padding: 2px 0;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  transition: opacity 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.year-stop:hover { color: var(--accent); }
.year-stop:hover:not([aria-pressed='true']) .year-stop-label::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 32px;
  max-width: 70%;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}
.year-stop[aria-pressed='true'] .year-stop-label { color: var(--accent); }
.year-stop:is(:hover, :focus-visible, [aria-pressed='true']) .year-stop-label { opacity: .7; }
.year-stop:focus-visible { outline-offset: -3px; }
.year-filter ~ #posts { padding-top: 24px; }
@media (max-width: 580px) {
  .year-filter { margin-top: 24px; padding: 6px 8px; }
  .year-filter { --bar-grid-size: 2px; --bar-controls-height: 20px; }
  .year-window { mask-image: url('img/year-grid-mobile.svg'); mask-size: 360px 20px; }
  .year-stop { flex-basis: calc((100% - 8px) / 3); }
}

/* Year markers keep the archive continuous while providing clear scroll targets. */
#posts .post-year {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 2px;
}
#posts .post-year::before,
#posts .post-year::after {
  content: '';
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}
