/* ============================================
   COLTER GUTHRIE — AUTHOR SITE
   Shares the design system with thebigquietchronicles.com:
   Palette: Ink / Parchment / Juniper / Ember / Blood
   Display: Fraunces · Body: Newsreader · Utility: Space Mono
   ============================================ */

:root {
  --ink: #14171B;
  --ink-soft: #262b31;
  --parchment: #EEE8DA;
  --parchment-dim: #E2DACB;
  --juniper: #33443A;
  --ember: #A8622C;
  --ember-dim: #8f5324;
  --blood: #7A2A2A;
  --slate: #7C7D74;
  --line: rgba(20, 23, 27, 0.14);
  --line-on-dark: rgba(238, 232, 218, 0.16);

  --font-display: 'Fraunces', serif;
  --font-body: 'Newsreader', serif;
  --font-mono: 'Space Mono', monospace;

  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.case-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.9rem;
}

/* ---------- HEADER ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(238, 232, 218, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-link {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav-link:hover { border-color: var(--ember); }
.nav-cta {
  background: var(--ink);
  color: var(--parchment) !important;
  padding: 0.55rem 1rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--ember-dim); border-color: transparent; }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,23,27,0.88) 0%, rgba(20,23,27,0.55) 38%, rgba(20,23,27,0.12) 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--parchment);
  padding-bottom: 4rem;
  padding-top: 7rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.02;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment);
  opacity: 0.92;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
  margin-top: 1.3rem;
}

/* ---------- ABOUT ---------- */

.about-section {
  padding: 6rem 0 7rem;
}
.about-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 1.8rem;
}
.about-content p {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.about-content em {
  font-style: italic;
  color: var(--ink);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 6.5rem;
}
.sidebar-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
}
.sidebar-block--muted {
  background: var(--parchment-dim);
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 0.7rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.side-link:last-child { margin-bottom: 0; }
.side-link:hover { border-color: var(--ember); color: var(--ember-dim); }

.side-link--filled {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}
.side-link--filled:hover {
  background: var(--ember-dim);
  border-color: var(--ember-dim);
  color: var(--parchment);
}

.social-row {
  display: flex;
  gap: 1.3rem;
  opacity: 0.7;
}
.social-row a:hover { color: var(--ember); }

/* ---------- FOOTER ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-align: center;
  margin: 0;
}

/* ---------- CONTACT / LITERARY INQUIRIES ---------- */

.contact-section {
  background: var(--ink);
  color: var(--parchment);
  padding: 6rem 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-style: italic;
  margin: 0.6rem 0 1.2rem;
}
.contact-intro p {
  color: rgba(238,232,218,0.75);
  font-size: 1.05rem;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238,232,218,0.55);
}
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line-on-dark);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.6rem 0.1rem;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ember);
}
.field textarea { resize: vertical; }

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  border-radius: 2px;
  width: fit-content;
}
.btn-primary {
  background: var(--ember);
  color: var(--ink);
  transition: background 0.2s ease;
}
.btn-primary:hover { background: #c17539; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.contact-success {
  max-width: 480px;
  padding: 2rem 2.2rem;
  border: 1.5px solid var(--ember);
  border-radius: 4px;
  background: rgba(168, 98, 44, 0.12);
}
.newsletter-success-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ember);
  margin: 0 0 0.7rem;
}
.newsletter-success-body {
  font-size: 1rem;
  color: rgba(238,232,218,0.8);
  margin: 0;
}

@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 820px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-block { flex: 1 1 220px; }
  .hero { min-height: 70vh; }
}

@media (max-width: 560px) {
  .about-sidebar { flex-direction: column; }
  .site-nav { gap: 0.8rem; }
  .nav-link:not(.nav-cta) { display: none; }
  body { font-size: 17px; }
}
