/* Make Room theme. Andy Ellwood. */

:root {
  --orange: #FC5935;
  --orange-dark: #E04420;
  --black: #1F1F1F;
  --paper: #F5F4F0;
  --paper-warm: #EDEAE2;
  --paper-dark: #E4DFD2;
  --green: #00C552;
  --blue: #2979FF;
  --purple: #9B30FF;
  --pink: #FF4DA6;
  --muted: #6B6B6B;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--black);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.accent, .handwritten {
  font-family: 'Caveat', cursive;
  color: var(--orange);
  font-weight: 600;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.center { text-align: center; }

/* Buttons */
.btn-primary, .btn-subscribe {
  display: inline-block;
  background: var(--orange);
  color: white !important;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}
.btn-primary:hover, .btn-subscribe:hover { background: var(--orange-dark); }
.btn-dark {
  background: var(--black);
  color: white !important;
}
.btn-dark:hover { background: var(--orange); color: white !important; }

/* NAV */
nav.site-nav {
  position: sticky;
  top: 0;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(31, 31, 31, 0.06);
}
nav.site-nav .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
nav.site-nav .logo {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--black);
  font-weight: 500;
}
nav.site-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
nav.site-nav ul a {
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 500;
}
nav.site-nav ul a:hover { color: var(--orange); }
.btn-subscribe-sm {
  background: var(--orange);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
}
.btn-subscribe-sm:hover { background: var(--orange-dark); }

/* HERO */
.hero {
  padding: 6rem 0 5rem;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.hero .eyebrow {
  font-family: 'Caveat', cursive;
  color: var(--orange);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(3.5rem, 7vw, 5.8rem);
  margin-bottom: 1.5rem;
}
.hero .lede {
  font-size: 1.25rem;
  color: var(--black);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.5;
}

/* Signup form */
.signup-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin-bottom: 0.75rem;
}
.signup-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--paper-dark);
  border-radius: 999px;
  font-size: 1rem;
  background: white;
  font-family: inherit;
}
.signup-form input:focus { outline: none; border-color: var(--orange); }
.signup-form button {
  background: var(--orange);
  color: white;
  border: none;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}
.signup-form button:hover { background: var(--orange-dark); }
.trust { font-size: 0.9rem; color: var(--muted); }

/* PLAYLIST */
.playlist {
  background: var(--paper-warm);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--paper-dark);
  display: flex;
  flex-direction: column;
  max-height: 580px;
}
.playlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--paper-dark);
}
.playlist-label {
  font-family: 'Caveat', cursive;
  color: var(--orange);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.view-all-small { font-size: 0.85rem; color: var(--orange); font-weight: 500; }
.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.pl-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  color: var(--black);
  align-items: center;
}
.pl-item:hover { background: white; color: var(--black); }
.pl-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: var(--black);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 500;
  background-size: cover;
  background-position: center;
}
.pl-thumb.orange { background: var(--orange); }
.pl-thumb.green { background: var(--green); color: var(--black); }
.pl-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.pl-show {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.pl-title {
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--black);
}
.pl-meta { font-size: 0.78rem; color: var(--muted); }

/* NOW BAR */
.now-bar {
  padding: 2.25rem 0;
  border-top: 1px solid var(--paper-dark);
  border-bottom: 1px solid var(--paper-dark);
  background: var(--paper);
}
.now-bar .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.now-bar .now-label {
  font-family: 'Caveat', cursive;
  color: var(--orange);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.now-dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.now-bar .now-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  flex: 1;
}
.now-bar .now-item .now-num {
  font-family: Georgia, serif;
  font-size: 1.85rem;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.now-bar .now-item .now-tag { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* THESIS */
.thesis {
  background: var(--paper-warm);
  padding: 7rem 0;
}
.thesis .container { max-width: 880px; text-align: center; }
.thesis .label {
  font-family: 'Caveat', cursive;
  color: var(--orange);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.thesis h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.25;
  font-style: italic;
}
.thesis .attribution {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.thesis p {
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.thesis .signature {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: var(--orange);
  margin-top: 2rem;
}

/* WRITING / SECTION HEAD */
.writing { padding: 7rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-head .left h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 0.5rem;
}
.section-head .left p { color: var(--muted); font-size: 1.05rem; }
.section-head .view-all { font-size: 0.95rem; font-weight: 500; color: var(--orange); }

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.post-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--paper-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--black);
  display: block;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(31, 31, 31, 0.08);
  color: var(--black);
}
.post-card .image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--paper-warm) 0%, var(--paper-dark) 100%);
  background-size: cover;
  background-position: center;
}
.post-card .body { padding: 1.5rem; }
.post-card .date { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.post-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.post-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

/* BUILDING */
.building { background: var(--paper-warm); padding: 7rem 0; }
.building .container { max-width: 1000px; }
.building h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 0.5rem;
}
.building .lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 3rem; }
.stretch-card {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid var(--paper-dark);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}
.stretch-card .visual {
  aspect-ratio: 1;
  background: var(--orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  font-weight: 500;
}
.stretch-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.stretch-card p {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.stretch-card .meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.stretch-card .stat { border-left: 2px solid var(--orange); padding-left: 1rem; }
.stretch-card .stat .num {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--black);
  display: block;
}
.stretch-card .stat .label { font-size: 0.85rem; color: var(--muted); }

/* SUBSCRIBE BIG */
.subscribe-big {
  background: var(--black);
  color: white;
  padding: 7rem 0;
  text-align: center;
}
.subscribe-big .container { max-width: 720px; }
.subscribe-big .accent { color: var(--orange); }
.subscribe-big h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.subscribe-big p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.subscribe-big .signup-form { margin: 0 auto 1rem; }
.subscribe-big .signup-form input {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}
.subscribe-big .signup-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.subscribe-big .signup-form input:focus { border-color: var(--orange); }
.subscribe-big .trust { color: rgba(255, 255, 255, 0.5); }

/* FOOTER */
footer.site-footer {
  padding: 3rem 0;
  background: var(--paper);
  border-top: 1px solid var(--paper-dark);
}
footer.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
footer.site-footer .copy { color: var(--muted); font-size: 0.9rem; }
footer.site-footer .social { display: flex; gap: 1.5rem; }
footer.site-footer .social a { color: var(--black); font-size: 0.9rem; font-weight: 500; }
footer.site-footer .social a:hover { color: var(--orange); }

/* POST PAGE */
.post-full {
  padding: 5rem 0 4rem;
  max-width: 760px;
  margin: 0 auto;
}
.post-full .post-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.post-full h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.post-full .excerpt {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.5;
  font-style: italic;
}
.post-full .feature-image {
  margin: 0 -2rem 3rem;
  border-radius: 8px;
  overflow: hidden;
}
.post-content {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--black);
}
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1rem;
  line-height: 1.2;
}
.post-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}
.post-content a { color: var(--orange); text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--black);
}
.post-content img {
  border-radius: 8px;
  margin: 2rem 0;
}
.post-content ul, .post-content ol {
  margin: 0 0 1.5rem 1.5rem;
}
.post-content li { margin-bottom: 0.5rem; }
.post-content code {
  background: var(--paper-warm);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: 'Geist Mono', Menlo, monospace;
}
.post-content pre {
  background: var(--black);
  color: var(--paper);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; }

