/* Brandon Kayim — simple static site */

:root {
  --ink: #142033;
  --muted: #5a6b7d;
  --line: rgba(20, 32, 51, 0.12);
  --paper: #f4f7fa;
  --surface: #ffffff;
  --accent: #1a7a66;
  --accent-deep: #145c4d;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --max: 720px;
  --wide: 960px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(26, 122, 102, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(20, 32, 51, 0.06), transparent 50%),
    var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 250, 0.85);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent-deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Main */

main {
  padding: 2.5rem 0 4rem;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.35rem;
  animation: rise 0.7s var(--ease) both;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: rise 0.75s var(--ease) 0.05s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Home hero */

.hero {
  padding: 3.5rem 0 2rem;
  animation: rise 0.8s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 550;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 34rem;
  color: var(--muted);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.home-links {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  animation: rise 0.85s var(--ease) 0.1s both;
}

.home-links a {
  display: block;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}

.home-links a:hover {
  border-color: rgba(26, 122, 102, 0.45);
  transform: translateY(-2px);
  color: inherit;
}

.home-links strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.home-links span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Prose pages */

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose .note {
  padding: 1rem 1.15rem;
  background: rgba(26, 122, 102, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  margin: 1.5rem 0;
}

.edit-hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
}

.contact-block dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 0.85rem;
}

.contact-block dt:first-child {
  margin-top: 0;
}

.contact-block dd {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 650;
}

.contact-block a {
  text-decoration: none;
}

/* Support */

.support-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: rise 0.7s var(--ease) 0.05s both;
}

#support-search {
  flex: 1;
  min-width: min(100%, 240px);
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}

#support-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 122, 102, 0.18);
}

.support-list {
  display: grid;
  gap: 1rem;
}

.support-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  animation: rise 0.75s var(--ease) both;
}

.support-article[hidden] {
  display: none !important;
}

.support-article h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.support-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 122, 102, 0.12);
  color: var(--accent-deep);
}

#support-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

#support-empty[hidden] {
  display: none !important;
}

.template-note {
  margin-top: 2.5rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.template-note code {
  font-size: 0.85em;
  background: rgba(20, 32, 51, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Footer */

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

.site-footer .inner {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .nav {
    gap: 0.25rem 0.75rem;
  }

  .nav a {
    font-size: 0.85rem;
  }
}
