:root {
  --background: #f7f7f4;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --border: #d9ded8;
  --link: #0b5cad;
  --link-hover: #083f78;
  --code-background: #1f2937;
  --code-text: #e5e7eb;
  --content-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0;
}

h2 {
  font-size: 1.65rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol,
blockquote,
pre,
table {
  margin-top: 0;
}

.skip-link {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: 1rem;
  transform: translateY(-150%);
  z-index: 10;
}

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

.site-header,
.site-main,
.site-footer {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.site-header-inner,
.site-main,
.site-footer-inner {
  max-width: var(--content-width);
}

.site-header-inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  max-width: calc(var(--content-width) - 2.5rem);
  row-gap: 0.6rem;
  white-space: nowrap;
  width: 100%;
}

.site-title {
  flex: 0 0 auto;
  font-size: 1.75rem;
  margin-bottom: 0;
}

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

.nav-list,
.social-links {
  display: flex;
  flex: 0 0 auto;
  gap: 0.85rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a,
.social-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list a.active,
.social-links a:hover,
.social-links a:focus {
  color: var(--text);
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list a.active {
  text-decoration: underline;
}

.social-links {
  border-left: 1px solid var(--border);
  margin-left: auto;
  padding-left: 1.25rem;
}

.social-links a {
  align-items: center;
  display: inline-flex;
  height: 1.25rem;
  justify-content: center;
  width: 1.25rem;
}

.social-icon {
  height: 1.1rem;
  width: 1.1rem;
}

.site-main {
  flex: 1;
  padding-bottom: 3rem;
  padding-top: 2.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding-bottom: 2rem;
  padding-top: 1.25rem;
}

.site-footer p {
  margin: 0;
}

.page > h1,
.post-header {
  margin-bottom: 2rem;
}

.post-meta,
.intro {
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  margin-bottom: 3rem;
}

.about-section,
.project-card,
.post-list li,
.table-wrap,
.park-card {
  background: var(--surface);
  border: 1px solid var(--border);
}

.about-section,
.project-card,
.post-list li {
  padding: 1.25rem;
}

.about-section {
  margin-bottom: 3rem;
  overflow: auto;
}

.about-photo,
.project-image {
  border: 1px solid var(--border);
}

.about-photo {
  height: auto;
  margin-bottom: 1rem;
  width: 100%;
}

.project-list,
.post-list {
  display: grid;
  gap: 1rem;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list h3,
.project-card h3 {
  margin-bottom: 0;
}

.post-list span {
  color: var(--muted);
  font-weight: 400;
}

.project-card {
  overflow: auto;
}

.project-card h3 span {
  color: var(--muted);
  font-weight: 400;
}

.project-description {
  margin-bottom: 0;
  margin-top: 0.75rem;
}

.project-more {
  display: block;
}

.project-more summary {
  color: var(--link);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.project-more summary:hover,
.project-more summary:focus {
  color: var(--link-hover);
}

.project-more summary::-webkit-details-marker {
  display: none;
}

.project-list-extra {
  margin-top: 1rem;
}

.project-image-wrap {
  margin-bottom: 1rem;
}

.project-image,
.post-image {
  height: auto;
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.parks-section {
  margin-top: 1.5rem;
}

.parks-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.park-card {
  aspect-ratio: 210 / 99;
  border: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.park-card-header {
  background: var(--text);
  color: var(--surface);
  padding: 0.5rem 0.75rem;
}

.park-card-unvisited .park-card-header {
  background: #68737f;
  color: var(--surface);
}

.park-card-header h3 {
  font-size: 1rem;
  margin: 0;
}

.park-card picture,
.park-photo-link,
.park-placeholder {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.park-photo-link {
  color: inherit;
}

.park-photo-link picture {
  height: 100%;
}

.park-photo {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.park-placeholder {
  background: #e5e7eb;
}

.post-image {
  border: 1px solid var(--border);
  margin: 1.5rem 0 0;
}

.content {
  font-family: Merriweather, Georgia, serif;
}

.content p,
.content ul,
.content ol,
.content blockquote,
.content pre,
.content table {
  margin-bottom: 1.25rem;
}

.content > :last-child {
  margin-bottom: 0;
}

.content h2,
.content h3 {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.content blockquote {
  border-left: 3px solid var(--border);
  color: var(--muted);
  margin-left: 0;
  padding-left: 1rem;
}

.content pre {
  background: var(--code-background);
  color: var(--code-text);
  overflow-x: auto;
  padding: 1rem;
}

.content :where(code):not(pre code) {
  background-color: var(--code-background);
  border-radius: 0.25rem;
  color: var(--code-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  white-space: nowrap;
}

.content a code {
  color: inherit;
}

.tags {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.tags h2 {
  border-top: 0;
  font-size: 1.25rem;
  margin-top: 0;
  padding-top: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0.2rem 0.5rem;
}

.not-found {
  padding: 3rem 0;
}

.not-found h1 {
  color: var(--link);
  font-size: clamp(3rem, 18vw, 5rem);
}

.not-found-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.button-link {
  border: 1px solid var(--link);
  display: inline-block;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.button-link:hover,
.button-link:focus {
  background: var(--link);
  color: var(--surface);
}

@media (min-width: 720px) {
  .about-photo,
  .project-image-wrap {
    float: right;
    margin: 0 0 1rem 1.25rem;
    width: 34%;
  }
}

@media (max-width: 560px) {
  .site-header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-title {
    font-size: 1.35rem;
  }

  .nav-list,
  .social-links {
    gap: 0.7rem;
  }

  .social-links {
    border-left: 0;
    flex-basis: 100%;
    margin-left: 0;
    padding-left: 0;
  }

  th,
  td {
    padding: 0.6rem;
  }
}
