/* Black Raven — first-draft static site. Dark, minimal, geometric. */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-subtle: #8a8a8a;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --placeholder: #c8c8c8;
  --focus: #ffffff;
  --font: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space: clamp(1.25rem, 3vw, 2rem);
  --section-y: clamp(4.5rem, 12vw, 8rem);
  --content: 68rem;
  --header-h: 4.25rem;
  --draft-h: 2.25rem;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--draft-h) + var(--header-h) + 0.75rem);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Draft notice — visible, but visually quiet so it doesn't fight the logo */
.draft-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--draft-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border-bottom: 1px solid var(--line);
  color: #d0d0d0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: var(--draft-h);
  z-index: 20;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 2rem;
  height: auto;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-right: 0.42em; /* optical balance for letter-spacing */
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

/* Hero */
.hero {
  min-height: calc(100svh - var(--draft-h) - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vh, 6rem) var(--space);
}

.hero-logo {
  width: min(22rem, 72vw);
  height: auto;
  margin: 0 auto;
}

.hero-wordmark {
  margin: 2.25rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  padding-right: 0.55em;
  line-height: 1.2;
}

.hero-tagline {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.5;
  color: #d6d6d6;
}

/* Sections */
.section {
  padding: var(--section-y) var(--space);
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-elevated);
}

.section-inner {
  max-width: 64rem;
  margin: 0 auto;
}

.prose {
  max-width: 40rem;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

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

.section p.placeholder,
.hero-tagline.placeholder {
  color: var(--placeholder);
}

.intro {
  margin-bottom: 2.5rem !important;
}

/* Placeholder copy is wrapped in [brackets] in the HTML.
   A light italic keeps it distinct from final voice without looking like an error. */
.placeholder {
  font-style: italic;
  font-weight: 300;
}

h3.placeholder {
  font-style: italic;
  font-weight: 400;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  border: 1px solid var(--line);
  padding: 1.65rem 1.5rem 1.8rem;
  background: var(--bg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.card-index {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
  font-style: normal;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
}

.card p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.contact-email {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 2rem 0 0 !important;
}

.contact-email-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-style: normal;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-note {
  margin: 0 !important;
  font-size: 0.875rem;
  color: var(--text-subtle) !important;
  font-style: italic;
  font-weight: 300;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  caret-color: var(--text);
}

.field textarea {
  resize: none;
  min-height: 9rem;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Avoid a bright browser autofill flash on the dark form */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s ease-out;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.35rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  padding: 0.8rem 1.4rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: transparent;
  color: var(--text);
}

.form-status {
  margin: 0.15rem 0 0 !important;
  font-size: 0.9rem;
  color: var(--text) !important;
  font-style: italic;
  font-weight: 300;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem var(--space);
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 800px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding-top: 0.75rem;
    padding-bottom: 0.85rem;
  }

  .site-nav ul {
    justify-content: flex-start;
    gap: 0.35rem 1.1rem;
  }

  .hero-logo {
    width: min(16.5rem, 78vw);
  }

  .hero-wordmark {
    letter-spacing: 0.4em;
    margin-top: 1.75rem;
  }

  .section-inner {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .brand-name {
    letter-spacing: 0.32em;
  }

  .site-nav a {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
