:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: rgba(10, 10, 10, 0.14);
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #0b0b0b;
    --ink: #f5f5f5;
    --muted: #a3a3a3;
    --line: rgba(245, 245, 245, 0.16);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* Each logo file has its own background, so show the one that matches the theme. */
.on-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .on-light {
    display: none;
  }

  .on-dark {
    display: inline-block;
  }
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
}

nav a {
  margin-left: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin: 0;
}

.hero {
  padding-top: 64px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 16px 0 20px;
}

.lead {
  font-size: clamp(17px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  margin: 0 0 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tile {
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.tile h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tile .num {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
}

.product {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid var(--line);
  padding: 24px;
}

.product img {
  width: 56px;
  height: 56px;
  flex: none;
}

.product h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.product p {
  margin: 0 0 12px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 1px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.note {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 70ch;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0 44px;
}

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

footer p {
  margin: 0;
}

footer .tagline {
  color: var(--ink);
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero-logo {
    order: -1;
    max-width: 200px;
  }
}

@media (max-width: 520px) {
  .product {
    flex-direction: column;
  }

  nav a {
    margin-left: 14px;
    letter-spacing: 0.16em;
  }
}

/* "Naintu" is always written as the Naintu signature, as in the admin portal. */
.sig-name {
  font-family: 'Satisfy', cursive;
  font-weight: 400;
  font-size: 1.18em;
  letter-spacing: 0;
  line-height: 1;
}
