/* Doppia, LLC — company information site */

:root {
  --bg: #f7f5f0;
  --bg-deep: #f0ede6;
  --surface: #fffefb;
  --text: #211d16;
  --muted: #766f5f;
  --border: #e0dacc;
  --hairline: #e9e4d8;
  --accent: #2f4d7a;
  --rule: #2f4d7a;
  --glow: rgba(47, 77, 122, 0.07);
  --shadow: 0 1px 2px rgba(35, 28, 15, 0.05), 0 1px 1px rgba(35, 28, 15, 0.03);
  --shadow-hover: 0 10px 28px rgba(35, 28, 15, 0.1), 0 2px 6px rgba(35, 28, 15, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17150f;
    --bg-deep: #121017;
    --surface: #201d19;
    --text: #ece7dd;
    --muted: #a49c8c;
    --border: #37332a;
    --hairline: #2b2820;
    --accent: #a3bfe8;
    --rule: transparent;
    --glow: rgba(163, 191, 232, 0.05);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(70rem 26rem at 50% -8rem, var(--glow), transparent 70%),
    var(--bg);
  border-top: 7px double var(--rule);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

h1,
.wordmark,
.mark,
.card-title,
.card-mark,
.footer-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  padding-bottom: 0.1rem;
}

.wordmark {
  font-size: 1.3rem;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.site-header nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-style: double;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

/* Main */

main {
  flex: 1;
  padding-bottom: 5rem;
}

.hero {
  padding: 4rem 0 1.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  border-top: 3px double var(--muted);
  opacity: 0.8;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 1rem;
}

/* Section headings */

h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 1.2rem;
}

h2::after {
  content: "";
  flex: 1;
  border-top: 3px double var(--hairline);
}

/* Product card */

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.card-mark {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  padding-bottom: 0.15rem;
}

.card-title {
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.3;
}

.card-tagline {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: italic;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
}

.card-arrow {
  flex: none;
  margin-left: auto;
  color: var(--muted);
  font-size: 1.25rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.card-desc {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
}

.chips li {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.aside {
  margin: 0.95rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Company information */

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.4rem 1.5rem;
}

.info {
  margin: 0;
}

.info > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
}

.info > div:last-child {
  border-bottom: none;
}

.info dt {
  color: var(--muted);
  font-size: 0.92rem;
  padding-top: 0.1rem;
}

.info dd {
  margin: 0;
  line-height: 1.6;
}

/* Footer */

.site-footer {
  border-top: 3px double var(--border);
  background: var(--bg-deep);
  padding: 2.5rem 0 2.75rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem 4rem;
}

.footer-name {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* Small screens */

@media (max-width: 520px) {
  .hero {
    padding-top: 2.75rem;
  }

  .info > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .info-card {
    padding: 0.3rem 1.15rem;
  }

  .card {
    padding: 1.15rem 1.2rem;
  }
}
