﻿:root {
  --bg: #ffffff;
  --panel: #f2f2f2;
  --text-main: #1f1f1f;
  --text-muted: #5d5d5d;
  --accent: #111111;
  --line: #e7e7e7;
  --focus: #2f8cff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Ubuntu", Helvetica, sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.4;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.content,
.site-footer {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  padding-top: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: clamp(54px, 5vw, 68px);
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
}

h1 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.subtitle {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.social-links {
  padding-block: 0.9rem;
}

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

.social-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.social-link:hover {
  text-decoration: underline;
}

.content {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 1rem;
}

h2 {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.1;
}

.section-note {
  margin: 0.85rem 0 1.4rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 75ch;
}

.doc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.15rem;
}

.doc-card article {
  display: grid;
  grid-template-rows: 66% auto auto 1fr auto;
  gap: 0.8rem;
  min-height: 430px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
}

.doc-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.doc-visual {
  background:
    linear-gradient(130deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02)),
    repeating-linear-gradient(-45deg, #efefef, #efefef 14px, #f7f7f7 14px, #f7f7f7 28px);
  background-position: center;
  border-bottom: 1px solid #dcdcdc;
}

.doc-visual.has-image {
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.doc-meta,
.doc-title,
.doc-description,
.doc-cta {
  margin-inline: 1.1rem;
}

.doc-meta {
  min-height: 1.3rem;
}

.doc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.doc-title {
  font-size: 2rem;
  line-height: 1.15;
}

.doc-description {
  margin-top: 0;
  margin-bottom: 0;
  color: #333333;
  font-size: 1rem;
}

.doc-cta {
  margin-bottom: 1.1rem;
  justify-self: start;
  color: var(--text-main);
  border: 1px solid #c6c6c6;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.52rem 0.8rem;
}

.doc-card-link:hover .doc-cta {
  background: var(--panel);
}

.doc-card-link:hover article {
  border-color: #bdbdbd;
}

.site-footer {
  padding-top: 1.2rem;
  padding-bottom: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.94rem;
}

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

@media (max-width: 720px) {
  .site-header,
  .content,
  .site-footer {
    width: min(1200px, calc(100% - 1.5rem));
  }

  .content {
    padding-top: 1.4rem;
  }

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

  .doc-card article {
    min-height: 390px;
    grid-template-rows: 150px auto auto 1fr auto;
  }

  .doc-title {
    font-size: 1.55rem;
  }
}
