/* ------------------------------------------------------------------
   The Half-Assed Hobbyist — rebuilt theme
   Rough shape of the Squarespace "Five" theme: 900 px canvas, Futura-ish
   headings, small grey body type, right-hand "Latest & Greatest" column.
   ------------------------------------------------------------------ */

:root {
  --ink: #222;
  --body-text: #828282;
  --muted: #6b6b6b;
  --faint: #9b9b9b;
  --line: #e5e5e5;
  --link: #4d4d4d;
  --font-head: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --font-body: "Inter", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --canvas: 900px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

a:hover { color: var(--ink); }

.container {
  width: var(--canvas);
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- header ---------------- */

.site-header { padding-top: 52px; }

.logo {
  display: block;
  width: 100%;
  font-family: var(--font-head);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 9px;
}

.tagline {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.main-nav a {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav a:hover { color: var(--ink); }

.main-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0 44px;
}

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ---------------- layout ---------------- */

.site-main { min-height: 40vh; }

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 62px;
  align-items: start;
}

.primary { min-width: 0; }

/* ---------------- typography / prose ---------------- */

.prose { font-size: 13px; line-height: 1.72; }

.prose p { margin: 0 0 1.25em; }

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 1.7em 0 0.55em;
  letter-spacing: 0.2px;
}

.prose h1 { font-size: 24px; }
.prose h2 { font-size: 23px; }
.prose h3 { font-size: 19px; }
.prose h4 { font-size: 16px; }

.prose > :first-child { margin-top: 0; }

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--ink); }

.prose strong { color: #555; font-weight: 600; }

.prose blockquote {
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

.prose ul,
.prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }

.prose li { margin-bottom: 0.35em; }

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 12px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
}

.prose th { background: #fafafa; color: var(--ink); }

.prose img { display: block; margin: 0 auto; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: #f5f5f5;
  padding: 0.1em 0.3em;
}

.prose pre {
  background: #f7f7f7;
  padding: 16px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
}

.prose pre code { background: none; padding: 0; }

/* ---------------- columns (converted Squarespace rows) ---------------- */

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 30px;
  margin: 1.4em 0;
}

.col { grid-column: span 6; min-width: 0; }

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-11 { grid-column: span 11; }
.span-12 { grid-column: span 12; }

/* ---------------- figures & galleries ---------------- */

.figure { margin: 2em 0; }

.figure img { width: 100%; }

.figure figcaption,
.gallery-item figcaption {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint);
  text-align: center;
  font-style: italic;
}

.gallery {
  columns: 3 180px;
  column-gap: 10px;
  margin: 2em 0;
}

.gallery-item {
  margin: 0 0 10px;
  break-inside: avoid;
}

.gallery-item a { display: block; }

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  background: #f3f3f3;
}

/* ---------------- page & post ---------------- */

.page-title {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 28px;
  letter-spacing: 0.2px;
}

.page-header { margin-bottom: 28px; }

.post-header { margin-bottom: 30px; }

.post-title {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.post-date {
  margin: 0;
  font-size: 12px;
  color: var(--faint);
}

.post-footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.post-categories,
.post-tags { margin: 0 0 0.4em; color: var(--faint); }

.post-categories a,
.post-tags a { color: var(--muted); text-decoration: underline; }

/* ---------------- cards ---------------- */

.card-list { display: grid; gap: 58px; }

.card-list-grid { gap: 36px; }

.card-title {
  font-family: var(--font-head);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 4px;
}

.card-title a { color: var(--ink); }

.card-title a:hover { color: #000; }

.card-image {
  display: block;
  margin-top: 16px;
  background: #f4f4f4;
}

.card-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.card-meta {
  margin: 0;
  font-size: 11.5px;
  color: var(--faint);
}

.card-cats a { color: var(--faint); }

.card-cats a:hover { color: var(--ink); }

/* ---------------- sidebar ---------------- */

.sidebar { padding-top: 6px; }

.sidebar-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}

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

.sidebar-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 22px;
  align-items: start;
}

.sidebar-thumb img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  background: #f4f4f4;
}