/* Ghost Koenig editor classes */
.kg-image { max-width: 100%; height: auto; margin: 2rem auto; display: block; border-radius: 8px; }
.kg-width-wide {
  position: relative;
  width: 92vw;
  max-width: 1100px;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
}
.kg-width-full {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
}
.kg-image-card { margin: 2rem 0; }
.kg-image-card figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}
.kg-embed-card { margin: 2rem 0; }
.kg-embed-card iframe { max-width: 100%; border-radius: 8px; }
.kg-gallery-card { margin: 2rem 0; }
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kg-gallery-row { display: flex; gap: 0.75rem; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.kg-bookmark-card {
  display: flex;
  border: 1px solid var(--paper-dark);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  text-decoration: none;
  color: var(--black);
  margin: 2rem 0;
  transition: border-color 0.2s ease;
}
.kg-bookmark-card:hover { border-color: var(--orange); }
.kg-bookmark-container {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: var(--black);
}
.kg-bookmark-content { padding: 1.25rem; flex: 1; min-width: 0; }
.kg-bookmark-title {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--black);
  font-weight: 500;
}
.kg-bookmark-description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.kg-bookmark-metadata {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.kg-bookmark-thumbnail { flex-shrink: 0; max-width: 180px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-callout-card {
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  background: var(--paper-warm);
  border-left: 4px solid var(--orange);
}
.kg-callout-emoji { margin-right: 0.75rem; }
.kg-toggle-card {
  border: 1px solid var(--paper-dark);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.kg-toggle-heading { font-family: Georgia, serif; font-size: 1.2rem; margin-bottom: 0.5rem; }
.kg-button-card { text-align: center; margin: 2rem 0; }
.kg-button-card a {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
}
.kg-button-card a:hover { background: var(--orange-dark); }
.kg-product-card { margin: 2rem 0; }
.kg-header-card { padding: 4rem 2rem; text-align: center; margin: 2rem 0; }
.kg-audio-card, .kg-video-card { margin: 2rem 0; border-radius: 8px; overflow: hidden; }
.kg-file-card {
  border: 1px solid var(--paper-dark);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 2rem 0;
}

/* POST FOOTER (subscribe within posts) */
.post-cta {
  background: var(--paper-warm);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin: 4rem 0 2rem;
}
.post-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.post-cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.post-cta .signup-form { margin: 0 auto; }

/* TAG / AUTHOR / ARCHIVE */
.archive-head {
  padding: 5rem 0 3rem;
  text-align: center;
}
.archive-head .label {
  font-family: 'Caveat', cursive;
  color: var(--orange);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.archive-head h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.archive-head p { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.archive { padding: 0 0 6rem; }
.pagination {
  margin: 3rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}
.pagination a {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--paper-dark);
  border-radius: 999px;
  margin: 0 0.5rem;
  color: var(--black);
  background: white;
  transition: border-color 0.2s ease;
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }

/* PAGE (static pages like /about) */
.page-content {
  padding: 5rem 0;
  max-width: 760px;
  margin: 0 auto;
}
.page-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  line-height: 1.15;
}
.page-content .page-body {
  font-size: 1.15rem;
  line-height: 1.75;
}
.page-content .page-body p { margin-bottom: 1.5rem; }

/* RESPONSIVE */
@media (max-width: 880px) {
  nav.site-nav ul { display: none; }
  nav.site-nav ul.show-mobile { display: flex; gap: 1rem; }
  nav.site-nav ul.show-mobile li:not(:last-child) { display: none; }
  .hero { padding: 4rem 0 3rem; }
  .hero .grid { grid-template-columns: 1fr; gap: 3rem; }
  .signup-form { flex-direction: column; }
  .signup-form button { width: 100%; }
  .playlist { max-width: 480px; margin: 0 auto; max-height: none; width: 100%; }
  .now-bar .container { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .now-bar .now-items { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .thesis { padding: 5rem 0; }
  .writing { padding: 5rem 0; }
  .building { padding: 5rem 0; }
  .stretch-card { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
  .posts { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .post-full .feature-image { margin: 0 0 2rem; }
}
