/* thewestwardphoto.com — Nightshift
   Long-form features on the night economy. Dark-mode charcoal, amber+rust+bone.
   All-serif typography for a Saturday-magazine feel. */

:root {
  --char: #161514;
  --char-2: #1e1c1a;
  --char-3: #262320;
  --bone: #e6dfd0;
  --bone-dim: #c9c1b0;
  --bone-fade: #6d6659;
  --amber: #c48b3a;
  --amber-deep: #8f6220;
  --rust: #8a3520;
  --rust-glow: #c15234;
  --line: #3a352f;
  --line-soft: #2a2622;
}

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

body {
  margin: 0;
  font-family: "Iowan Old Style", "Charter", "Palatino Linotype", "Book Antiqua", "Palatino", Georgia, serif;
  font-size: 18px;
  line-height: 1.78;
  color: var(--bone);
  background: var(--char);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

/* ============ MASTHEAD ============ */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--char);
  padding: 0;
}
.masthead-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 40px 26px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.brand {
  color: var(--bone);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-name {
  font-family: "Times New Roman", "Times", "Iowan Old Style", Georgia, serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.6px;
  line-height: 1;
  color: var(--bone);
}
.brand-name em {
  font-style: italic;
  font-weight: 900;
  color: var(--amber);
}
.brand-tag {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: var(--bone-fade);
  letter-spacing: 0.4px;
}
.mainnav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.mainnav a {
  color: var(--bone-dim);
  text-decoration: none;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.1px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.mainnav a:hover, .mainnav a[aria-current="page"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ============ HERO ============ */
.hero-block {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--char);
}
.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}
.eyebrow {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--amber);
  margin: 0 0 20px;
  letter-spacing: 0.5px;
}
.eyebrow::before {
  content: "❦ ";
  color: var(--rust-glow);
  margin-right: 2px;
  font-style: normal;
}

h1.headline {
  font-family: "Times New Roman", "Times", "Iowan Old Style", "Palatino", Georgia, serif;
  font-weight: 900;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: -1.2px;
  color: var(--bone);
  margin: 0 0 28px;
}
h1.headline em {
  font-style: italic;
  color: var(--amber);
}

.standfirst {
  font-size: 22px;
  line-height: 1.5;
  color: var(--bone-dim);
  font-style: italic;
  margin: 0 0 30px;
  max-width: 780px;
}

.byline {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 14px;
  color: var(--bone-fade);
  letter-spacing: 0.1px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-soft);
}
.byline strong { color: var(--bone); font-weight: 700; }
.byline em { color: var(--amber); font-style: italic; }

/* Full-width hero photo */
.hero-photo {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-photo figcaption {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 40px 0;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--bone-fade);
  line-height: 1.5;
}

/* ============ ARTICLE ============ */
.page { padding: 0; }
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 40px 30px;
}

.article > p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.78;
  color: var(--bone);
}
.article > p a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article > p a:hover {
  color: var(--rust-glow);
  text-decoration-color: var(--rust-glow);
}

/* Drop cap on first paragraph */
.article > p.lede::first-letter {
  font-family: "Times New Roman", Times, serif;
  font-weight: 900;
  font-size: 84px;
  line-height: 0.85;
  float: left;
  color: var(--amber);
  padding: 8px 12px 0 0;
  margin-top: 4px;
}

/* Section H2 — serif at heavy weight */
h2 {
  font-family: "Times New Roman", "Times", "Iowan Old Style", Georgia, serif;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.6px;
  color: var(--bone);
  margin: 54px 0 18px;
  line-height: 1.1;
}
h2 em { font-style: italic; color: var(--amber); }
h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--amber);
  margin: 0 0 20px;
}

h3 {
  font-family: "Iowan Old Style", "Palatino", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  color: var(--bone);
  margin: 34px 0 8px;
  letter-spacing: -0.1px;
}

ul, ol {
  margin: 0 0 26px;
  padding-left: 26px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--bone);
}
li { margin-bottom: 10px; }
ul li::marker { color: var(--amber); }

/* Pull quote — big and moody */
.pullquote {
  font-family: "Times New Roman", "Times", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.28;
  color: var(--bone);
  padding: 32px 0 32px 40px;
  border-left: 2px solid var(--amber);
  margin: 40px 0;
  max-width: 640px;
  position: relative;
}
.pullquote::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber) 0%, var(--rust) 100%);
}
.pullquote-attrib {
  display: block;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--bone-fade);
  margin-top: 18px;
  letter-spacing: 0.1px;
}
.pullquote-attrib::before { content: "— "; color: var(--amber); }

/* Full-width gallery figure — breaks out of column */
.gallery-figure {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin: 60px -50vw 60px -50vw;
  max-width: 100vw;
}
.gallery-figure img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 640px;
  object-fit: cover;
}
.gallery-figure figcaption {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 40px 0;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--bone-fade);
  line-height: 1.5;
}

/* Inline figure — within column */
.inline-figure {
  margin: 40px 0;
}
.inline-figure img {
  width: 100%;
  display: block;
}
.inline-figure figcaption {
  padding: 12px 0 0;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--bone-fade);
  line-height: 1.5;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 14px;
}

/* Author bio */
.author-bio {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 34px 0;
  margin: 50px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.author-bio img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(20%) contrast(1.05);
}
.author-bio h4 {
  margin: 0 0 4px;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--bone);
  letter-spacing: -0.4px;
}
.author-bio .role {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--amber);
  margin: 0 0 12px;
}
.author-bio p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone-dim);
}

