:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1c1b18;
  --muted: #6d675f;
  --line: #d8d0c4;
  --accent: #8a452f;
  --accent-dark: #663222;
  --link: #24506d;
  --max-width: 880px;
  --reading-width: 680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(138, 69, 47, 0.35);
  outline-offset: 4px;
  border-radius: 3px;
}

.site-header,
.site-main,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-main {
  padding: 76px 0 96px;
}

.hero {
  max-width: 760px;
  margin-bottom: 86px;
}

.eyebrow {
   margin: 0 0 12px;
   color: var(--ink);
   font-size: 0.78rem;
   font-weight: 700;
   letter-spacing: 0.11em;
   text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  letter-spacing: -0.018em;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.55rem, 7vw, 4.7rem);
  font-weight: 600;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 600;
}

h3 {
  margin: 0;
  font-size: 1.34rem;
  font-weight: 600;
}

.lede {
  max-width: 700px;
  margin: 0;
  color: #37342f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.24rem, 2.5vw, 1.62rem);
  line-height: 1.55;
}

.status-line {
  margin-top: 25px;
  color: var(--muted);
}

.section-block {
  margin-top: 76px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
}

.section-heading a {
  font-size: 0.92rem;
  white-space: nowrap;
}

.post-list,
.project-list,
.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-preview,
.project-preview,
.experience-item {
  padding: 29px 0 31px;
  border-bottom: 1px solid var(--line);
}

.post-meta,
.project-meta,
.experience-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.87rem;
}

.post-title a,
.project-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-title a:hover,
.project-title a:hover {
  color: var(--accent-dark);
}

.post-excerpt,
.project-summary {
  max-width: 710px;
  margin: 12px 0 14px;
  color: #4a4640;
}

.read-more,
.text-link {
  display: inline-block;
  font-weight: 650;
  text-decoration: none;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 15px;
}

.page-header {
  max-width: 750px;
  margin-bottom: 58px;
}

.page-header h1 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 6vw, 4rem);
}

.page-intro {
  margin: 0;
  color: #47433d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.26rem;
}

.prose,
.article {
  max-width: var(--reading-width);
}

.prose p,
.article p {
  margin: 0 0 1.35em;
}

.prose h2,
.article h2 {
  margin-top: 2.25em;
  margin-bottom: 0.75em;
  font-size: 1.8rem;
}

.prose h3,
.article h3 {
  margin-top: 1.8em;
  margin-bottom: 0.65em;
}

.prose ul,
.article ul {
  padding-left: 1.25em;
}

.prose li,
.article li {
  margin-bottom: 0.55em;
}

.simple-list {
  padding-left: 1.1em;
}

.simple-list li {
  margin-bottom: 0.65em;
}

.article-header {
  max-width: var(--reading-width);
  margin-bottom: 48px;
}

.article-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 6vw, 3.85rem);
}

.article-deck {
  margin: 0 0 18px;
  color: #4a4640;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.article-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.article blockquote {
  margin: 2em 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: #3f3a34;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
}

.callout {
  margin: 34px 0;
  padding: 22px 24px;
  background:  #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  text-decoration: none;
  font-weight: 650;
}

.experience-role {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}

.experience-role h3 {
  font-size: 1.18rem;
}

.experience-role time {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.experience-item p {
  max-width: 700px;
  margin: 10px 0 0;
  color: #4a4640;
}

.contact-panel {
  max-width: 680px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header {
    display: block;
    padding-top: 24px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 13px;
    gap: 7px 17px;
  }

  .site-main {
    padding-top: 54px;
  }

  .hero {
    margin-bottom: 66px;
  }

  .section-heading {
    align-items: flex-end;
  }

  .experience-role {
    display: block;
  }

  .experience-role time {
    display: block;
    margin-top: 5px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.weather-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.button {
  appearance: none;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.weather-result {
  min-height: 150px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.weather-result h2 {
  font-size: 1.45rem;
}
