/*
 * Inkstead static site draft stylesheet.
 * Colors come from design/tokens/color.light.json and color.dark.json.
 * Zero external fonts, scripts, or third-party requests.
 */

:root {
  --surface: #f6f8f8;
  --surface-raised: #ffffff;
  --surface-sunken: #e9eeee;
  --outline: #d3dcdc;
  --outline-strong: #6f8284;
  --on-surface: #152022;
  --on-surface-muted: #4b5b5d;
  --accent: #00687a;
  --on-accent: #ffffff;
  --accent-container: #d2edf1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121718;
    --surface-raised: #1b2223;
    --surface-sunken: #0b0f10;
    --outline: #2c3637;
    --outline-strong: #7b8e90;
    --on-surface: #e5eded;
    --on-surface-muted: #a3b2b3;
    --accent: #5cc8d6;
    --on-accent: #00262d;
    --accent-container: #123f47;
  }
}

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

html {
  color-scheme: light dark;
  background: var(--surface);
  color: var(--on-surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

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

.site-header {
  border-bottom: 1px solid var(--outline);
  background: var(--surface-raised);
}

.header-inner,
main,
.footer-inner {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--on-surface);
  font-weight: 600;
  font-size: 1.125rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
}

nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
  color: var(--on-surface);
}

main {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.hero {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
  display: block;
  border: 1px solid var(--outline);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lead {
  margin: 0;
  font-size: 1.075rem;
  color: var(--on-surface-muted);
}

h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.025rem;
}

p,
ul {
  margin: 0 0 0.9rem;
}

ul {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.card {
  background: var(--surface-raised);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.card h2,
.card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.meta {
  background: var(--surface-raised);
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  margin: 1rem 0 1.75rem;
  font-size: 0.95rem;
}

.meta p {
  margin: 0.2rem 0;
}

code {
  background: var(--surface-sunken);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.site-footer {
  border-top: 1px solid var(--outline);
  background: var(--surface-raised);
  padding: 1.5rem 0;
  color: var(--on-surface-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }
}
