:root {
  color-scheme: light;
  --paper: #f7efe1;
  --surface: #fffaf1;
  --ink: #38291f;
  --muted: #756457;
  --accent: #c85c3d;
  --accent-dark: #98402d;
  --yellow: #e4a83c;
  --olive: #7d8751;
  --tan: #d6a77a;
  --cream: #f4d9a7;
  --line: #d8c8b3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, #e4a83c38 0 7rem, transparent 7.1rem),
    radial-gradient(circle at 94% 46%, #7d875130 0 10rem, transparent 10.1rem),
    var(--paper);
  color: var(--ink);
  font: 1rem/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-underline-offset: 0.25em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(100% - 4rem, 1120px); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-block: 1.4rem;
  border-bottom: 2px solid var(--ink);
}
.brand { font: bold 2rem Georgia, serif; letter-spacing: -0.07em; text-decoration: none; }
.brand span, .accent { color: var(--accent); }
nav { display: flex; gap: 0.5rem; }
nav a {
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
nav a:hover, nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); transform: rotate(-3deg); }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -0.055em; margin: 1.25rem 0; overflow-wrap: anywhere; }
h2 { font-size: 2.3rem; letter-spacing: -0.04em; }
h3 { font-size: 1.9rem; letter-spacing: -0.03em; }
.eyebrow { color: var(--muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 580px; margin-bottom: 2rem; }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; padding-block: 5rem 6rem; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  left: -9rem;
  top: 4rem;
  border-radius: 42% 58% 64% 36%;
  background: var(--tan);
  opacity: 0.55;
  transform: rotate(25deg);
}
.hero::after {
  content: "✷";
  position: absolute;
  right: 3%;
  top: 8%;
  color: var(--olive);
  font-size: 4rem;
  line-height: 1;
  transform: rotate(14deg);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(5rem, 10vw, 8.5rem); line-height: 0.88; margin: 2rem 0; }
.hero h1 em { font-weight: 400; color: var(--accent); }
.hero .lede { margin-block: 2rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 0.5rem; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--yellow); }
.button {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 0.7rem 1.8rem 1.8rem 0.7rem;
  background: var(--accent-dark);
  color: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.button:hover { color: var(--surface); background: var(--olive); transform: translateY(-5px) rotate(-2deg); box-shadow: 5px 7px 0 var(--ink); }
.text-link { display: inline-block; font-size: 0.85rem; font-weight: 600; text-decoration: none; padding-bottom: 0.2rem; border-bottom: 1px solid var(--line); }
.text-link span, .button span, .section-heading a span { display: inline-block; margin-left: 0.5rem; transition: transform 200ms ease; }
.text-link:hover span, .button:hover span, .section-heading a:hover span { transform: translate(3px, -3px); }
.text-link:hover { border-color: var(--accent); }

.hero-photo {
  position: relative;
  z-index: 0;
  width: min(100%, 430px);
  aspect-ratio: 1;
  justify-self: center;
  margin: 0;
  padding: 0.6rem;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 14px 16px 0 var(--olive), 0 20px 60px #38291f18;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) sepia(0.12) contrast(1.05);
}

.latest { padding-bottom: 4rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.75rem; }
.section-heading h2 { margin-block: 0 1rem; }
.section-heading a { flex-shrink: 0; font-size: 0.8rem; text-decoration: none; }
.home-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.home-posts .post-card:nth-child(2) { background: var(--tan); }
.home-posts .post-card:nth-child(3) { background: var(--cream); }
.post-card {
  position: relative;
  padding: 2rem;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  background: var(--surface);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.post-card:hover { transform: translateY(-7px) rotate(1deg); border-color: var(--ink); box-shadow: 7px 8px 0 var(--yellow); }
.post-card:focus-within { border-color: var(--accent); }
.post-card .eyebrow { margin-top: 0; }
.post-card h2, .post-card h3 { margin: 0.9rem 0; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card > p:not(.eyebrow) { color: var(--muted); max-width: 620px; margin-bottom: 1.5rem; }
.featured-post { grid-column: 1 / -1; overflow: hidden; background: var(--yellow); padding: 2.5rem 3rem; }
.featured-post h3 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); max-width: 75%; }
.featured-post .text-link { border-color: var(--ink); }
.post-list { display: grid; gap: 1.25rem; margin-top: 3rem; counter-reset: entries; }
.post-list .post-card { padding: 2.5rem 6rem 2.5rem 2.5rem; counter-increment: entries; }
.post-list .post-card::after { content: counter(entries, decimal-leading-zero); position: absolute; right: 2rem; top: 2rem; color: var(--accent); font: italic 1.5rem Georgia, serif; }
.post-list .post-card:first-child { background: var(--yellow); }
.page { padding-block: 4rem 5rem; min-height: 70vh; }
.prose { max-width: 700px; }
article.prose { margin-inline: auto; }
.prose h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); margin-bottom: 2.5rem; }
.prose h2 { margin-top: 2.5rem; }
.prose > p:not(.eyebrow):not(.lede) { font: 1.2rem/1.9 Georgia, "Times New Roman", serif; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.back-link span { display: inline-block; margin-right: 0.4rem; transition: transform 200ms ease; }
.back-link:hover span { transform: translateX(-4px); }
.connect { border: 2px solid var(--ink); border-radius: 1rem 2rem 1rem 2rem; background: var(--tan); margin-top: 3rem; padding: 2.5rem; }
.connect .eyebrow { margin-top: 0; }
.connect h2 { margin-block: 0.5rem; }
.connect > p:not(.eyebrow) { color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.social-links a { border: 2px solid var(--ink); padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 0.85rem; text-decoration: none; transition: background 180ms ease, transform 180ms ease; }
.social-links a:hover { background: var(--yellow); transform: translateY(-3px) rotate(-2deg); }
.site-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.8rem; font-size: 0.75rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .page { animation: arrive 700ms ease both; }
  .hero-photo { animation: arrive 700ms ease both; }
  .hero::after { animation: twinkle 3s ease-in-out infinite alternate; }
  @keyframes arrive {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes twinkle {
    to { opacity: 0.35; transform: rotate(28deg) scale(1.15); }
  }
}

@media (max-width: 760px) {
  .hero { gap: 1rem; padding-block: 4rem; }
  .hero h1 { font-size: clamp(4.5rem, 12vw, 7rem); }
  .hero .eyebrow { max-width: 200px; }
  .featured-post { padding: 2rem; }
  .post-card { padding: 1.5rem; }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { padding-block: 1.2rem; gap: 1rem; }
  nav { gap: 0.1rem; }
  nav a { padding-inline: 0.8rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .hero .eyebrow { max-width: none; font-size: 0.6rem; }
  .hero h1 { font-size: clamp(4.5rem, 22vw, 7rem); }
  .hero-photo { width: 80%; max-width: 300px; }
  .section-heading h2 { font-size: 1.65rem; }
  .section-heading a { font-size: 0.75rem; }
  .home-posts { grid-template-columns: 1fr; }
  .featured-post { padding: 1.5rem; }
  .featured-post h3 { max-width: 100%; font-size: 2.4rem; }
  .page { padding-block: 3rem; }
  .post-list .post-card { padding: 1.5rem; }
  .post-list .post-card::after { display: none; }
  .post-card h2 { font-size: 1.9rem; }
  .connect { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
