:root {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #14b8a6;
  --accent-hover: #2dd4bf;
  --line: #222222;
  --cta-text: #042f2e;
  --max: 42rem;
  --wide: 60rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--accent);
  color: var(--cta-text);
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

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

.header-inner,
.footer-inner {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.main-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.wordmark img {
  display: block;
  height: 48px;
  width: auto;
}

.wordmark:hover {
  color: var(--text);
  text-decoration: none;
}

.wordmark small {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

main {
  flex: 1;
  padding: 2.25rem 0 4rem;
}

.intro {
  margin-bottom: 2.25rem;
}

.intro h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.intro p {
  color: var(--muted);
}

.intro .byline {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tip-list {
  list-style: none;
}

.tip-list li {
  border-top: 1px solid var(--line);
}

.tip-list .card {
  display: block;
  padding: 1.35rem 0;
  color: inherit;
  text-decoration: none;
}

.tip-list .card:hover {
  color: inherit;
  text-decoration: none;
}

.tip-list .card:hover h2 {
  color: var(--accent);
}

.tip-list time {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tip-list h2 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0.3rem 0 0.4rem;
}

.tip-list .summary {
  color: var(--muted);
}

.page-title {
  font-size: clamp(1.85rem, 5.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

article.tip h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

article.tip .date {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

article.tip .hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.75rem;
  background: #000;
  border: 1px solid var(--line);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.2rem;
}

.prose li {
  margin: 0 0 0.45rem;
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 650;
}

.cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.cta a {
  display: inline-block;
  background: var(--accent);
  color: var(--cta-text);
  font-weight: 700;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
}

.cta a:hover {
  background: var(--accent-hover);
  color: var(--cta-text);
  text-decoration: none;
}

.back {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 720px) {
  main {
    padding-top: 3rem;
  }

  .tip-list h2 {
    font-size: 1.5rem;
  }

  .tip-list .card {
    padding: 1.55rem 0;
  }
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.related li {
  margin: 0.4rem 0;
}

.kicker a {
  color: inherit;
}

.prose h2,
.faq h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}

.faq {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.faq h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.25rem 0 0.35rem;
}

.faq p {
  color: var(--muted);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2.5rem 0 0.5rem;
}

.tip-list h3 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0.3rem 0 0.4rem;
}

.tip-list .card:hover h3 {
  color: var(--accent);
}

.note {
  margin-top: 2rem;
  color: var(--muted);
}