.sidebar-body h3 {
  margin: 0 0 5px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  line-height: 1.45;
  text-transform: uppercase;
}

.sidebar-body h3 a { color: #555; }

.sidebar-body h3 a:hover { color: var(--ink); }

.sidebar-meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--faint);
}

.sidebar-meta a { color: var(--faint); }

/* ---------------- search ---------------- */

.search { margin: 0 0 46px; }

.search input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink);
  border: 1px solid #dcdcdc;
  border-radius: 0;
  background: #fff;
  outline: none;
}

.search input::placeholder { color: #9b9b9b; }

.search input:focus { border-color: #9b9b9b; }

.search-status { font-size: 12px; color: var(--faint); margin: 0 0 30px; }

/* ---------------- galleries of pages ---------------- */

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  margin: 10px 0 20px;
}

.hobby-tile { display: block; }

.hobby-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f4f4f4;
}

.hobby-name {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.hobby-tile:hover .hobby-name { color: var(--ink); }

/* ---------------- events ---------------- */

.event-list { display: grid; gap: 34px; }

.event-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.event-thumb img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  background: #f4f4f4;
}

.event-when { margin: 0 0 4px; font-size: 11.5px; color: var(--faint); }

.event-body h2 {
  font-family: var(--font-head);
  font-size: 21px;
  margin: 0 0 8px;
}

.event-body h2 a { color: var(--ink); }

.event-more { margin: 0; font-size: 12px; }

/* ---------------- taxonomy ---------------- */

.term-header { margin-bottom: 34px; }

.term-count { margin: 0; font-size: 12px; color: var(--faint); }

.term-list {
  columns: 3;
  column-gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.term-list li { margin-bottom: 8px; break-inside: avoid; }

.term-list .count { color: var(--faint); }

/* ---------------- pagination ---------------- */

.pagination {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 56px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pagination a { color: var(--muted); }

.pagination a.active { color: var(--ink); font-weight: 600; }

.pagination-pages { display: flex; gap: 12px; margin: 0 auto; }

/* ---------------- comments ---------------- */

.comments {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.comments-title {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 22px;
}

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

.comment {
  margin-bottom: 26px;
  padding-left: 0;
}

.comment.depth-1 { margin-left: 34px; }
.comment.depth-2 { margin-left: 68px; }

.comment-author {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.comment-date {
  margin: 1px 0 8px;
  font-size: 11px;
  color: var(--faint);
}

.comment-body p { margin: 0; font-size: 12.5px; }

/* ---------------- footer ---------------- */

.site-footer { margin-top: 70px; padding-bottom: 46px; }

.site-footer .rule { margin: 0 0 18px; }

.site-footer p { margin: 0; font-size: 11.5px; color: var(--faint); }

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .layout-sidebar { grid-template-columns: minmax(0, 1fr); gap: 54px; }
  .sidebar { border-top: 1px solid var(--line); padding-top: 26px; }
  .sidebar-list li { grid-template-columns: 64px minmax(0, 1fr); }
  .sidebar-thumb img { width: 64px; height: 64px; }
}

@media (max-width: 760px) {
  .container { max-width: calc(100% - 36px); }

  .site-header { padding-top: 30px; }

  .logo { font-size: 31px; letter-spacing: 1.2px; white-space: normal; }

  .subhead { flex-wrap: wrap; align-items: center; }

  .tagline { font-size: 12px; }

  .nav-toggle-label {
    display: block;
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
  }

  .main-nav {
    display: none;
    flex-basis: 100%;
    margin-top: 18px;
  }

  .nav-toggle:checked ~ .subhead .main-nav { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rule { margin-bottom: 30px; }

  .page-title, .post-title { font-size: 26px; }

  .card-title { font-size: 21px; }

  .row { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  .col { grid-column: auto; }

  .gallery { columns: 2 140px; }

  .hobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .event-card { grid-template-columns: 1fr; }

  .event-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; }

  .term-list { columns: 2; }

  .pagination { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  .col { grid-column: auto; }

  .gallery { columns: 2 140px; }
  .term-list { columns: 1; }
}
