/* Gable Notes — small personal site */
:root {
  --canal: #1f4e6b;
  --canal-dark: #163a50;
  --water: #dbe7ec;
  --brick: #a8432f;
  --paper: #f6f3ec;
  --card: #fffdf8;
  --ink: #1d2328;
  --muted: #5f6b73;
  --line: #e3ddd0;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--canal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* Header */
.site-header {
  background: var(--canal);
  color: #fff;
  border-bottom: 4px solid var(--brick);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: #fff; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.site-nav a {
  color: #e6eff3;
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid #f0b9a8;
}

/* Hero */
.hero { padding: 40px 0 8px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 12px;
}
.hero p { color: var(--muted); max-width: 620px; margin: 0 0 24px; }
.hero .skyline { margin: 8px 0 0; }

/* Post grid */
.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brick);
  margin: 36px 0 14px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0 0 48px;
  list-style: none;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px 22px;
  border-top: 4px solid var(--canal);
}
.card:nth-child(even) { border-top-color: var(--brick); }
.card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 4px 0 8px;
}
.card h2 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover { color: var(--brick); }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 0.97rem; }
.card .more { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.date { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.03em; }

/* Article */
.post { padding: 36px 0 24px; }
.post h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.25;
  margin: 6px 0 20px;
}
.post figure { margin: 24px 0; }
.post figure img {
  background: var(--water);
  border-radius: 10px;
  padding: 14px;
  width: 100%;
}
.post figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; text-align: center; }
.post h2 { font-size: 1.15rem; margin: 30px 0 6px; color: var(--canal-dark); }
.post blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--brick);
  color: var(--muted);
  font-style: italic;
}
.back { font-size: 0.92rem; text-decoration: none; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin: 36px 0 40px;
  padding-top: 16px;
  font-size: 0.93rem;
}
.post-nav a { text-decoration: none; }
.post-nav .next { text-align: right; margin-left: auto; }

/* Simple pages */
.page { padding: 36px 0 48px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 0 0 16px; }
.page .illus { max-width: 360px; margin: 18px 0 24px; }
.notfound { text-align: center; padding: 56px 0 64px; }
.notfound .illus { margin: 0 auto 20px; max-width: 220px; }
.notfound h1 { font-size: 2.4rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 22px 0 30px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 1.7rem; }
  .post h1, .page h1 { font-size: 1.6rem; }
  .post-grid { grid-template-columns: 1fr; gap: 14px; }
  .site-nav a { margin-left: 14px; }
  .brand { font-size: 1.05rem; }
  .post-nav { flex-direction: column; }
  .post-nav .next { text-align: left; margin-left: 0; }
}
