/* ============================================================
   TNSoftware — Stylesheet
   ============================================================ */

/* --- Reset --- */

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

/* --- Custom Properties --- */

:root {
  --bg: #f8f8f6;
  --fg: #141413;
  --muted: #6b6b63;
  --accent: #1a3c5e;
  --accent-hover: #275d8a;
  --border: #ddddd8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --page-width: 640px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

/* --- Base --- */

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Accent bar --- */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  z-index: 100;
}

/* --- Container --- */

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* --- Links --- */

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ============================================================
   Hero — Main Page
   ============================================================ */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  padding-top: calc(var(--gutter) + 3px);
}

.hero-inner {
  text-align: center;
  animation: fadeUp 0.7s ease-out both;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--fg);
  line-height: 1.1;
}

.hero-rule {
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: 1.75rem auto;
}

.hero-text {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 26rem;
  margin: 0 auto 2.5rem;
}

.hero-contact {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* ============================================================
   Site Header — Legal Pages
   ============================================================ */

.site-header {
  padding-top: calc(2rem + 3px);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-header__logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--fg);
}

.site-header__logo:hover {
  color: var(--accent);
}

/* ============================================================
   Content — Legal Pages
   ============================================================ */

.content {
  flex: 1;
  padding-top: 3rem;
  padding-bottom: 4rem;
  animation: fadeUp 0.7s ease-out both;
}

.content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.content p {
  margin-bottom: 1rem;
}

.content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.content li {
  margin-bottom: 0.35rem;
}

.content address {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content .muted {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ============================================================
   Footer
   ============================================================ */

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

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  gap: 1rem;
}

.site-footer__nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer__nav a {
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

/* ============================================================
   Animation
   ============================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 480px) {
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
