:root {
  --bg: #f5f6f4;
  --surface: #fcfcfb;
  --text: #111111;
  --muted: #5a5f66;
  --line: #dde0db;
  --accent: #2f5a48;
  --max-width: 1240px;
  --section-pad: clamp(2.75rem, 6vw, 4.25rem);
  --radius: 14px;
  --shadow: 0 12px 30px rgba(16, 22, 18, 0.07);
}

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

html {
  font-size: clamp(12.5px, 0.45vw + 11px, 16px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 246, 244, 0.94);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.wordmark {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", "Menlo", monospace;
}

.wordmark a {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: clamp(96px, 14vw, 132px);
  height: auto;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.nav-list a:hover {
  color: var(--text);
}

main {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

section + section {
  margin-top: 6.4rem;
}

.home-main {
  padding-top: 0;
}

.home-main > section + section {
  margin-top: clamp(3.25rem, 7vw, 5.8rem);
}

.hero {
  max-width: 900px;
  position: relative;
}

.with-accent-line {
  border-left: 2px solid #b8c8be;
  padding-left: clamp(0.8rem, 2vw, 1.5rem);
}

.with-accent-line::before,
.with-accent-line::after {
  content: "";
  position: absolute;
  right: 6%;
  width: 280px;
  height: 1px;
  background: rgba(47, 90, 72, 0.14);
}

.with-accent-line::before {
  top: 30%;
  transform: rotate(42deg);
}

.with-accent-line::after {
  top: 30%;
  transform: rotate(-42deg);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 1rem;
  font-family: "IBM Plex Serif", "Iowan Old Style", "Georgia", serif;
}

h1 {
  font-size: clamp(2.5rem, 6.8vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  max-width: 72ch;
}

.lead {
  font-size: clamp(1.05rem, 2.3vw, 1.32rem);
  color: var(--muted);
  max-width: 55ch;
  margin-top: 1.35rem;
}

.accent-text {
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 1rem;
}

.apps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.card {
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card p {
  color: var(--muted);
}

.card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.42rem;
  font-weight: 600;
}

.apps-grid .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(16, 22, 18, 0.1);
}

.home-main .apps-grid .card {
  min-height: clamp(170px, 20vw, 250px);
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border-radius: 8px;
}

.band {
  width: auto;
  margin-left: calc(50% - 50%);
  margin-right: calc(50% - 50%);
  padding: var(--section-pad) 0;
  box-shadow:
    inset 0 1px 0 var(--line),
    inset 0 -1px 0 var(--line),
    0 8px 20px rgba(16, 22, 18, 0.03);
}

.apps-band {
  background: #eceef0;
}

.updates-band {
  background: #f0f2f4;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
}

.hero-shell,
.about-shell {
  background: #ffffff;
}

.wide-container {
  width: min(100% - clamp(1.4rem, 4vw, 3rem), 1380px);
  margin-inline: auto;
}

.narrow-copy {
  max-width: 860px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  padding: 0;
  list-style: none;
  margin: 0.3rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
}

.feature-list li + li {
  margin-top: 0.45rem;
}

.screenshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.screenshot {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-block;
  border: 1px solid var(--text);
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.5rem 0.92rem;
  font-size: 0.93rem;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

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

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

.updates-block {
  max-width: 760px;
}

.updates-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0.6rem;
}

.updates-form input {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.updates-form button {
  padding: 0.62rem 0.85rem;
  border: 1px solid #b8bdc3;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.updates-form button:hover {
  border-color: var(--accent);
}

.updates-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95em;
}

.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;
}

.admin-main {
  padding-top: 2.2rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-form-stack,
.admin-form-grid {
  display: grid;
  gap: 0.8rem;
}

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

.admin-form-grid .full {
  grid-column: 1 / -1;
}

.admin-main input,
.admin-main textarea,
.admin-main button {
  font: inherit;
}

.admin-main input,
.admin-main textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
}

.admin-main button {
  border: 1px solid #b8bdc3;
  background: #ffffff;
  color: var(--text);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.admin-main button:hover {
  border-color: var(--accent);
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.admin-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.post-card time {
  color: var(--muted);
  font-size: 0.94rem;
}

.article {
  max-width: 740px;
}

.article h2 {
  margin-top: 2.1rem;
}

.pricing-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6f7f9;
  padding: 1.1rem;
}

@media (max-width: 640px) {
  html {
    font-size: clamp(11.5px, 1.8vw + 6px, 13.5px);
  }

  main {
    padding-top: 2.4rem;
  }

  section + section {
    margin-top: 3.8rem;
  }

  .home-main > section + section {
    margin-top: 3.8rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wide-container {
    width: min(100% - 2rem, 1380px);
  }

  .band {
    padding: 2.2rem 0;
  }

  .with-accent-line::before,
  .with-accent-line::after {
    right: -4%;
    width: 160px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

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

  .with-accent-line::before,
  .with-accent-line::after {
    right: -2%;
    width: 180px;
  }
}

@media (max-width: 860px) {
  html {
    font-size: clamp(12px, 1.05vw + 6px, 14.5px);
  }

  .header-row {
    min-height: auto;
    padding-block: 0.8rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .home-main .apps-grid .card {
    min-height: 0;
  }

  .with-accent-line::before,
  .with-accent-line::after {
    display: none;
  }
}
