/* Allocify ocean-glass Ghost theme.
   Palette + fonts mirror the Allocify design system (app tokens.css):
   Deep Ocean, Tidal, Ivory Sand, Golden Dune, Sky Mist, Midnight, Blue Ash;
   Fraunces (display), Switzer (UI/body), IBM Plex Mono (numbers/code). */

:root {
  --deep-ocean: #154c56;
  --tidal: #1b6d7f;
  --ivory: #fff4e5;
  --dune: #d9b382;
  --sky-mist: #9cb7c7;
  --midnight: #1f2d33;
  --blue-ash: #5a7381;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --text: var(--ivory);
  --muted: var(--sky-mist);
  --line: rgba(255, 255, 255, 0.14);
  --measure: 720px;
  --wrap: 1080px;
}

* {
  box-sizing: border-box;
}
html {
  font-size: 18px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--ui);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 700px at 12% -5%, rgba(217, 179, 130, 0.16), transparent 55%),
    radial-gradient(900px 700px at 92% 4%, rgba(156, 183, 199, 0.14), transparent 55%),
    linear-gradient(168deg, #12333b 0%, var(--deep-ocean) 45%, #123039 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
a {
  color: var(--dune);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
code, pre, .mono {
  font-family: var(--mono);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tidal);
  margin: 0 0 12px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--dune);
  color: #4a361c;
  box-shadow: 0 8px 22px rgba(217, 179, 130, 0.28);
}

/* wordmark */
.site-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ivory);
  letter-spacing: -0.02em;
}
.site-logo b {
  color: var(--dune);
  font-weight: 700;
}
.site-logo.sm {
  font-size: 1.25rem;
}
.rmark {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--muted);
  margin-left: 1px;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(18, 51, 59, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-menu {
  margin-left: auto;
}
.nav {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.nav-item a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.nav-item a:hover {
  color: var(--ivory);
  text-decoration: none;
}
.nav-current a {
  color: var(--ivory);
}

/* home intro */
.site-intro {
  text-align: center;
  padding: 64px 0 12px;
  max-width: var(--measure);
  margin: 0 auto;
}
.site-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0;
}
.site-desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 16px auto 0;
}

/* post feed */
.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 40px 0 8px;
}
.post-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}
.post-card-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.post-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.post-card-tag,
.post-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tidal);
}
.post-card-title {
  font-size: 1.3rem;
  margin: 2px 0 0;
}
.post-card-title a {
  color: var(--ivory);
}
.post-card-title a:hover {
  color: var(--dune);
  text-decoration: none;
}
.post-card-excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
.post-card-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--blue-ash);
}

/* archive headers */
.archive-head {
  text-align: center;
  padding: 64px 0 8px;
}
.archive-head h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0;
}
.archive-desc {
  color: var(--muted);
  max-width: var(--measure);
  margin: 14px auto 0;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
}
.author-avatar.lg {
  width: 92px;
  height: 92px;
}

/* single post */
.post-head {
  max-width: var(--measure);
  text-align: center;
  padding: 64px 0 0;
}
.post-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 12px 0 0;
}
.post-excerpt {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 16px 0 0;
}
.post-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue-ash);
}
.post-meta .post-author {
  color: var(--dune);
}
.post-image {
  max-width: var(--wrap);
  margin: 40px auto 0;
  padding: 0 24px;
}
.post-image img {
  border-radius: 18px;
  width: 100%;
}
.post-image figcaption {
  text-align: center;
  color: var(--blue-ash);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* long-form content (Koenig card CSS is injected by Ghost via card_assets) */
.gh-content {
  max-width: var(--measure);
  margin: 40px auto 0;
  font-size: 1.06rem;
}
.gh-content > * {
  margin: 0 0 1.5rem;
}
.gh-content h2 {
  font-size: 1.7rem;
  margin: 2.4rem 0 1rem;
}
.gh-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}
.gh-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gh-content blockquote {
  border-left: 3px solid var(--dune);
  margin: 0 0 1.5rem;
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-style: italic;
}
.gh-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}
.gh-content pre {
  background: #0f2a30;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
}
.gh-content pre code {
  background: none;
  padding: 0;
}
.gh-content img {
  border-radius: 12px;
}
.gh-content hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* post footer / author box */
.post-foot {
  max-width: var(--measure);
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
}
.author-box .author-avatar {
  margin: 0;
  width: 56px;
  height: 56px;
}
.author-name {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ivory);
  font-size: 1.1rem;
}
.author-bio {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 0;
}

/* pagination (Ghost default partial) */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 48px 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.pagination a {
  color: var(--dune);
}

/* error */
.error-page {
  text-align: center;
  padding: 120px 24px;
  max-width: var(--measure);
}
.error-code {
  font-family: var(--display);
  font-size: 4.5rem;
  color: var(--dune);
  margin: 0;
  line-height: 1;
}
.error-title {
  font-size: 1.8rem;
  margin: 8px 0 12px;
}
.error-desc {
  color: var(--muted);
  margin: 0 0 26px;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 40px 0;
}
.footer-in {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.tagline {
  font-family: var(--display);
  font-style: italic;
  color: var(--dune);
  margin: 0;
}
.copyright {
  color: var(--blue-ash);
  font-size: 0.78rem;
  margin: 0;
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }
  .site-menu {
    display: none;
  }
  .post-feed {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none !important;
  }
}

/* Koenig wide/full width cards (gscan-required; card_assets supplies the rest) */
.gh-content .kg-width-wide {
  width: 85vw;
  max-width: 1080px;
  margin-left: 50%;
  transform: translateX(-50%);
}
.gh-content .kg-width-full {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.gh-content .kg-width-full img {
  border-radius: 0;
}
