/* Divyendra.com — Newsreader (headings) + Inter (body), clean white theme
   Media: https://media.divyendra.com
*/

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e8e8e8;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --max-width: 680px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --radius: 10px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --selection-bg: rgba(37, 99, 235, 0.15);
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--selection-bg);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(to bottom, var(--bg-subtle) 0%, var(--bg) 12rem);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Header */
.site-header {
  padding: 20px 0 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.site-title a:hover {
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  border-bottom-color: var(--border);
}

/* About dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.nav-dropdown-trigger-wrap a {
  text-decoration: none;
  color: inherit;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  font-size: 10px;
  opacity: 0.8;
  cursor: pointer;
  color: inherit;
}

.nav-dropdown-toggle:hover {
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 160px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 300;
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: #f5f5f5;
  color: var(--text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-dropdown-menu {
    position: static;
    margin-top: 4px;
    margin-left: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }
}

/* Hero / Intro — text beside image, vertically aligned */
.hero {
  padding: 24px 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  justify-items: center;
}

@media (min-width: 560px) {
  .hero {
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
    justify-items: start;
  }
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-subtle);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--bg);
  transition: box-shadow 0.25s ease;
}

.hero-photo:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (min-width: 560px) {
  .hero-photo {
    width: 200px;
    height: 200px;
  }
}

.hero-intro p {
  margin: 0 0 0.65em;
  color: var(--text);
  font-weight: 300;
  font-size: 1rem;
}

.hero-intro p:first-child {
  font-size: 1.1rem;
  font-weight: 400;
}

.hero-intro p:last-child {
  margin-bottom: 0;
}

/* Section headings — centered, with 3-dot divider */
.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: var(--text);
  text-align: center;
}

.section-title::before {
  content: "•••";
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.35em;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.85;
}

.section {
  padding: 20px 0;
}

.section:last-of-type {
  padding-bottom: 0;
}

/* Why block */
.why-block {
  padding: 16px 0;
  border-radius: var(--radius);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.why-block:hover {
  background: rgba(0, 0, 0, 0.02);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.why-block p {
  margin: 0 0 0.65em;
  color: var(--text);
  font-weight: 300;
  font-size: 1rem;
}

.why-block p:last-child {
  margin-bottom: 0;
}

/* Image + caption — dot divider above */
.figure-block {
  margin: 20px 0;
}

.figure-block::before {
  content: "•••";
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.35em;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.8;
  text-align: center;
}

.quote-block::before {
  content: "•••";
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.35em;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.8;
  text-align: center;
}

.figure-block img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}

.figure-block img:hover {
  box-shadow: var(--shadow-md);
}

.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
}

/* Quote — centered, accent border */
.quote-block {
  margin: 20px 0;
  padding: 20px 20px 20px 24px;
  text-align: center;
  background: linear-gradient(to bottom, #fafafa 0%, transparent 100%);
  border-radius: 6px;
  border-left: 3px solid var(--link);
  border-left-color: rgba(37, 99, 235, 0.4);
}

.quote-block p {
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  font-weight: 100;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* Education — same visual weight as hero image */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 0;
}

.education-item {
  text-align: center;
}

.education-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #f5f5f5;
  padding: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.education-item .label {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  display: block;
}

/* Milestones list — smaller font, well spaced */
.milestones-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.milestones-list li {
  padding: 5px 10px 6px;
  margin: 0 -10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 300;
  color: var(--text);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.milestones-list li:hover {
  background: rgba(0, 0, 0, 0.04);
}

.milestones-list li:last-child {
  border-bottom: none;
}

.milestones-list .meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 300;
}

/* Statement section — 3 dots above (no section title) */
.statement-section::before {
  content: "•••";
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.35em;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.8;
  text-align: center;
}

/* Personal quote — styled like a quote block, not plain italic */
.statement-quote {
  margin: 0;
  padding: 28px 24px;
  text-align: center;
  font-style: normal;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  background: linear-gradient(to bottom, #f5f5f5 0%, #fafafa 50%, transparent 100%);
  border-radius: var(--radius);
  border-left: 4px solid var(--link);
  border-right: none;
  border-top: none;
  border-bottom: none;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.statement-quote:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  background: linear-gradient(to bottom, #f2f2f2 0%, #f8f8f8 50%, transparent 100%);
}

.statement-quote::before {
  content: "“";
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: -0.25em;
}

/* Organizations — same visual treatment as hero / education */
.orgs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

/* Same size and treatment as academia (education) images */
.orgs-grid img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  padding: 12px;
  border-radius: 50%;
  background: var(--bg-subtle);
  box-shadow: var(--shadow-sm);
  opacity: 0.95;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.orgs-grid img:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

/* Socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-evenly;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.socials a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.socials a.linkedin {
  background: #0a66c2;
  color: #fff;
}

/* Technologies — section centered, list block centered */
#tech .section-title {
  text-align: center;
}

#tech .tech-list {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.tech-row {
  padding: 6px 10px;
  margin: 0 -10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.tech-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

.tech-row:last-child {
  border-bottom: none;
}

.tech-cat {
  font-weight: 500;
  color: var(--text-muted);
  min-width: 4.5em;
}

.tech-items {
  color: var(--text);
}

/* Contact CTA */
.contact-cta {
  text-align: center;
  padding-top: 8px;
}

.contact-cta-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
}

.contact-cta-text a {
  color: var(--link);
  text-decoration: none;
}

.contact-cta-text a:hover {
  text-decoration: underline;
}

/* Write-ups list — card-like blocks */
.write-up-item {
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease, transform 0.2s ease;
}

.write-up-item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
  border-left: 3px solid var(--link);
  padding-left: 20px; /* compensate for 2px extra left border */
  transform: translateY(-1px);
}

