/* =============================================================================
   Muchfiner Theme
   ============================================================================= */

/* CSS Variables */
:root {
  --red: #f03e3e;
  --cyan: #00b8e8;
  --cyan-dark: #007b9b;
  --amber: #ffb200;
  --white: #dbd8d1;
  --dark: #222222;
  --muted: #888888;
  --border: #e0e0e0;
  --light: #f7f7f7;
  --max-width: 768px;
  --max-width-wide: 960px;
}

/* -----------------------------------------------------------------------------
   Reset & Base
   ----------------------------------------------------------------------------- */

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

body {
  font-family: "Source Serif 4", serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

h1 {
  font-size: 2.6em;
  line-height: 1.15;
}
h2 {
  font-size: 1.8em;
  line-height: 1.3;
}
h3 {
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h4 {
  font-size: 0.76em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

a {
  color: var(--cyan-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:visited {
  color: var(--cyan-dark);
}

/* -----------------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* -----------------------------------------------------------------------------
   Navigation
   ----------------------------------------------------------------------------- */

#nav {
  padding: 3em 0 1em;
  display: flex;
  justify-content: center;
  background: var(--white);
}

#nav .logotype {
  font-size: 2.05em;
  font-weight: 650;
  color: #3d3530;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}

#nav .logotype-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

#nav .logotype:hover {
  color: var(--cyan);
  text-decoration: none;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */

#footer {
  padding: 2em 0;
  margin-top: 7em;
  font-size: 0.8em;
  color: var(--muted);
}

#footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer a {
  color: var(--muted);
  text-decoration: none;
}
#footer a:hover {
  color: var(--dark);
}

/* -----------------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------------- */

.section {
  padding: 3.5em 0;
}

.section--hero {
  padding: 6em 0 5em;
}

/* -----------------------------------------------------------------------------
   Typography
   ----------------------------------------------------------------------------- */

.page-title {
  font-size: 3.4em;
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 0.5em;
}

.page-title .accent {
  font-style: normal;
  color: var(--red);
}

.subhead {
  font-size: 1.1em;
  color: var(--muted);
  max-width: 480px;
}

.meta {
  font-size: 0.78em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -----------------------------------------------------------------------------
   Prose (long-form content)
   ----------------------------------------------------------------------------- */

.prose {
  max-width: 680px;
}

.prose p {
  margin-bottom: 1.3em;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.3em;
  margin: 2.2em 0 0.75em;
}

.prose h3 {
  margin: 1.8em 0 0.5em;
}

.prose ul,
.prose ol {
  margin: 1em 0 1em 1.8em;
}

.prose li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

.prose code {
  font-size: 0.85em;
  background: var(--light);
  padding: 0.15em 0.4em;
  font-family: "SF Mono", "Fira Code", monospace;
}

.prose pre {
  background: var(--light);
  padding: 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 0.85em;
  line-height: 1.5;
}

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

.prose blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1.5em;
  margin: 1.8em 0;
  color: var(--muted);
  font-style: italic;
}

.prose a {
  color: var(--cyan-dark);
}

/* -----------------------------------------------------------------------------
   Card
   ----------------------------------------------------------------------------- */

.card {
  background: #afaca7;
  padding: 3em 3.5em;
  border-radius: 16px;
  border: 1px solid #eee;
}

.card--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: start;
}

.card__title {
  font-size: 2em;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.3em;
}

/* -----------------------------------------------------------------------------
   Feature list
   ----------------------------------------------------------------------------- */

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

.feature-list li {
  padding: 0.65em 0;
  font-size: 0.9em;
  color: #555;
}

/* -----------------------------------------------------------------------------
   Data table
   ----------------------------------------------------------------------------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 3em;
  font-size: 0.95em;
}

.data-table td {
  padding: 0.85em 0;
  vertical-align: top;
}

.data-table td:first-child {
  font-weight: 600;
  width: 38%;
  padding-right: 2em;
  color: var(--dark);
}

.data-table td:last-child {
  color: #555;
}

/* -----------------------------------------------------------------------------
   Action elements
   ----------------------------------------------------------------------------- */

.link-cta {
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--red);
  text-decoration: none;
}

.link-cta:hover {
  text-decoration: underline;
  color: var(--cyan);
}

.btn-disabled {
  display: inline-block;
  padding: 0.75em 2em;
  background: var(--border);
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: not-allowed;
  user-select: none;
}

/* -----------------------------------------------------------------------------
   Home
   ----------------------------------------------------------------------------- */

.section--intro {
  padding-top: 2em;
}

.lede {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.15em;
  line-height: 1.7;
  color: #444;
  text-align: center;
}

.product-links {
  list-style: none;
  max-width: 480px;
  margin: 0 auto;
}

.product-links li {
  padding: 1.8em 0;
  text-align: center;
}

.product-links__name {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--red);
}

.product-links__name:hover {
  color: var(--cyan);
}

.product-links__desc {
  margin-top: 0.4em;
  color: var(--muted);
  line-height: 1.6;
}

.feature-list--two-col {
  columns: 2;
  column-gap: 3em;
  margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   Post listing
   ----------------------------------------------------------------------------- */

.post-list {
  padding: 0.5em 0;
}

.post-item {
  padding: 2.2em 0;
}

.post-item__title {
  font-size: 1.4em;
  margin-bottom: 0.3em;
}

.post-item__title a {
  color: var(--dark);
  text-decoration: none;
}

.post-item__title a:hover {
  color: var(--cyan);
}

.post-item__meta {
  margin-bottom: 0.8em;
}

.post-item__summary {
  color: #444;
  line-height: 1.65;
  margin-bottom: 0.8em;
  max-width: 680px;
}

/* -----------------------------------------------------------------------------
   Pagination
   ----------------------------------------------------------------------------- */

.pagination {
  display: flex;
  justify-content: space-between;
  padding: 2em 0;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5em;
}

.pagination a {
  color: var(--dark);
  text-decoration: none;
}

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

/* -----------------------------------------------------------------------------
   Archives
   ----------------------------------------------------------------------------- */

.archive-group {
  margin-bottom: 2.5em;
}

.archive-group__label {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
}

.archive-entries {
  list-style: none;
}

.archive-entries li {
  display: flex;
  gap: 2em;
  padding: 0.55em 0;
  font-size: 0.92em;
  align-items: baseline;
}

.archive-entries .date {
  color: var(--muted);
  font-size: 0.82em;
  min-width: 130px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.archive-entries a {
  color: var(--dark);
  text-decoration: none;
}

.archive-entries a:hover {
  color: var(--cyan);
}
