:root {
  --paper: #f5f1e7;
  --paper-strong: #fffdf8;
  --ink: #18201d;
  --muted: #606a66;
  --line: rgba(24, 32, 29, 0.12);
  --evergreen: #1e5b4c;
  --evergreen-deep: #153c33;
  --accent: #d96d39;
  --shadow: 0 24px 60px rgba(21, 60, 51, 0.12);
  --content-width: 1180px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(30, 91, 76, 0.12), transparent 28rem),
    linear-gradient(180deg, #edf2eb 0%, var(--paper) 14%, var(--paper) 100%);
  overflow-x: hidden;
}

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

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

.shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245, 241, 231, 0.84);
  border-bottom: 1px solid rgba(24, 32, 29, 0.08);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--evergreen) 0%, #2f7865 100%);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.brand-mark::before {
  top: 9px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid rgba(255, 255, 255, 0.92);
}

.brand-mark::after {
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--evergreen);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.eyebrow,
.mini-label,
.post-meta,
.card-meta {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.73rem;
  font-weight: 800;
}

.eyebrow {
  opacity: 0.72;
  margin-bottom: 16px;
}

.section-title,
.feature-title,
.post-title,
.post-body h1,
.post-body h2,
.post-body h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.04em;
}

.masthead-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.masthead-actions-compact .pill {
  min-height: 40px;
}

.pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 700;
}

.pill-primary {
  background: #f3e7d1;
  color: var(--evergreen-deep);
}

.pill-secondary {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.identity-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-content: start;
  padding: 22px;
  border-radius: 26px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.identity-card h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.identity-lead {
  font-weight: 700;
}

.identity-card p {
  margin: 0;
  color: rgba(248, 251, 248, 0.82);
  line-height: 1.7;
}

.identity-meta {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  color: rgba(248, 251, 248, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}

.content-grid {
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.feature {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(24, 32, 29, 0.06);
}

.feature-label {
  color: var(--evergreen);
  margin-bottom: 18px;
}

.feature-title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  max-width: 12ch;
}

.feature-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 62ch;
}

.feature-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-meta {
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--evergreen);
}

.cta::after {
  content: "→";
}

.section {
  margin-top: 30px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1;
}

.section-copy {
  margin: 0;
  max-width: 54ch;
  line-height: 1.75;
  color: var(--muted);
}

.posts {
  display: grid;
  gap: 18px;
}

.pager {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pager-link,
.pager-spacer {
  min-width: 124px;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  color: var(--evergreen);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(24, 32, 29, 0.04);
}

.pager-link:hover,
.pager-link:focus-visible {
  border-color: rgba(30, 91, 76, 0.24);
  background: #fffdf8;
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(24, 32, 29, 0.08);
  border-color: rgba(30, 91, 76, 0.2);
}

.post-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 24px;
}

.post-card-body,
.post-arrow {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.card-meta {
  color: var(--evergreen);
  margin-bottom: 12px;
}

.post-title {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.08;
}

.post-summary {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.post-summary a {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  color: var(--evergreen);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.post-arrow {
  width: 48px;
  height: 48px;
  align-self: center;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ecf2ec;
  color: var(--evergreen);
  font-size: 1.16rem;
  font-weight: 800;
}

.sidebar-stack {
  display: grid;
  gap: 20px;
}

.panel {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.panel-brand {
  overflow: hidden;
  color: #f8fbf8;
  background:
    radial-gradient(circle at top right, rgba(217, 109, 57, 0.13), transparent 16rem),
    linear-gradient(135deg, var(--evergreen-deep) 0%, var(--evergreen) 62%, #2f7764 100%);
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.1);
}

.panel-brand .identity-card {
  gap: 14px;
  padding: 0;
}

.panel-brand .avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
}

.panel-brand h2 {
  margin-bottom: 6px;
}

.panel-brand .identity-meta {
  margin-top: 12px;
  gap: 8px;
}

.panel-brand .mini-label,
.panel-brand h2,
.panel-brand .identity-meta,
.panel-brand .identity-card p,
.panel-brand .identity-lead {
  color: #f8fbf8 !important;
}

.panel-brand .mini-label {
  opacity: 0.8;
}

.panel-brand .identity-card p,
.panel-brand .identity-lead,
.panel-brand .identity-meta span {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.panel-brand .pill-secondary {
  background: rgba(255, 255, 255, 0.12);
}

.panel h3 {
  margin: 10px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.profile-links,
.app-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.newsletter-input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(24, 32, 29, 0.14);
  background: rgba(255, 255, 255, 0.78);
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
}

.newsletter-input:focus {
  outline: 2px solid rgba(30, 91, 76, 0.25);
  outline-offset: 2px;
  border-color: var(--evergreen);
}

.newsletter-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--evergreen);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
}

.newsletter-button:hover,
.newsletter-button:focus-visible {
  background: var(--evergreen-deep);
}

.newsletter-honeypot {
  position: absolute;
  left: -5000px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  font-weight: 700;
  width: fit-content;
}

.profile-link-icon {
  min-width: 1.65em;
  height: 1.65em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(24, 32, 29, 0.08);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
}

.app-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 32, 29, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(24, 32, 29, 0.08);
  border-color: rgba(30, 91, 76, 0.2);
}

.app-card img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(30, 91, 76, 0.08);
}

.app-card h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.app-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.app-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--evergreen);
  font-size: 0.93rem;
  font-weight: 800;
}

.app-link::after {
  content: "→";
}

.site-footer {
  padding: 28px 0 44px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.post-shell {
  padding: 24px 0 56px;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.post-layout > div,
.post-header,
.post-body-wrap,
.post-body {
  min-width: 0;
}

.post-header,
.post-body-wrap {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
}

.post-body-wrap {
  margin-top: 24px;
}

.post-header .post-title {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.post-header .post-summary {
  max-width: 62ch;
  font-size: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--evergreen);
  font-weight: 800;
}

.back-link::before {
  content: "←";
}

.post-body {
  color: #27302d;
  line-height: 1.82;
  font-size: 1.04rem;
}

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

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

.post-body a {
  color: var(--evergreen);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.post-body pre,
.post-body code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.post-body pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 18px;
  background: #f0eee8;
  border: 1px solid rgba(24, 32, 29, 0.08);
}

.post-body code {
  background: rgba(24, 32, 29, 0.06);
  padding: 0.12em 0.32em;
  border-radius: 6px;
}

.post-body pre code {
  background: transparent;
  padding: 0;
}

.post-body blockquote {
  margin: 1.6rem 0;
  padding-left: 18px;
  border-left: 4px solid rgba(30, 91, 76, 0.35);
  color: var(--muted);
}

.post-body img,
.post-body table {
  max-width: 100%;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.post-body th,
.post-body td {
  border: 1px solid rgba(24, 32, 29, 0.1);
  padding: 10px 12px;
  text-align: left;
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .topbar-inner {
    min-height: 68px;
  }

  .nav {
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .feature,
  .panel,
  .post-card,
  .post-header,
  .post-body-wrap {
    padding: 20px;
  }

  .content-grid {
    padding-top: 20px;
  }

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

  .avatar {
    width: 84px;
    height: 84px;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

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