/* Imperial Millwork — Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;500;600&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brass);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: var(--radius-sm); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); font-weight: 600; }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); font-weight: 500; }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); font-weight: 500; }
h4 { font-size: var(--text-xl); font-weight: 500; }

p { max-width: var(--max-prose); line-height: 1.7; }

code, pre {
  font-family: var(--font-mono);
  font-size: .88em;
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (max-width: 640px) { .container { padding-inline: var(--space-2); } }

.section { padding-block: var(--space-12); }
.section--sm { padding-block: var(--space-6); }

/* Visually hidden (for accessibility) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Brass accent line — used as a section separator */
.brass-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brass);
  border-radius: 2px;
  margin-bottom: var(--space-3);
}

/* Button primitives */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 14px var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.btn--primary {
  background: var(--brass);
  color: var(--paper-raised);
}
.btn--primary:hover { background: var(--brass-ink); }

.btn--outline {
  background: transparent;
  color: var(--brass);
  border: 1.5px solid var(--brass);
}
.btn--outline:hover { background: var(--brass-soft); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { background: var(--paper-raised); }