.write-up-item:first-child {
  margin-top: 0;
}

.write-up-item:last-child {
  margin-bottom: 0;
}

.write-up-item h3 {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.write-up-item h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.write-up-item h3 a:hover {
  color: var(--link);
}

.write-up-item .excerpt {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

.write-up-item .meta {
  font-size: 13px;
  color: var(--text-muted);
}

.write-up-item .meta a {
  color: var(--link);
  text-decoration: none;
  font-weight: 400;
}

.write-up-item .meta a:hover {
  text-decoration: underline;
}

/* Projects */
.page-projects .projects-main {
  padding-bottom: 8px;
}

.projects-hero {
  text-align: center;
  margin-bottom: 36px;
}

.page-projects .projects-main .page-title {
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text);
}

.page-projects .projects-main .page-subtitle {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
  line-height: 1.55;
  font-size: 15px;
}

.projects-hero-accent {
  width: 56px;
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--link) 65%, transparent),
    var(--link),
    color-mix(in srgb, var(--link) 65%, transparent),
    transparent
  );
}

.project-card {
  position: relative;
  padding: 26px 22px 28px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg-subtle) 48%, var(--bg) 100%);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s ease, box-shadow 0.25s ease, transform 0.22s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--link) 55%, transparent),
    color-mix(in srgb, var(--link) 15%, transparent)
  );
  opacity: 0;
  transition: opacity 0.22s ease;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--link) 22%, var(--border));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card--mentions {
  background: var(--bg-subtle);
  box-shadow: none;
}

.project-card--mentions:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.project-card--mentions::before {
  display: none;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.project-card h3 a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.project-card h3 a:hover {
  color: var(--link);
  text-decoration: none;
}

.project-card h3 a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

.project-shot-frame {
  display: block;
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 85%, var(--link));
  line-height: 0;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

/* Intrinsic width from large screenshots must not expand the column (same idea as .post-content img). */
.project-shot {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.project-card .what {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--link);
  margin-bottom: 6px;
}

.project-card .why {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.62;
}

.project-card .stats {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-subtle) 88%, var(--link));
  border: 1px solid var(--border);
}

.project-card .note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
  margin-top: 12px;
}

.project-card .project-card-extra {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.project-card a.button {
  display: inline-block;
  color: var(--link);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}

.project-card a.button:hover {
  text-decoration: underline;
}

/* Other mentions list */
.project-card--mentions h3 {
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

.mentions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}

.mentions-list li {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.mentions-list li:last-child {
  border-bottom: none;
}

.mentions-list li:hover {
  background: var(--bg-subtle);
}

.mentions-list a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.mentions-list a:hover {
  text-decoration: underline;
}

/* Domain check tool */
.check-form-wrap {
  margin: 24px 0 32px;
}

.check-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.check-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.check-input:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 2px var(--selection-bg);
}

.check-btn {
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.check-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.check-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.check-loading {
  margin-top: 24px;
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.check-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: check-spin 0.7s linear infinite;
}

@keyframes check-spin {
  to { transform: rotate(360deg); }
}

.check-loading-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.check-card-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.check-spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.check-result, .check-error {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.check-error {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.3);
}

.check-options {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.check-option-row label {
  cursor: pointer;
}

.check-option-row code {
  font-size: 12px;
}

.check-option-label {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 90px;
}

.check-option-cb {
  margin-right: 0;
}

.check-option-dkim-row {
  align-items: center;
}

.check-option-dkim-row .check-input-sm {
  max-width: 160px;
}

.check-input-sm {
  min-width: 100px;
  width: 140px;
  padding: 6px 10px;
  font-size: 13px;
}

.check-share.link-style {
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
}

.check-share.link-style:hover {
  color: var(--link-hover, var(--link));
}

.check-recent {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.check-recent-chip.link-style {
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
  margin-right: 8px;
}

.check-recent-chip.link-style:hover {
  color: var(--link-hover, var(--link));
}

.check-recent-clear {
  margin-top: 4px;
  font-size: 12px;
}

.check-clear-recent.link-style {
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  text-decoration: underline;
}

.check-clear-recent.link-style:hover {
  color: var(--link);
}

.check-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.check-result-domain {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  margin: 0;
}

.check-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.check-time {
  white-space: nowrap;
}

.check-link-out {
  color: var(--link);
  text-decoration: underline;
}

.check-link-out:hover {
  color: var(--link-hover, var(--link));
}

.check-copy.link-style,
.check-download.link-style {
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
}

.check-copy.link-style:hover,
.check-download.link-style:hover {
  color: var(--link-hover, var(--link));
}

.check-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--bg);
}

.check-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.check-card-title .check-ok {
  color: #15803d;
  font-weight: 500;
}

.check-card-title .check-missing {
  color: var(--text-muted);
  font-weight: 500;
}

.check-card-body {
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.check-card-collapsed {
  margin: 0;
}
.check-card-collapsed summary.check-collapsed-summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}
.check-card-collapsed summary.check-collapsed-summary::-webkit-details-marker {
  display: none;
}
.check-card-collapsed summary.check-collapsed-summary::before {
  content: "▸ ";
  font-size: 10px;
}
.check-card-collapsed[open] summary.check-collapsed-summary::before {
  content: "▾ ";
}
.check-details-note {
  margin: 6px 0 0 1em;
  font-size: 12px;
  color: var(--text-muted);
}

.check-tls-live {
  margin-bottom: 10px;
}
.check-tls-ct {
  margin-top: 0;
}
.check-tls-ct-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.check-tls-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 12px;
}
.check-tls-list li {
  margin-bottom: 2px;
}

.check-card-block {
  margin-bottom: 12px;
}
.check-card-block:last-child {
  margin-bottom: 0;
}
.check-card-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.check-card-list {
  margin: 0 0 8px 0;
  padding-left: 1.2em;
  font-size: 12px;
}
.check-card-list li {
  margin-bottom: 2px;
}
.check-card-list li:last-child {
  margin-bottom: 0;
}

.check-subdomains-list {
  margin: 12px 0 0 0;
  padding-left: 1.2em;
  font-size: 12px;
  max-height: 360px;
  overflow-y: auto;
}
.check-subdomains-list li {
  margin-bottom: 2px;
}
.check-subdomains-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted, #666);
}

