/* kill all borders from ghost */
body { margin: 0; padding: 0; }

/* ============================================
   SLOW FOCUS — Ghost Theme
   Edit CSS variables below to retheme easily
   ============================================ */

@font-face {
  font-family: 'Bootzy';
  src: url('../fonts/Bootzy_New_TM.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Louize';
  src: url('../fonts/LouizeTrial-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Louize';
  src: url('../fonts/LouizeTrial-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Louize';
  src: url('../fonts/LouizeTrial-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Louize';
  src: url('../fonts/LouizeTrial-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- TOKENS --- */
:root {
  --bg: #FBFCF7;
  --ink: #414141;
  --muted: #999990;
  --rule: rgba(65,65,65,0.12);

  --font-display: 'Bootzy', serif;
  --font-body: 'Louize', Georgia, serif;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 17px;
  --text-lg: 22px;
  --text-xl: 36px;

  --max: 1100px;
  --gutter: 48px;

  --logo-h: 44px;
}

/* --- BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--text-base); -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.5; }
img { display: block; max-width: 100%; }

.sf-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- HEADER --- */
.sf-header {
  padding: 28px 0;
  border: none;
}

.sf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sf-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: block;
  white-space: nowrap;
}

.sf-nav {
  display: flex;
  gap: 36px;
  list-style: none;
}

.sf-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: lowercase;
}

/* --- HERO --- */
.sf-hero {
  padding: 96px 0 64px;
}

.sf-hero-description {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.5;
  max-width: 560px;
  color: var(--ink);
}

/* --- SUBSCRIBE --- */
.sf-subscribe {
  padding: 40px 0;
}

.sf-subscribe-form {
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.sf-subscribe-label {
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
}

.sf-subscribe-input {
  flex: 1;
  max-width: 360px;
  background: transparent;
  border: none;
  border-bottom: none;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  outline: none;
}

.sf-subscribe-input::placeholder { color: var(--muted); }
.sf-subscribe-input:focus { border-bottom-color: var(--ink); }

.sf-subscribe-btn {
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 1.3rem;
  color: #FF3E53;
  cursor: pointer;
  transition: opacity 0.15s;
  line-height: 1;
}

.sf-subscribe-btn:hover { opacity: 0.45; }

/* --- FEED --- */
.sf-feed { padding: 64px 0; }

.sf-post-list { list-style: none; }

.sf-post-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: none;
  transition: opacity 0.15s;
}

.sf-post-item:first-child { border-top: none; }
.sf-post-item:hover { opacity: 0.55; }

.sf-post-date {
  font-size: var(--text-xs);
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.03em;
}

.sf-post-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}

.sf-post-tag {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- ARTICLE --- */
.sf-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px var(--gutter);
}

.sf-article-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: none;
}

.sf-article-tag {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.sf-article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  font-weight: normal;
  margin-bottom: 28px;
}

.sf-article-meta {
  font-size: var(--text-sm);
  color: var(--muted);
  display: flex;
  gap: 24px;
}

.sf-article-content { font-size: var(--text-base); line-height: 1.75; }
.sf-article-content p { margin-bottom: 1.5em; }
.sf-article-content h2 { font-family: var(--font-display); font-size: 2rem; font-weight: normal; line-height: 1.1; margin: 2.5em 0 0.75em; }
.sf-article-content h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 500; margin: 2em 0 0.5em; }
.sf-article-content blockquote { border-left: 1px solid var(--ink); padding-left: 24px; margin: 2em 0; font-style: italic; color: var(--muted); }
.sf-article-content a { border-bottom: none; }
.sf-article-content a:hover { opacity: 1; border-bottom-color: var(--ink); }
.sf-article-content img { width: 100%; margin: 48px 0; }
.sf-article-content hr { border: none; border-top: 1px solid var(--rule); margin: 48px 0; }

/* --- PAGE --- */
.sf-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px var(--gutter);
}

.sf-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: normal;
  line-height: 1.08;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: none;
}

.sf-page-content { font-size: var(--text-base); line-height: 1.75; }
.sf-page-content p { margin-bottom: 1.5em; }

/* --- FOOTER --- */
.sf-footer {
  padding: 48px 0;
  margin-top: 80px;
  border: none;
}

.sf-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sf-footer-logo {
  height: 30px;
  width: auto;
  opacity: 0.35;
}

.sf-footer-copy {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* --- PAGINATION --- */
.sf-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}

.sf-pagination a { font-size: var(--text-sm); border-bottom: none; padding-bottom: 2px; }
.sf-pagination a:hover { opacity: 1; border-bottom-color: var(--ink); }
.sf-pagination-count { font-size: var(--text-xs); color: var(--muted); }

/* --- 404 --- */
.sf-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 24px;
}

.sf-error-code {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: normal;
  line-height: 1;
  color: var(--rule);
}

.sf-error-message { font-size: var(--text-sm); color: var(--muted); letter-spacing: 0.06em; }

/* --- GHOST REQUIRED --- */
.kg-width-wide { margin-left: calc(50% - 45vw); margin-right: calc(50% - 45vw); max-width: 90vw; }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.kg-image { width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 4px; margin: 48px 0; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card { border: 1px solid var(--rule); padding: 24px; margin: 24px 0; }
.kg-bookmark-title { font-weight: 500; margin-bottom: 8px; }
.kg-bookmark-description { font-size: var(--text-sm); color: var(--muted); }
.kg-callout-card { border-left: 2px solid var(--ink); padding: 24px; margin: 24px 0; }
.kg-button-card { margin: 24px 0; }
.kg-button-card a { border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-size: var(--text-sm); }
.kg-video-card { margin: 48px 0; }
.kg-audio-card { border: 1px solid var(--rule); padding: 24px; margin: 24px 0; }
.kg-header-card { padding: 80px 0; text-align: center; }
.kg-header-card-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); font-weight: normal; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root { --gutter: 24px; --logo-h: 26px; }
  .sf-hero { padding: 64px 0 40px; }
  .sf-hero-description { font-size: var(--text-base); }
  .sf-subscribe-form { flex-wrap: wrap; gap: 16px; }
  .sf-subscribe-input { max-width: 100%; }
  .sf-post-item { grid-template-columns: 1fr; gap: 6px; }
  .sf-post-tag { display: none; }
  .sf-footer-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
}
