: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: 13px; }
.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: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.4px; }
.brand-copy p { margin: 0; color: var(--muted); font-size: 12px; 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: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.post-title { margin: 14px 0 11px; font-family: inherit; font-size: 27px; 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: 13px; 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: 11px; 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: 12px; }
.more-posts:hover { border-color: var(--muted); background: var(--cream-hover); }
.posts-status { color: var(--muted); font-size: 13px; 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: 10px; }
.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: 25px; }
}
@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: 21px; }
  .brand-copy p { max-width: 190px; font-size: 11px; }
  .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: 25px; margin-top: 11px; }
  .post-excerpt { font-size: 13px; 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; }
}

/* Every entry uses the full-width gallery image treatment. */
#posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 12px; }
#posts .post-card {
  display: block;
  min-width: 0;
  padding: 0;
  background: var(--site-panel-bg);
  border: 0;
  transition: transform 180ms ease, background-color 180ms ease;
}
#posts .post-card:focus-within {
  background: color-mix(in srgb, var(--ink) 4%, var(--paper));
}
@media (hover: hover) and (pointer: fine) {
  #posts .post-card:hover {
    transform: translateY(-2px);
    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: 16px; height: 100%; padding: 20px; }
#posts .post-thumbnail { width: 100%; }
#posts .post-thumbnail-featured { aspect-ratio: 16 / 9; }
#posts .post-thumbnail-featured img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-x, 50%) var(--focus-y, 50%); transform: none; }
#posts .post-copy { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 0; }
#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: 580px) {
  #posts { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 10px; }
  #posts .post-card-link { padding: 14px; }
}
