:root {
  --bg: #ffffff;
  --text: #16202e;
  --muted: #5a6675;
  --primary: #16263f;
  --primary-dark: #0e1a2c;
  --accent: #a9824f;
  --accent-dark: #8c6a3d;
  --border: #e3e7ec;
  --surface: #f7f8fa;
  --surface-2: #eef1f5;
  --maxw: 1080px;
  --radius: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.wordmark {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--primary);
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

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

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

.nav a.active {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 6.5rem 0 5.5rem;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  color: #fff;
  max-width: 760px;
}

.hero p.subhead {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: #dfe5ed;
  font-weight: 400;
  font-style: italic;
  max-width: 640px;
  margin: 0 0 1.5rem;
}

.hero p.intro {
  color: #c3ccd8;
  max-width: 680px;
  margin: 0 0 1.25rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 720px;
}

.clarifier {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf3;
  font-size: 0.98rem;
  max-width: 680px;
  border-radius: 0 6px 6px 0;
}

.section .clarifier {
  background: var(--surface-2);
  color: var(--text);
}

.rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border: 0;
  margin: 0 0 1.75rem;
}

.prose {
  max-width: 720px;
}

.prose p {
  margin-bottom: 1.15rem;
}

/* Portfolio */
.portfolio-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: #fff;
  max-width: 720px;
}

.portfolio-item .mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.portfolio-item h3 {
  margin-bottom: 0.25rem;
}

.portfolio-item p {
  margin: 0;
}

/* Contact */
.contact-block {
  margin-top: 1.75rem;
  max-width: 560px;
}

.contact-block dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 1.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-block dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Legal pages */
.legal .container {
  max-width: 760px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
}

.legal ul {
  color: var(--muted);
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal strong {
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--primary);
  padding: 2.75rem 0;
  margin-top: 0;
}

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

.footer-meta {
  color: #aeb9c7;
  font-size: 0.9rem;
  max-width: 640px;
}

.footer-meta p {
  margin: 0.15rem 0;
  color: #aeb9c7;
}

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

.footer-links a {
  color: #c9d2dd;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .portfolio-item {
    flex-direction: column;
    gap: 0.85rem;
  }
}
