/* Attify blog — Ghost theme stylesheet. Same design system as attify-store v3.
   Pixel units throughout; one accent; mono labels. */
@font-face { font-family: 'Inter'; src: url('../fonts/font-inter-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/font-geist-mono-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ink: #111111; --muted: #5f5f5c; --surface: #f3f3f1; --border: #d9d9d6; --accent: #cc3300;
  --page: #fafafa; --hair: #efefef; --dark-border: #2b2b29; --dark-text: #a3a39e;
  --card-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px -1px rgba(0,0,0,.06), 0 2px 4px 0 rgba(0,0,0,.04);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', 'SF Mono', Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--gh-font-body, var(--sans)); font-size: 16px; line-height: 1.6; letter-spacing: -0.014em; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-family: var(--gh-font-heading, var(--sans)); font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1280px) { .container { padding: 0; } }
.section { padding: 96px 0; }
.section--page { background: var(--page); border-top: 1px solid var(--hair); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head--end { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--6 { gap: 24px; }
.stack--hero { gap: 40px; }
.measure-920 { max-width: 920px; } .measure-720 { max-width: 720px; } .measure-640 { max-width: 640px; }
@media (max-width: 767px) { .section { padding: 64px 0; } .section-head { flex-direction: column; align-items: flex-start; } }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow--accent, a.eyebrow--accent { color: var(--accent); }
.eyebrow--dark { color: #b9b9b4; }
.link--dark { color: #fff; } .link--dark:hover { color: #fff; opacity: .8; }
.h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.06; }
.h1--page { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; }
.h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; }
.h2--sm { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; }
.h3 { font-size: 32px; line-height: 1.19; }
.lead { font-size: 20px; line-height: 1.6; letter-spacing: -0.01em; color: var(--muted); }
.lead--ink { color: var(--ink); font-size: 22px; line-height: 1.45; }
.body { font-size: 18px; line-height: 1.67; }
.body--muted { color: var(--muted); }
.body--dark { color: #d6d6d1; max-width: 600px; }
.small { font-size: 15px; line-height: 1.5; color: var(--muted); }
.link { font-size: 15px; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); } .btn--ink:hover { background: #2a2a28; color: #fff; }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); } .btn--accent:hover { background: #b32d00; color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); } .btn--outline:hover { background: var(--surface); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-block; padding: 5px 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #f2f2f2; border-radius: 6px; }
a.pill:hover { color: var(--ink); background: #e8e8e6; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header__logo { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.site-header__logo-suffix { color: var(--muted); font-weight: 500; }
.site-header__nav { display: none; }
.site-header__nav .nav { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.site-header__nav .nav a { font-size: 14px; font-weight: 500; color: var(--muted); }
.site-header__nav .nav a:hover, .site-header__nav .nav-current a { color: var(--ink); }
.site-header__utils { display: flex; align-items: center; gap: 16px; }
.site-header__menu { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
.site-header__mobile { display: none; border-top: 1px solid var(--border); padding: 8px 24px 16px; }
.site-header__mobile .nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-header__mobile .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 500; }
body.menu-open .site-header__mobile { display: block; }
@media (min-width: 900px) { .site-header__nav { display: block; } .site-header__menu { display: none; } body.menu-open .site-header__mobile { display: none; } }

/* Hero / page head */
.hero { padding: 112px 0 80px; }
.page-head { padding: 96px 0 48px; }
.page-head .stack + .eyebrow { padding-bottom: 8px; }
@media (max-width: 767px) { .hero { padding: 64px 0 48px; } .page-head { padding: 56px 0 32px; } }

/* Post cards */
.cards { display: flex; flex-direction: column; gap: 16px; }
.card { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 28px 32px; background: #fff; border-radius: 2px; box-shadow: var(--card-shadow); transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0 0 0 1px #5f5f5c, 0 1px 2px -1px rgba(0,0,0,.06), 0 2px 4px 0 rgba(0,0,0,.04); }
.card__main { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; max-width: 720px; min-width: 0; }
.card__index { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card__index a { color: var(--accent); }
.card__title { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.card__title a:hover { color: var(--accent); }
.card__desc { font-size: 15px; line-height: 1.53; color: var(--muted); }
.card__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 220px; text-align: right; }
.card__aside .pill { margin-bottom: 6px; }
.card__date { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.card__link { font-size: 14px; font-weight: 500; }
@media (max-width: 767px) { .card { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; } .card__aside { flex-basis: auto; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; flex-wrap: wrap; } .card__aside .pill { margin: 0; } }
.show-more { display: flex; justify-content: center; padding-top: 48px; }

/* Post — centred 760px column; the "on this page" rail floats in the left margin on wide screens */
.post__inner { max-width: 760px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { color: var(--border); }
.post__head { display: flex; flex-direction: column; gap: 24px; padding: 64px 0 48px; }
.post__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.byline { display: flex; flex-wrap: wrap; gap: 24px; }
.byline__author { display: inline-flex; align-items: center; gap: 10px; }
.byline__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.byline__avatar--blank { display: inline-block; background: var(--surface); border: 1px solid var(--border); }
.byline__name { font-size: 15px; font-weight: 500; }
.post__feature { max-width: 960px; margin: 0 auto 64px; display: flex; flex-direction: column; gap: 12px; }
.post__feature img { width: 100%; border: 1px solid var(--border); }
.post__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); align-items: start; padding-bottom: 96px; }
.post__layout--single { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
.post__body { grid-column: 2; display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.sidenav { grid-column: 1; grid-row: 1; justify-self: end; width: 220px; padding-right: 48px; position: sticky; top: 88px; display: none; flex-direction: column; }
.sidenav .eyebrow { padding-bottom: 16px; }
.sidenav a { display: block; padding: 8px 0 8px 12px; font-size: 14px; font-weight: 500; color: var(--muted); border-left: 2px solid transparent; }
.sidenav a.is-active { color: var(--ink); border-left-color: var(--accent); }
.sidenav[hidden] { display: none !important; }
@media (min-width: 1280px) { .sidenav { display: flex; } }
@media (max-width: 767px) { .post__head { padding: 40px 0 32px; } }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; border-top: 1px solid var(--border); }
.author-cards { display: flex; flex-direction: column; gap: 16px; }
.author-card { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--border); }
.author-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; }
.author-card__name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }

/* Ghost content */
.gh-content { font-size: 18px; line-height: 1.67; }
.gh-content > * + * { margin-top: 24px; }
.gh-content h2 { font-size: 32px; line-height: 1.19; margin-top: 64px; scroll-margin-top: 96px; }
.gh-content h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; margin-top: 48px; }
.gh-content h4 { font-size: 18px; margin-top: 32px; }
.gh-content a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.gh-content a:hover { text-decoration-color: var(--accent); }
.gh-content ul, .gh-content ol { padding-left: 24px; }
.gh-content li + li { margin-top: 8px; }
.gh-content blockquote { margin: 40px 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent); font-size: 20px; line-height: 1.5; color: var(--ink); }
.gh-content hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
.gh-content code { font-family: var(--mono); font-size: 0.9em; padding: 2px 6px; background: var(--surface); border: 1px solid var(--border); }
.gh-content pre { margin: 32px 0; padding: 24px; background: var(--ink); color: #f3f3f1; font-family: var(--mono); font-size: 14px; line-height: 1.6; overflow-x: auto; border: 1px solid var(--dark-border); }
.gh-content pre code { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
.gh-content figure { margin: 40px 0; }
.gh-content figure img { width: 100%; border: 1px solid var(--border); }
.gh-content figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gh-content th, .gh-content td { padding: 12px 0; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.gh-content th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.gh-content .kg-width-wide { margin-left: 0; margin-right: 0; }
.gh-content .kg-width-full { margin-left: 0; margin-right: 0; }
.gh-content .kg-callout-card { display: flex; gap: 12px; padding: 20px 24px; background: var(--surface); border-left: 2px solid var(--accent); border-radius: 0; }
.gh-content .kg-bookmark-container { border: 1px solid var(--border); border-radius: 0; }
.gh-content .kg-button-card .kg-btn { background: var(--ink); color: #fff; border-radius: 0; font-family: var(--sans); font-weight: 500; }
.gh-content .kg-embed-card iframe { max-width: 100%; }
.gh-content .kg-gallery-image img { border: 0; }

/* Bands */
.band-ink { background: var(--ink); color: #fff; border-top: 1px solid var(--dark-border); border-bottom: 1px solid var(--dark-border); }
.band { display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.band__main { display: flex; flex-direction: column; gap: 24px; padding: 80px 80px 80px 0; border-right: 1px solid var(--dark-border); }
.band__main .h2 { color: #fff; }
.band__aside { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 80px 0 80px 64px; }
.band__aside--list { gap: 16px; justify-content: flex-start; padding-top: 88px; }
.band__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.band__list li { padding: 12px 0; border-bottom: 1px solid var(--dark-border); font-size: 15px; font-weight: 500; color: #fff; }
.band__list li:first-child { border-top: 1px solid var(--dark-border); }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } .band__main { padding: 56px 0 40px; border-right: 0; border-bottom: 1px solid var(--dark-border); } .band__aside { padding: 40px 0 56px; } }

/* Newsletter */
.newsletter { border-top: 1px solid var(--border); padding: 80px 0; }
.newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 80px; align-items: center; }
.newsletter__form { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.newsletter__input { flex: 1 1 240px; padding: 15px 16px; font: inherit; font-size: 15px; border: 1px solid var(--ink); border-radius: 0; background: #fff; }
.newsletter__msg { display: none; width: 100%; font-size: 14px; color: var(--muted); }
.newsletter__form.success [data-members-success], .newsletter__form.error [data-members-error] { display: block; }
@media (max-width: 900px) { .newsletter__inner { grid-template-columns: 1fr; gap: 32px; } }

/* Footer */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--border); }
.site-footer__grid { display: grid; grid-template-columns: 360px repeat(3, minmax(120px, auto)); justify-content: space-between; gap: 48px; margin-bottom: 64px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__logo { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.site-footer__tagline { font-size: 14px; line-height: 1.6; color: var(--muted); }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 14px; }
.site-footer__col .nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* Ghost required card classes */
.gh-content .kg-width-wide { width: 960px; max-width: calc(100vw - 48px); margin-left: calc(50% - 480px); }
.gh-content .kg-width-full { width: 1200px; max-width: calc(100vw - 48px); margin-left: calc(50% - 600px); }
@media (max-width: 1240px) { .gh-content .kg-width-wide, .gh-content .kg-width-full { width: 100%; max-width: 100%; margin-left: 0; } }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.gh-content .kg-gallery-row { display: flex; gap: 8px; }
.gh-content .kg-gallery-image { flex: 1 1 0; }
.gh-content .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.gh-content .kg-bookmark-card { margin: 32px 0; }
.gh-content .kg-bookmark-container { display: flex; text-decoration: none; color: inherit; border: 1px solid var(--border); background: #fff; }
.gh-content .kg-bookmark-content { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px 24px; gap: 8px; min-width: 0; }
.gh-content .kg-bookmark-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.gh-content .kg-bookmark-description { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-content .kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.gh-content .kg-bookmark-icon { width: 16px; height: 16px; border: 0; }
.gh-content .kg-bookmark-author { color: var(--ink); }
.gh-content .kg-bookmark-publisher { color: var(--muted); }
.gh-content .kg-bookmark-thumbnail { flex: 0 0 240px; min-height: 100%; }
.gh-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border: 0; border-left: 1px solid var(--border); }
@media (max-width: 600px) { .gh-content .kg-bookmark-container { flex-direction: column-reverse; } .gh-content .kg-bookmark-thumbnail { flex-basis: auto; height: 160px; } .gh-content .kg-bookmark-thumbnail img { border-left: 0; border-bottom: 1px solid var(--border); } }
