/* =========================================================
   Nick — shared stylesheet (minimalist theme)
   Used by: index.html, about.html, poems.html, contact.html
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --ink: #111111;
  --ink-soft: #6b6b6b;
  --line: #e5e5e5;
  --accent: #111111;
  --accent-ink: #ffffff;
  --accent-warm: #bf6a45;
  --accent-warm-soft: rgba(191, 106, 69, 0.35);
  --card: #ffffff;
  --radius: 8px;
  --wrap: 720px;

  /* dark stripe tokens */
  --bg-dark: #141414;
  --bg-dark-alt: #1e1e1e;
  --ink-dark: #f2f2f2;
  --ink-dark-soft: #a3a3a3;
  --line-dark: #333333;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: "Fraunces", "Georgia", serif;
}

.logo { font-style: italic; }

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

::selection { background: var(--accent-warm); color: #ffffff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
  border-radius: 2px;
}

.arrow { display: inline-block; transition: transform 0.15s ease; }
a:hover .arrow { transform: translateX(3px); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

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

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); transition: text-decoration-color 0.15s ease; }
a:hover { text-decoration-color: var(--accent-warm); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 0.75em;
}

.placeholder-note {
  display: inline-block;
  margin: 0 0 1.5em;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #333; box-shadow: 0 14px 28px -14px var(--accent-warm-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent-warm); color: var(--accent-warm); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 16px;
}

.logo {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.logo:hover { text-decoration: none; color: var(--accent-warm); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nav a:hover { color: var(--accent-warm); border-bottom-color: var(--accent-warm); transform: translateY(-1px); }

.nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent-warm);
}

.nav a.nav-highlight {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: transparent;
}
.nav a.nav-highlight:hover { color: var(--accent-warm); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 0 auto;
  background: var(--ink);
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; }
  .nav-toggle { display: flex; }
}

/* ---------- Dark sections (alternate stripe band) ---------- */

.section-dark {
  position: relative;
  background: var(--bg-dark);
  color: var(--ink-dark);
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}
.section-dark > .wrap { position: relative; z-index: 1; }
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--ink-dark); }
.section-dark p { color: var(--ink-dark-soft); }
.section-dark .eyebrow { color: var(--ink-dark-soft); }
.section-dark a { color: var(--ink-dark); text-decoration-color: var(--line-dark); }
.section-dark a:hover { text-decoration-color: var(--accent-warm); }

.section-dark .btn-primary { background: var(--ink-dark); color: #111111; }
.section-dark .btn-primary:hover { background: #d4d4d4; box-shadow: 0 14px 28px -14px var(--accent-warm-soft); }
.section-dark .btn-ghost { color: var(--ink-dark); border-color: var(--line-dark); }
.section-dark .btn-ghost:hover { border-color: var(--accent-warm); color: var(--accent-warm); }

.section-dark .about-photo {
  background: var(--bg-dark-alt);
  border-color: var(--line-dark);
  color: var(--ink-dark-soft);
  box-shadow: 0 24px 48px -24px var(--accent-warm-soft);
}

.section-dark .poem-entry { border-top-color: var(--line-dark); }
.section-dark .poem-list .poem-entry:last-child { border-bottom-color: var(--line-dark); }
.section-dark .poem-venue { color: var(--ink-dark-soft); }

.section-dark .link-item a { border-color: var(--line-dark); color: var(--ink-dark); }
.section-dark .link-item:first-child a { border-top-color: var(--line-dark); }
.section-dark .link-item a:hover { background: var(--bg-dark-alt); border-color: var(--accent-warm); }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 64px; }
.hero-inner { max-width: 560px; }
.hero-sub { font-size: 1rem; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.pull-quote {
  margin: 0 0 2em;
  padding-left: 20px;
  border-left: 2px solid var(--accent-warm);
  font-family: "Fraunces", "Georgia", serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
}
.pull-quote cite {
  display: block;
  margin-top: 0.6em;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-dark .pull-quote { color: var(--ink-dark); }
.section-dark .pull-quote cite { color: var(--ink-dark-soft); }

/* ---------- Generic page header (About / Work / Contact) ---------- */

.page-hero {
  padding: 64px 0 32px;
}

/* ---------- About ---------- */

.about { padding: 56px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) {
  .about-inner { grid-template-columns: 1fr; }
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Poems ---------- */

.poems { padding: 56px 0 80px; }
.section-sub { margin-top: -0.5em; margin-bottom: 2em; }

.poem-list {
  display: grid;
  gap: 0;
}

.poem-entry {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.poem-list .poem-entry:last-child { border-bottom: 1px solid var(--line); }

.poem-venue {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 0.5em;
}

.poem-title {
  font-style: italic;
  margin-bottom: 0.6em;
}

.poem-excerpt {
  margin: 0 0 1em;
  padding-left: 18px;
  border-left: 2px solid var(--accent-warm);
  font-family: "Fraunces", "Georgia", serif;
  font-style: italic;
  color: var(--ink-soft);
}
.poem-excerpt p { margin: 0 0 0.3em; color: inherit; }

.work-link { font-weight: 500; font-size: 0.88rem; }
.section-dark .poem-excerpt { color: var(--ink-dark-soft); }

.poem-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 0.5em;
}

/* ---------- Contact ---------- */

.contact { padding: 56px 0 88px; }
.contact-inner { max-width: 440px; }

.contact-alt { margin-top: 1.5em; font-size: 0.9rem; }

.contact-links { margin-top: 1.5em; }

/* ---------- Link list (used on Contact) ---------- */

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.link-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  padding: 15px 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-top: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.12s ease;
}
.link-item:first-child a { border-top: 1px solid var(--line); }
.link-item a:hover { background: var(--bg-alt); }
.link-icon {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--accent-warm);
  min-width: 22px;
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--bg-dark);
  color: var(--ink-dark-soft);
  padding: 24px 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}
.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-dark-soft);
}
.footer-inner p { color: var(--ink-dark-soft); margin: 0; }
.socials { display: flex; gap: 18px; }
.socials a { color: var(--ink-dark-soft); font-weight: 400; text-decoration-color: var(--line-dark); }
.socials a:hover { color: var(--accent-warm); text-decoration-color: var(--accent-warm); }
