:root {
  color-scheme: light;
  --paper: #fffdf8;
  --ink: #1e1b15;
  --olive: #36471e;
  --olive-dark: #293815;
  --muted: #57594e;
  --line: #deddd0;
  --heading: Georgia, 'Times New Roman', serif;
  --body: system-ui, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.02em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.wrap { width: min(68rem, calc(100% - 4rem)); margin-inline: auto; }

.skip-link { position: fixed; z-index: 2; top: .75rem; left: .75rem; padding: .65rem 1rem; transform: translateY(-150%); background: var(--olive); color: #fff; border-radius: .4rem; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem 1.5rem; }
.header-inner { min-height: 4.45rem; padding-block: .55rem; }
.logo { flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.logo img { width: clamp(6.4rem, 12vw, 8rem); height: auto; }
.nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(.8rem, 3vw, 2rem); }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: .9375rem; font-weight: 550; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--olive); text-decoration: underline; text-underline-offset: .28em; }

.hero { background: #edf0e2; border-bottom: 1px solid #dfe4d1; text-align: center; }
.hero-inner { padding-block: clamp(3.5rem, 6.35vw, 5.55rem); }
.tagline { color: var(--olive); font-size: .9375rem; font-weight: 650; }
.hero h1 { margin-top: .85rem; font-size: clamp(2.65rem, 6vw, 5rem); }
.intro { max-width: 37rem; margin: 1.05rem auto 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.1875rem); text-wrap: pretty; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .55rem 1.15rem; background: var(--olive); border: 1px solid transparent; border-radius: .4rem; color: #fff; font-weight: 650; text-align: center; text-decoration: none; }
.button:hover { background: var(--olive-dark); }
.hero .button { margin-top: 1.45rem; }

.catalog { padding-block: clamp(2.6rem, 5vw, 4rem); }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.app-grid li { min-width: 0; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; height: 100%; min-width: 0; padding: clamp(1rem, 2vw, 1.35rem); border: 1px solid var(--line); border-radius: .7rem; background: #fffefa; text-decoration: none; transition: border-color .16s ease, background-color .16s ease; }
.app-card:hover { border-color: var(--olive); background: #f7f8ef; }
.app-card h3 { margin-top: .25rem; overflow-wrap: anywhere; }
.app-card p { margin-bottom: .35rem; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.app-mark { display: grid; place-items: center; width: 2.95rem; height: 2.95rem; overflow: hidden; border-radius: .55rem; background: #e8eddb; color: #3b4f26; font-size: .875rem; font-weight: 750; }
.app-mark img { width: 100%; height: 100%; object-fit: contain; }
.app-mark--blue { background: #e3eaf1; color: #324b65; }
.app-mark--rose { background: #f0e6e7; color: #714653; }
.app-mark--sand { background: #f3ead7; color: #684c25; }
.card-action, .text-link, .back-link { color: var(--olive); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.card-action { margin-top: auto; font-size: .9375rem; }
.app-card:hover .card-action { text-decoration: underline; }

.about { display: grid; grid-template-columns: minmax(12rem, .7fr) 1.3fr; gap: .9rem 2rem; padding-block: 2rem clamp(2.7rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.about h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.about p { max-width: 38rem; color: var(--muted); }
.site-footer { padding-block: .75rem; border-top: 1px solid var(--line); background: #f7f6ed; }
.footer-brand { color: var(--olive); font-family: var(--heading); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.footer-brand:hover { text-decoration: underline; }

.subpage { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
.subpage h1 { max-width: 19ch; font-size: clamp(2.7rem, 6.2vw, 4.6rem); }
.subpage p { max-width: 41rem; margin-top: .85rem; color: var(--muted); white-space: pre-line; }
.subpage .button { margin-top: 1.2rem; }
.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: .95rem; font-size: .9375rem; }
.product-intro { padding: clamp(1.3rem, 5vw, 3.25rem); border: 1px solid var(--line); border-radius: .75rem; background: #f0f1e5; }
.product-intro .app-mark { width: 3.4rem; height: 3.4rem; margin-bottom: 1rem; }
.content-section { max-width: 42rem; margin-top: 2.25rem; padding-top: 1.65rem; border-top: 1px solid var(--line); }
.content-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.content-section > a { display: inline-block; margin-top: .55rem; }
.link-list { width: min(100%, 33rem); padding-left: 1.25rem; }
.link-list li + li { margin-top: .5rem; }
.screenshot { width: fit-content; max-width: 100%; margin-top: 1.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; }
.screenshot img { height: auto; }

@media (max-width: 48rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { gap: .15rem .75rem; min-height: 3.9rem; }
  .nav { column-gap: .8rem; }
  .app-grid { gap: .65rem; }
  .about { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none; }
}
