/*
 * AI on the Clock.
 *
 * Lifted from mehmeterkek.com's stylesheet, which is where these pages grew up:
 * the same variables, the same aiotc rules, so the publication still looks like
 * itself after moving to its own domain. What did not come along is the ~750
 * rules that dress a personal site -- hero, timeline, music, contact form.
 *
 * Dark only. The light theme over there is driven by a toggle in script.js, and
 * this site does not ship script.js.
 *
 * Generated pages link this as style.css at the site root. It is copied by the
 * renderer, so edit it here, not in the published repository.
 */

:root {
  --bg: #090b10;
  --bg-alt: #0d1017;
  --surface: #12161f;
  --border: #232838;
  --text: #f2f3f7;
  --text-muted: #98a0b3;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --gold: #d8c07a;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 8%, var(--accent-soft), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(216, 192, 122, 0.08), transparent 42%);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  /* So a <button> carrying .btn looks identical to an <a> carrying it. The
     variants below re-apply their own background, border and colour. */
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #052420;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

.btn:hover .arrow { transform: translateX(3px); }

.aiotc-page .section-inner { padding-top: 130px; }

.aiotc-tagline {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 34px;
}

.aiotc-intro { max-width: 660px; }

.aiotc-intro p { color: var(--text-muted); margin-bottom: 16px; }

.aiotc-intro strong { color: var(--text); }

/* ---------- the list ---------- */

.aiotc-list {
  list-style: none;
  margin-top: 46px;
  border-top: 1px solid var(--border);
}

.aiotc-item { border-bottom: 1px solid var(--border); }

.aiotc-item a {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0 22px;
  align-items: baseline;
  padding: 26px 0 26px 0;
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
}

.aiotc-item a:hover {
  border-left-color: var(--accent);
  padding-left: 18px;
  background: var(--bg-alt);
}

.aiotc-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.aiotc-item h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.aiotc-summary {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 7px;
  max-width: 58ch;
}

.aiotc-meta {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.aiotc-cat { color: var(--gold); display: block; }

/* ---------- a single post ---------- */

.aiotc-article { max-width: 720px; }

.aiotc-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.aiotc-kicker b { color: var(--gold); font-weight: 500; }

.aiotc-article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.aiotc-standfirst {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 38px;
}

.aiotc-body > p { margin-bottom: 20px; line-height: 1.75; }

.aiotc-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}

.aiotc-body ul, .aiotc-body ol { margin: 0 0 22px 20px; }

.aiotc-body li { margin-bottom: 9px; line-height: 1.7; }

.aiotc-body a { color: var(--accent); border-bottom: 1px solid transparent; }

.aiotc-body a:hover { border-bottom-color: var(--accent); }

.aiotc-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

.aiotc-body blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin: 0 0 22px;
  color: var(--text-muted);
}

/* The carousel slides, stacked. No lightbox — they are read, not browsed. */
.aiotc-slides { margin: 34px 0 40px; display: flex; flex-direction: column; gap: 14px; }

.aiotc-slides img {
  width: 100%;
  /* The width/height attributes on the tag reserve space while the image loads.
     height:auto is what stops the browser treating that height as literal and
     squashing the picture to the wrong shape. */
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  /* A slide that has not been exported yet — or a mistyped path — shows as an
     empty frame rather than a broken-image icon. */
  background: var(--bg-alt);
  min-height: 140px;
}

.aiotc-slides figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.aiotc-download {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: -18px 0 40px;
}

.aiotc-download a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.aiotc-download a:hover { color: var(--accent); border-color: var(--accent); }

.aiotc-sources {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.aiotc-sources h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.aiotc-sources ul { list-style: none; }

.aiotc-sources li { margin-bottom: 9px; font-size: 0.95rem; }

.aiotc-sources a { color: var(--accent); }

/* CTA to the maturity scan, at the foot of every post. */
.aiotc-cta {
  margin-top: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.aiotc-cta::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.aiotc-cta h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

.aiotc-cta p { color: var(--text-muted); margin-bottom: 18px; max-width: 52ch; }

/* previous / next */
.aiotc-pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.aiotc-pager span {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.aiotc-pager a:hover { color: var(--accent); }

.aiotc-pager .next { text-align: right; margin-left: auto; }

.aiotc-backlink {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 26px;
  display: inline-block;
}

.aiotc-backlink:hover { color: var(--accent); }

.aiotc-flag {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.aiotc-hero { margin: 34px 0 0; }

.aiotc-hero img {
  width: 100%;
  height: auto;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* The download line carries two links once a post is live on LinkedIn. */
.aiotc-download a + a { margin-left: 18px; }

.aiotc-download a + a::before {
  content: '·';
  margin-right: 18px;
  color: var(--border);
  border: none;
}

/* ── AI on the Clock: shared section navigation ──────────────────────────
   Pulse is generated, Bites is hand-written. The nav is defined once here so
   the two halves cannot drift apart visually. */
.aiotc-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 0 0 2.2rem;
}

.aiotc-nav .home {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-right: .3rem;
}

.aiotc-nav .home:hover { color: var(--accent); }

.aiotc-nav a.tab {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .38rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.aiotc-nav a.tab:hover { border-color: var(--accent); color: var(--accent); }

.aiotc-nav a.tab.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.aiotc-nav .blurb { font-size: .78rem; color: var(--text-muted); }

@media (max-width: 680px) {
  .scan-cta { padding: 30px 22px; border-radius: 16px; }
  .scan-actions { width: 100%; }
  .scan-actions .btn { flex: 1 1 auto; justify-content: center; }
  .scan-page .section-inner,
  .aiotc-page .section-inner { padding-top: 110px; }
}

@media (max-width: 680px) {
  .aiotc-item a { grid-template-columns: 46px 1fr; gap: 0 14px; }
  .aiotc-meta { grid-column: 2; grid-row: auto; text-align: left; margin-top: 10px; }
  .aiotc-cat { display: inline; }
  .aiotc-cat::after { content: ' · '; }
  .aiotc-summary { grid-column: 2; }
  .aiotc-cta { padding: 22px; }
}

@media (max-width: 560px) { .aiotc-nav .blurb { display: none; } }

/* ---------- the publication's own masthead ---------- *
 * The personal site's header carried nine links about a career. On its own
 * domain this is a publication, so the masthead says what you are reading and
 * offers one way back to the person who writes it. */

.masthead {
  position: sticky; top: 0; z-index: 10;
  background: rgba(9, 11, 16, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.masthead-inner {
  max-width: 44rem; margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.masthead .wordmark {
  font-weight: 600; letter-spacing: -.01em; color: var(--text);
  text-decoration: none; font-size: 1rem; white-space: nowrap;
}
.masthead .wordmark:hover { color: var(--accent); }
.masthead .spacer { flex: 1; }
.masthead .back {
  font-size: .82rem; color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid transparent; white-space: nowrap;
}
.masthead .back:hover { color: var(--accent); border-bottom-color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border); margin-top: 4rem;
  padding: 2rem 1.25rem 3rem; color: var(--text-muted); font-size: .84rem;
}
.site-footer .footer-inner { max-width: 44rem; margin: 0 auto; }
.site-footer p { margin: 0 0 .4rem; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { border-bottom: 1px solid var(--accent); }