.check-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}

.check-ip-line {
  margin-bottom: 6px;
}

.check-ip-line:last-child {
  margin-bottom: 0;
}

.check-record-wrap .check-record-full[hidden],
.check-record-wrap .check-record-short[hidden] {
  display: none;
}

.check-toggle.link-style {
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
}

.check-toggle.link-style:hover {
  color: var(--link-hover, var(--link));
}

.check-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  align-items: baseline;
}

.check-dt {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 14px;
}

.check-dd {
  margin: 0;
  font-size: 14px;
  word-break: break-word;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Page title (for write-ups, projects) */
.page-title {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  text-align: center;
  color: var(--text);
}

.page-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 36px;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 32px 0 40px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--link);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Prettify: subtle link underlines */
.why-block a,
.about-content a,
.mentions-list a {
  text-underline-offset: 2px;
}

/* Skip link — visible on focus for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  border: 2px solid var(--link);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: left 0s;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Focus outline for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* About / standalone content pages — same font & size for all body text */
.about-content {
  font-size: 1rem;
  font-weight: 300;
}

.about-content p {
  font-size: 1rem;
  font-weight: 300;
  margin: 0 0 1em;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content .mentions-list li {
  font-size: 1rem;
  font-weight: 300;
  padding: 6px 0;
}

.about-content .mentions-list li:last-child {
  padding-bottom: 0;
}

.about-content .section-title {
  margin-top: 32px;
  margin-bottom: 12px;
}

.about-content .section-title:first-of-type {
  margin-top: 0;
}

.about-content a {
  color: var(--link);
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}

.resume-link {
  font-size: 1.1rem;
}

.media-mentions.mentions-list li {
  padding: 10px 0;
}

/* WordPress post content (write-ups/slug.html) */
.write-up-post .post-content {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

.write-up-post .post-content p {
  margin: 0 0 1em;
}

.write-up-post .post-content ul,
.write-up-post .post-content ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.write-up-post .post-content li {
  margin-bottom: 0.35em;
}

.write-up-post .post-content a {
  color: var(--link);
  text-decoration: none;
}

.write-up-post .post-content a:hover {
  text-decoration: underline;
}

.write-up-post .post-content strong {
  font-weight: 500;
}

.write-up-post .post-content h2,
.write-up-post .post-content h3 {
  font-family: var(--font);
  font-weight: 300;
  margin: 1.25em 0 0.5em;
}

.write-up-post .post-content h2 { font-size: 1.25rem; }
.write-up-post .post-content h3 { font-size: 1.1rem; }

/* Images: constrain to content width, prevent overflow */
.write-up-post .post-content figure,
.write-up-post .post-content .wp-block-image {
  margin: 1.5em 0;
  max-width: 100%;
}
.write-up-post .post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.write-up-post .post-content figure.alignfull,
.write-up-post .post-content .wp-block-image.alignfull {
  width: 100%;
  max-width: 100%;
}
.write-up-post .post-content figcaption {
  font-size: 0.9rem;
  color: var(--muted, #555);
  margin-top: 0.5em;
}

/* Code: monospace, readable blocks and inline */
.write-up-post .post-content code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.write-up-post .post-content pre,
.write-up-post .post-content pre.wp-block-code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  background: #f5f5f5;
  padding: 1em 1.25em;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre;
  margin: 1em 0;
  border: 1px solid #e5e5e5;
}
.write-up-post .post-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
