/* Ghostweather site styles (2026 redesign). Pages not yet converted still use default.css. */

:root {
  --cream: #FBF7F0;
  --paper: #FFFDF9;
  --ink: #2B2823;
  --muted: #5E5A52;
  --sage: #55663F;
  --sage-soft: #E4E9D6;
  --orange: #E8761C;       /* logo and nav underline only; too light for text */
  --orange-text: #A94606;
  --orange-hover: #6E2E03;
  --hair: #E5DBCB;
  --glow: #FCE2B8;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14'%3E%3Cpath d='M1 7h11' stroke='%2355663F' stroke-width='2' fill='none'/%3E%3Cpath d='M11 2l6 5-6 5z' fill='%2355663F'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

/* Hairline underline in a pale tint of the link color, full strength on hover */
a {
  color: var(--orange-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(169, 70, 6, 0.35);
}
a:hover { color: var(--orange-hover); text-decoration-color: currentColor; }
/* Titles and jump links are clearly links already: underline only on hover */
.item-title a, .row .org a, .jump a { text-decoration: none; }
.item-title a:hover, .row .org a:hover, .jump a:hover { text-decoration: underline; }

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

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

.site-header {
  background: radial-gradient(ellipse 55% 130% at 14% 35%, var(--glow) 0%, rgba(252, 226, 184, 0) 72%), var(--cream);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap { padding-top: 28px; display: flex; flex-direction: column; gap: 20px; }

.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.brand .logo { display: block; line-height: 0; }
.brand .logo img { width: auto; height: 130px; filter: drop-shadow(1px 2px 2px rgba(43, 40, 35, 0.45)); }
/* .brand prefix: on the homepage the site name is the page's h1 */
.brand .brand-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-left: -14px; }
.main-nav a {
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--orange); }

/* ---- Page layout ---- */

main.wrap { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
main.with-sidebar { flex-direction: row; flex-wrap: wrap; gap: 48px 56px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }

section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.stack-lg { gap: 28px; }
.stack-md { gap: 20px; }

/* Bio-style section: heading on the left, content on the right */
.split { flex-direction: row; flex-wrap: wrap; gap: 20px 56px; border-top: 1px solid var(--hair); padding-top: 28px; }
.split > h2 { flex: 1 1 220px; align-self: flex-start; font-size: 26px; }
.split > .body { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.split > .body.rows { gap: 0; }

/* ---- Type ---- */

h1, .page-title {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--sage);
  text-wrap: balance;
}
h2 { font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 500; color: var(--sage); }
h3 { font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 500; color: var(--sage); }
.lead { font-family: var(--serif); font-size: clamp(22px, 3.5vw, 28px); line-height: 1.35; font-weight: 400; text-wrap: pretty; }
.lead strong { font-weight: 600; }
.lead-sm { font-family: var(--serif); font-size: 23px; line-height: 1.4; text-wrap: pretty; }
.label { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.item-title { font-family: var(--serif); font-size: 24px; line-height: 1.25; font-weight: 500; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }
.small { font-size: 16px; line-height: 1.55; }

/* ---- Components ---- */

.page-head { display: flex; flex-direction: column; gap: 12px; }
.jump { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-size: 15px; }
.jump .label { margin-right: 14px; }
.jump ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; row-gap: 4px; }
/* dot trails each item, so a wrapped line never starts with one */
.jump li:not(:last-child)::after { content: "·"; color: var(--muted); padding: 0 10px; }

/* Grid of points, each with the arrow bullet and a hairline above */
.points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 36px; }
.points > li { border-top: 1px solid var(--hair); padding-top: 16px; padding-left: 30px; font-size: 16px; background: var(--arrow) no-repeat 0 23px; }

/* Plain list with arrow bullets */
.arrow-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.arrow-list.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px 36px; }
.arrow-list > li { padding-left: 30px; background: var(--arrow) no-repeat 0 7px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips span { padding: 4px 14px; border: 1px solid var(--hair); background: var(--paper); border-radius: 999px; font-size: 15px; font-weight: 600; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px 36px; }

.card {
  flex: 1 1 260px;
  min-width: 0;
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.card h2 { font-size: 24px; }
.card .label { letter-spacing: 0.1em; }
.card div { display: flex; flex-direction: column; gap: 4px; }

/* What's New: short cards with a hairline above */
.news { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px 36px; }
.news li { border-top: 1px solid var(--hair); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.news .item-title { font-size: 21px; }

/* Rows separated by hairlines: experience, talks */
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.row .org { flex: 1 1 200px; font-family: var(--serif); font-size: 19px; line-height: 1.3; font-weight: 600; }
.row .org small { display: block; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); }
.row .text { flex: 3 1 360px; min-width: 0; font-size: 16px; }

.talks .row { gap: 4px 36px; padding: 22px 0; border-bottom: 0; border-top: 1px solid var(--hair); }
.talks .when { flex: 1 1 200px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 6px; }
.talks .what { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.talks.compact .row { gap: 2px 36px; padding: 14px 0; }
.talks.compact .when { letter-spacing: 0.06em; padding-top: 3px; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 36px; }
.quotes figure { display: flex; flex-direction: column; gap: 12px; }
.quotes blockquote { font-family: var(--serif); font-size: 18px; line-height: 1.5; font-style: italic; text-wrap: pretty; }
.quotes figcaption { font-size: 14px; color: var(--muted); font-weight: 600; }

.book { display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: flex-start; }
.book img { flex: none; width: 104px; border: 1px solid var(--hair); }
.book p { flex: 1 1 300px; min-width: 0; }
.book cite { font-family: var(--serif); font-style: italic; font-weight: 600; }

.essays { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 44px; }
.essays > div { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--hair); padding-top: 18px; font-size: 16px; }
.essays .item-title { font-size: 22px; }
.essays .when { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---- Long-form pages: essays and papers ---- */

/* reading width, left-aligned with the header like the other pages */
.article > * { max-width: 720px; }
.page-head .back { font-size: 15px; }
.prose::after { content: ""; display: block; clear: both; }
.prose { overflow-wrap: break-word; }   /* long URLs in old references */
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1em; }
.prose h2 { font-size: 24px; margin: 1.6em 0 0.6em; clear: none; }
.prose h3 { font-size: 20px; margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { border-left: 3px solid var(--hair); padding-left: 1em; color: var(--muted); }
.prose img { max-width: 100%; height: auto; }
.prose .center { text-align: center; }
.prose .dropcap { float: left; font-family: var(--serif); font-size: 3.1em; line-height: 0.9; color: var(--sage); margin: 6px 8px 0 0; }
/* Photo thumbnails floated in the text, linking to the large image */
/* display: table + table-caption makes the caption wrap to the photo's own width */
.prose .photo { display: table; margin: 0.3em 0 1em; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.prose .photo.left { float: left; margin-right: 24px; }
.prose .photo.right { float: right; margin-left: 24px; }
.prose .photo img { display: block; max-width: 40vw; border: 1px solid var(--hair); }
.prose .photo span { display: table-caption; caption-side: bottom; padding-top: 6px; }
.prose .photo:hover span { color: var(--orange-hover); }
/* Letters from readers and other set-apart passages */
.prose .specialtext { font-family: var(--serif); font-style: italic; }
.prose p.specialtext { border-left: 3px solid var(--sage-soft); padding-left: 1em; }
.prose .epilogue { font-style: italic; color: var(--muted); }
.article-end { border-top: 1px solid var(--hair); padding-top: 16px; font-size: 16px; }
/* Transcripts in the old papers: keep the fixed-width layout, wrap on small screens */
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; background: var(--paper); border: 1px solid var(--hair); border-radius: 6px; padding: 12px 16px; }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }
.prose address { font-style: normal; color: var(--muted); font-size: 15px; }
/* old named anchors (<a name>) aren't links */
.prose a:not([href]) { color: inherit; text-decoration: none; }

/* ---- Photos page ---- */

.galleries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 36px 44px; }
.gallery { border-top: 1px solid var(--hair); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.thumbs img { display: block; height: 110px; width: auto; max-width: 100%; object-fit: cover; border: 1px solid var(--hair); }
.thumbs a:hover img { border-color: var(--orange); }

/* ---- Footer: a hairline ending in the arrowhead ---- */

.site-footer { padding-top: 24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.site-footer .rule { display: flex; align-items: center; }
.site-footer .rule::before { content: ""; flex: 1; height: 2px; background: var(--hair); }
.site-footer .rule::after {
  content: "";
  width: 14px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 14 16'%3E%3Cpath d='M0 0l14 8-14 8z' fill='%2355663F'/%3E%3C/svg%3E") no-repeat;
}
.site-footer .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 15px; color: var(--muted); }

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  main.wrap { padding-top: 24px; gap: 44px; }
  .brand .logo img { height: 104px; }
  .brand .brand-title { font-size: 23px; }
  .main-nav { margin-left: -10px; }
  .main-nav a { padding: 10px 10px; }
  .card { padding: 22px; }
  .prose .photo.left { margin-right: 14px; }
  .prose .photo.right { margin-left: 14px; }
}
