/* SubmitList LLC — corporate site */

:root {
  /* SubmitList palette — pulled from Helm's "Forge and Flame":
     Marble cream bg, Obsidian text, Battle Bronze accent. Warmer
     and less corporate than the original deep-green draft. */
  --bg: #F5EFE3;
  --bg-alt: #EDE5D3;
  --text: #1C1C1C;
  --text-muted: #6B5E4D;
  --accent: #B87333;
  --accent-hover: #C9944E;
  --border: #DDD1B8;
  --max-width: 760px;
  --content-padding: 24px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

@media (max-width: 480px) {
  body { font-size: 16px; }
}

/* Skip link for keyboard users */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Layout containers */
.site-header,
.site-footer,
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* Header / nav */
.site-header {
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
}
.brand:hover { color: var(--accent); }

.brand-mark {
  width: 28px;
  height: 28px;
  background: #1C1C1C;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-mark::before {
  content: 'SL';
}

nav.site-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 15px;
  display: inline-block;
  min-height: 44px;
  display: flex;
  align-items: center;
}
nav.site-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}
nav.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Main content */
main {
  padding-top: 56px;
  padding-bottom: 80px;
}

main > * + * {
  margin-top: 24px;
}

h1, h2, h3 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 {
  font-size: 38px;
  margin: 0 0 8px;
}
@media (max-width: 480px) {
  h1 { font-size: 32px; }
}
h2 {
  font-size: 24px;
  margin: 56px 0 16px;
}
h3 {
  font-size: 19px;
  margin: 32px 0 8px;
}

p { margin: 16px 0; }

.lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 0;
  max-width: 600px;
}

/* Portfolio card on home */
.portfolio {
  margin-top: 64px;
}
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  background: #FFFAEF;
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.portfolio-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  color: var(--text);
}
.portfolio-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.portfolio-card-name {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}
.portfolio-card-domain {
  font-size: 14px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.portfolio-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* Definition-list-ish details (for /about, /contact) */
.detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}
.detail-value { color: var(--text); }

@media (max-width: 600px) {
  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding-top: 32px;
  padding-bottom: 56px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer p { margin: 8px 0; }
.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.site-footer a:hover { color: var(--accent); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  align-items: center;
}
.footer-meta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Honest, restrained motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Long-form prose (privacy, terms) */
.prose h2 { margin-top: 48px; }
.prose ul {
  padding-left: 22px;
  margin: 16px 0;
}
.prose li { margin: 8px 0; }
.prose .updated {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 32px;
}
