:root {
  --bg: #f5f3ee;
  --surface: #fbfaf7;
  --ink: #15140f;
  --muted: #6b675c;
  --line: #dcd8cd;
  --accent: #a9573a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0d;
    --surface: #171714;
    --ink: #ecebe6;
    --muted: #98948a;
    --line: #2b2a25;
    --accent: #cc7c5e;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  display: block;
}

/* Hero */
.hero {
  padding-top: 72px;
  padding-bottom: 24px;
}

h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 11vw, 112px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Sections */
section {
  padding-top: 32px;
  padding-bottom: 72px;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.01em;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-logo {
  flex: none;
  width: 30px;
  height: 30px;
}

.product h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.product-tagline {
  margin: 10px 0 0;
  font-size: 17px;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 15px;
}

.product-links a:first-child {
  font-weight: 600;
}

/* Contact */
.contact {
  padding-top: 0;
}

.contact-inner {
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.contact h2 {
  margin-bottom: 20px;
}

.contact-mail {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 4.5vw, 40px);
  letter-spacing: -0.01em;
}

.contact-note {
  margin: 14px 0 0;
  max-width: 56ch;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

/* Text pages */
.doc > * {
  max-width: 680px;
}

.doc {
  padding-top: 40px;
  padding-bottom: 96px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 46px);
  max-width: none;
}

.doc .meta {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.doc h2 {
  margin: 44px 0 10px;
  font-size: 22px;
}

.doc p,
.doc li,
.doc address {
  color: var(--muted);
  font-style: normal;
}

.doc ul {
  padding-left: 20px;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 40px;
  }

  section {
    padding-top: 24px;
    padding-bottom: 52px;
  }
}

/* Intro and brand descriptions */
.intro {
  margin: 22px 0 0;
  max-width: 60ch;
  font-size: 18px;
  color: var(--muted);
}

.product-desc {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}

.contact-address {
  margin: 14px 0 0;
  font-style: normal;
  color: var(--muted);
}