/* TOC */
.toc {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  padding: 26px 32px;
  margin: 40px 0;
  background: var(--char-2);
}
.toc-title {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--amber);
  margin: 0 0 14px;
  letter-spacing: 0.3px;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 16px;
  line-height: 1.9;
  columns: 2;
  column-gap: 40px;
}
.toc li {
  break-inside: avoid;
  padding-left: 30px;
  position: relative;
}
.toc li::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  color: var(--amber);
  font-style: italic;
  font-size: 13px;
  top: 2px;
}
.toc a {
  color: var(--bone-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 1px;
}
.toc a:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* FAQ */
.faq { margin: 40px 0; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 20px 44px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--bone);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--amber);
  font-family: serif;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0 0 20px;
  padding: 0 40px 0 0;
  color: var(--bone-dim);
  font-size: 16.5px;
  line-height: 1.65;
  font-family: "Iowan Old Style", Georgia, serif;
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--bone-fade);
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 40px 0;
}
.breadcrumbs a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px dotted var(--amber-deep);
}
.breadcrumbs a:hover { color: var(--rust-glow); }
.breadcrumbs .sep { margin: 0 10px; color: var(--bone-fade); }

/* Related */
.related {
  margin: 60px 0 30px;
  padding: 34px 0 4px;
  border-top: 2px solid var(--amber);
}
.related h3 {
  margin: 0 0 20px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 0.3px;
  font-weight: 400;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  padding-bottom: 20px;
}
.related-item a {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 900;
  color: var(--bone);
  text-decoration: none;
  font-size: 20px;
  line-height: 1.15;
  display: block;
  letter-spacing: -0.3px;
}
.related-item a:hover { color: var(--amber); }
.related-item p {
  font-size: 14px;
  color: var(--bone-fade);
  margin: 8px 0 0;
  line-height: 1.5;
  font-style: italic;
}

/* Disclosure */
.disclosure {
  background: var(--char-3);
  border: 1px solid var(--line);
  padding: 24px 28px;
  margin: 34px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--bone-dim);
  font-family: "Iowan Old Style", Georgia, serif;
}
.disclosure h4 {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 0.3px;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.disclosure p { margin: 0 0 10px; }
.disclosure p:last-child { margin-bottom: 0; }
.disclosure a { color: var(--amber); }
.badge-18 {
  display: inline-block;
  background: var(--rust);
  color: var(--bone);
  font-family: "Times New Roman", Times, serif;
  font-weight: 900;
  padding: 3px 9px;
  margin-right: 10px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ============ FOOTER ============ */
.masthead-foot {
  border-top: 1px solid var(--line);
  background: var(--char-2);
  margin-top: 70px;
}
.masthead-foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 40px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}
.masthead-foot h5 {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 0.4px;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.masthead-foot p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 8px;
  color: var(--bone-dim);
  font-family: "Iowan Old Style", Georgia, serif;
}
.masthead-foot a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
}
.masthead-foot a:hover { color: var(--rust-glow); }
.masthead-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14.5px;
  font-family: "Iowan Old Style", Georgia, serif;
}
.masthead-foot li { margin-bottom: 8px; }
.footer-baseline {
  border-top: 1px solid var(--line);
  padding: 20px 40px;
  max-width: 1240px;
  margin: 0 auto;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--bone-fade);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.contact-form label {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.2px;
  margin-bottom: 4px;
  display: block;
}
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line);
  background: var(--char-2);
  padding: 13px 15px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 16px;
  color: var(--bone);
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(196, 139, 58, 0.15);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
  background: var(--amber);
  color: var(--char);
  border: none;
  padding: 14px 28px;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  justify-self: start;
}
.contact-form button:hover { background: var(--rust-glow); color: var(--bone); }

/* Responsive */
@media (max-width: 900px) {
  h1.headline { font-size: 52px; letter-spacing: -0.9px; }
  .standfirst { font-size: 19px; }
  h2 { font-size: 28px; }
  .pullquote { font-size: 24px; padding-left: 24px; }
  .toc ol { columns: 1; }
  .masthead-foot-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-inner { padding: 0 24px; }
  .article { padding: 40px 24px 30px; }
  .breadcrumbs { padding: 20px 24px 0; }
  .hero-photo figcaption { padding: 14px 24px 0; }
  .gallery-figure figcaption { padding: 14px 24px 0; }
  .author-bio { grid-template-columns: 90px 1fr; gap: 20px; }
  .author-bio img { width: 90px; height: 90px; }
  .masthead-inner { padding: 20px 24px; }
}
@media (max-width: 560px) {
  h1.headline { font-size: 40px; }
  .brand-name { font-size: 24px; }
  h2 { font-size: 24px; }
  .article > p.lede::first-letter { font-size: 66px; }
  .pullquote { font-size: 21px; padding-left: 18px; }
}

/* Print */
@media print {
  body { background: white; color: black; }
  .masthead, .masthead-foot, .footer-baseline, .mainnav, .contact-form { display: none; }
  a { color: black; text-decoration: underline; }
  .gallery-figure { width: 100%; left: 0; right: 0; margin: 30px 0; }
  h2::before { background: black; }
}

/* Focus */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: var(--amber);
  color: var(--char);
}
