:root {
  /* Palette: alpine granite + snowfield, one blaze accent */
  --ink:        #16181a;   /* body text, near-black with a cold cast */
  --ink-soft:   #5a6169;   /* meta, captions */
  --paper:      #f2f3f0;   /* page background */
  --paper-warm: #fbfbf9;   /* card surfaces */
  --rule:       #cfd3ce;   /* hairlines */
  --blaze:      #b4451f;   /* trail-marker orange, used sparingly */
  --moss:       #2f4739;   /* header field, deep conifer */

  --mono: "Anonymous Pro", ui-monospace, SFMono-Regular, "SF Mono",
          Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0:  1rem;
  --step-1:  1.1875rem;
  --step-2:  1.5rem;
  --step-3:  2rem;
  --step-4:  2.75rem;

  --gap: 1.5rem;
  --measure: 34rem;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  text-decoration-color: var(--blaze);
  text-underline-offset: 0.25em;
}

a:hover,
a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blaze);
  outline-offset: 3px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

button { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  width: auto; height: auto;
  margin: 0;
  padding: 0.6rem 1rem;
  clip: auto;
  clip-path: none;
  background: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   3. Page shell
   -------------------------------------------------------------------------- */

.site { overflow-x: hidden; }

.site-content {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* The mobile bar and its toggles belong to theme JS that isn't loading here.
   The menu is rendered inline instead, so the toggles stay hidden. */
.mobile-header-wrapper,
.overlay-toggle,
.overlay-shadow { display: none; }

/* --------------------------------------------------------------------------
   4. Grid: the header is the first cell, cards fill the rest
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--gap) * 1.5) var(--gap);
  padding: var(--gap) 0 calc(var(--gap) * 3);
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid > .header { grid-column: span 1; }
}

@media (min-width: 1400px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   5. Masthead
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: var(--gap);
  padding: 1.75rem 1.5rem 2rem;
  background: var(--moss);
  color: var(--paper);
  border-radius: 2px;
}

.site-branding { text-align: center; }

.custom-logo-link { display: inline-block; }

.custom-logo {
  width: 130px;
  height: auto;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: screen;
}

.site-title {
  font-size: var(--step-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-title a,
.site-title a:hover { color: var(--paper); text-decoration: none; }

.site-description-text {
  margin: 0.4rem 0 0;
  color: #a9bcae;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

/* Navigation ---------------------------------------------------------------- */

.main-navigation { margin-top: 1.75rem; }

.nav-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(242, 243, 240, 0.22);
}

.nav-menu li { border-bottom: 1px solid rgba(242, 243, 240, 0.22); }

.nav-menu a {
  display: block;
  padding: 0.55rem 0 0.55rem 1.1rem;
  position: relative;
  color: #dfe6df;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: lowercase;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

/* Signature: a blaze mark that steps out on hover, like a trail marker */
.nav-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  background: var(--blaze);
  transform: scale(0);
  transition: transform 0.18s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: #fff;
  padding-left: 1.5rem;
  text-decoration: none;
}

.nav-menu a:hover::before,
.nav-menu a:focus-visible::before,
.nav-menu .current-menu-item > a::before { transform: scale(1); }

.nav-menu .current-menu-item > a { color: #fff; }

/* Social links -------------------------------------------------------------- */

.jetpack-social-navigation { margin-top: 1.25rem; }

.jetpack-social-navigation ul {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jetpack-social-navigation li a {
  color: #a9bcae;
  font-size: var(--step--1);
}

.jetpack-social-navigation li a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   6. Post cards
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.card__mask,
.card__hover,
.card__wrap { display: contents; }

.card__shadow {
  display: block;
  overflow: hidden;
  background: #e4e7e3;
}

.card__image { display: block; }

.card__image-wrap {
  position: relative;
  width: 100%;
  /* the inline padding-top on this element sets the aspect ratio per post */
}

.card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px);
  transform: scale(1.08);
}

.card__image--large {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card:hover .card__image--large,
.card:focus-within .card__image--large { transform: scale(1.05); }

.card-title-wrap {
  flex: 1;
  display: flex;
  padding: 1.1rem 1.15rem 1.25rem;
}

.card__title { width: 100%; }

.card__title h2 {
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.card__title h2 a:hover { color: var(--blaze); text-decoration: none; }

/* Meta ---------------------------------------------------------------------- */

.card__meta,
.entry-meta {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.5;
}

.entry-meta a { color: var(--ink-soft); }
.entry-meta a:hover { color: var(--blaze); }

.cat-links a {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--blaze);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.6875rem;
}

.cat-links a:hover { text-decoration: underline; }

.byline { display: block; }

.posted-on { display: block; }

/* The markup prints both a published and an updated date; show one. */
.posted-on .updated { display: none; }

/* --------------------------------------------------------------------------
   7. Pagination
   -------------------------------------------------------------------------- */

.archive-navigation {
  padding: 0 0 4rem;
  text-align: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.page-numbers {
  min-width: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

a.page-numbers:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.page-numbers.dots { border: 0; }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 2.5rem var(--gap);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: var(--step--1);
  text-align: center;
}

.footer-menu ul {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

#infinite-footer { display: none; }

/* --------------------------------------------------------------------------
   9. Single post content — used once a post page is open
   -------------------------------------------------------------------------- */

.entry-content {
  max-width: var(--measure);
  margin: 0 auto;
  font-size: var(--step-0);
  line-height: 1.75;
}

.entry-content p { margin: 0 0 1.4em; }

.entry-content h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: var(--step-2);
}

.entry-content h3 {
  margin: 2rem 0 0.6rem;
  font-size: var(--step-1);
}

.entry-content a { text-decoration: underline; color: var(--blaze); }

.entry-content blockquote,
.content-quote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--blaze);
  color: var(--ink-soft);
  font-style: italic;
}

.entry-content img { margin: 1.75rem auto; }

.wp-caption-text {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
  text-align: center;
}

.dropcap {
  float: left;
  margin: 0.1em 0.12em 0 0;
  font-size: 3.2em;
  line-height: 0.8;
  color: var(--blaze);
}

.tags {
  max-width: var(--measure);
  margin: 2rem auto 0;
  font-size: var(--step--1);
}

.tags a {
  display: inline-block;
  margin: 0 0.3rem 0.3rem 0;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}

.more-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--blaze);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   10. Comments and widgets
   -------------------------------------------------------------------------- */

.comment,
.pingback {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
}

.comment__author { font-size: var(--step-0); font-weight: 700; }

.comment__links,
.comment-reply-title small,
.edit-link { font-size: 0.75rem; color: var(--ink-soft); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  font: inherit;
  font-size: var(--step--1);
}

.form-submit input[type="submit"],
.widget input[type="submit"] {
  padding: 0.6rem 1.2rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  letter-spacing: 0.06em;
}

.form-submit input[type="submit"]:hover,
.widget input[type="submit"]:hover { background: var(--blaze); }

.widget {
  margin-bottom: 2rem;
  font-size: var(--step--1);
}

.widget_recent_entries .post-date { color: var(--ink-soft); font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   11. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .archive-navigation,
  .site-footer { display: none; }
  body { background: #fff; color: #000; }
}