@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Didact+Gothic&display=swap');

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

:root {
  --white: #FAFAF8;
  --off-white: #F2F0EB;
  --ink: #1A1916;
  --mid: #6B6860;
  --light: #B8B5AE;
  --accent: #8B6914;
  --rule: #E0DDD7;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}
header.scrolled { border-color: var(--rule); }

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--accent); font-style: italic; }

nav { display: flex; gap: 3rem; align-items: center; }
nav a {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--ink); }

/* Buttons */
.btn-primary {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 1rem 2.5rem;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
}
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-ghost::after {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  transition: width 0.3s;
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover::after { width: 40px; }

.rule { border: none; border-top: 1px solid var(--rule); margin: 0 4rem; }

/* Footer */
footer {
  padding: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  margin-top: 6rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--light);
}
.footer-copy {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light);
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 1.25rem; align-items: center; }
.social-icon {
  color: var(--light); text-decoration: none;
  display: flex; align-items: center; transition: color 0.2s;
}
.social-icon:hover { color: var(--ink); }

/* Mobile */
@media (max-width: 768px) {
  header { padding: 1.5rem; }
  nav a:not(:last-child) { display: none; }
  .rule { margin: 0 1.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; gap: 1.25rem; text-align: center; }
  .footer-links { gap: 1.5rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  header { padding: 1.75rem 2.5rem; }
  .rule { margin: 0 2.5rem; }
  footer { padding: 2.5rem; }
}
