/* ArteBook Studio — Obsidian Atelier SEO & GEO Publishing Stylesheet */
:root {
  --bg-canvas: #0b0d13;
  --bg-surface: #131722;
  --bg-elevated: #191f2e;
  --bg-glass: rgba(19, 23, 34, 0.86);
  --text-primary: #f6f4ef;
  --text-secondary: #b9c1d4;
  --text-muted: #7f89a2;
  --accent-gold: #e5c17b;
  --accent-gold-bright: #f2d598;
  --accent-gold-soft: rgba(229, 193, 123, 0.13);
  --accent-indigo: #8d80ff;
  --accent-indigo-soft: rgba(141, 128, 255, 0.14);
  --accent-emerald: #5cc9a7;
  --accent-emerald-soft: rgba(92, 201, 167, 0.14);
  --border-hairline: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(229, 193, 123, 0.36);
  --border-indigo: rgba(141, 128, 255, 0.34);
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --shadow-elevated: 0 18px 46px rgba(0, 0, 0, 0.42);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 42% at 50% 0%, rgba(141, 128, 255, 0.13), rgba(229, 193, 123, 0.05) 52%, transparent 82%),
    var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-gold-bright);
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 13, 19, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-indigo));
  box-shadow: 0 0 12px rgba(229, 193, 123, 0.55);
}

.brand span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #efd296 0%, #c99945 100%);
  color: #15120c !important;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(229, 193, 123, 0.24);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(229, 193, 123, 0.34);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: var(--accent-gold-soft);
  color: var(--accent-gold) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 22px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.hub-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 22px 76px;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--emerald {
  background: var(--accent-emerald-soft);
  border-color: rgba(92, 201, 167, 0.36);
  color: var(--accent-emerald);
}

.badge--indigo {
  background: var(--accent-indigo-soft);
  border-color: var(--border-indigo);
  color: #b4abff;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.24;
  margin: 36px 0 12px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18.5px;
  line-height: 1.32;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

ul, ol {
  color: var(--text-secondary);
  padding-left: 20px;
  margin: 0 0 18px;
}

li {
  margin-bottom: 7px;
}

.lede {
  font-size: 18px;
  line-height: 1.62;
  color: #d7ddec;
  margin-bottom: 24px;
}

.geo-capsule {
  margin: 20px 0 26px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(25, 31, 46, 0.96), rgba(19, 23, 34, 0.96));
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-elevated);
}

.geo-capsule-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.geo-capsule p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15.5px;
  line-height: 1.64;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 28px;
}

@media (max-width: 680px) {
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 13px;
  padding: 14px 12px;
  text-align: center;
}

.kpi-val {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.2;
}

.kpi-lbl {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cta-banner {
  margin: 26px 0;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(229, 193, 123, 0.12), rgba(141, 128, 255, 0.12));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-banner strong {
  display: block;
  font-size: 16.5px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.cta-banner span {
  font-size: 13.8px;
  color: var(--text-secondary);
}

.media-figure {
  margin: 26px 0 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-elevated);
}

.media-figure img {
  width: 100%;
  height: auto;
  background: #0e121b;
}

.media-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-hairline);
  background: rgba(11, 13, 19, 0.65);
}

.video-showcase {
  margin: 28px 0 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-indigo);
  box-shadow: var(--shadow-elevated);
}

.video-showcase video {
  width: 100%;
  height: auto;
  background: #07090e;
}

.video-caption {
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-hairline);
}

.table-wrap {
  overflow-x: auto;
  margin: 22px 0 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th, td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: top;
}

th {
  background: var(--bg-elevated);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

.checklist-box {
  margin: 24px 0 30px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.checklist-header h3 {
  margin: 0;
  font-size: 17px;
}

.checklist-progress {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.check-item:first-of-type {
  border-top: none;
}

.check-item input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-emerald);
  flex-shrink: 0;
  cursor: pointer;
}

.check-item input[type="checkbox"]:checked + span {
  color: var(--text-muted);
  text-decoration: line-through;
}

.faq-list {
  display: grid;
  gap: 11px;
  margin: 18px 0 30px;
}

details.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 13px;
  padding: 14px 18px;
}

details.faq-item[open] {
  border-color: var(--border-gold);
}

details.faq-item summary {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  color: var(--accent-gold);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.sidebar {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.side-card--gold {
  border-color: var(--border-gold);
}

.phone-bezel {
  width: 206px;
  margin: 12px auto 14px;
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(160deg, #2b3348, #10141f);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.phone-bezel img {
  width: 100%;
  height: auto;
  border-radius: 21px;
}

.phone-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 12px;
}

.side-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.side-links a {
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.side-links a:hover {
  color: var(--accent-gold);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}

.card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
}

.card h3 {
  font-size: 16.5px;
  margin: 8px 0;
}

.card h3 a {
  color: var(--text-primary);
}

.card p {
  font-size: 13.5px;
  margin: 0 0 12px;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

@media (max-width: 640px) {
  .prev-next {
    grid-template-columns: 1fr;
  }
}

.prev-next a {
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: block;
  text-decoration: none !important;
}

.prev-next a:hover {
  border-color: var(--border-gold);
}

.prev-next small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.prev-next strong {
  font-size: 14px;
  color: var(--text-primary);
}

/* Hub Search & Directory */
.hub-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 28px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
}

.hub-search-bar input[type="search"] {
  flex: 1 1 280px;
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
}

.hub-search-bar input[type="search"]:focus {
  outline: 2px solid var(--accent-gold);
  border-color: transparent;
}

.hub-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-emerald);
}

.dir-group {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

.dir-group h2 {
  margin-top: 0;
  font-size: 20px;
}

.dir-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  columns: 2;
  column-gap: 28px;
}

@media (max-width: 760px) {
  .dir-list {
    columns: 1;
  }
}

.dir-list li {
  break-inside: avoid;
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dir-list li a {
  color: var(--text-secondary);
}

.dir-list li a:hover {
  color: var(--accent-gold);
}

/* Interactive Calculators */
.calc-panel {
  margin: 24px 0 30px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-elevated);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.calc-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}

.calc-stat {
  background: rgba(11, 13, 19, 0.72);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 13px;
}

.calc-stat strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  color: var(--accent-emerald);
}

.calc-stat span {
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: #080a10;
  padding: 44px 22px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
