/* ============================================================
   Sell With Sutkus | Article Hub
   Palette: #0B0B0B ink, #F7F7F7 white, #C4C7CC silver, #E1E3E6 light silver
   Type: Bodoni Moda (display), Hanken Grotesk (body)
   Edit nothing here unless you want the change on every page.
   ============================================================ */

:root {
  --ink: #0B0B0B;
  --ink-raise: #121212;
  --ink-card: #151515;
  --white: #F7F7F7;
  --silver: #C4C7CC;
  --silver-light: #E1E3E6;
  --rule: rgba(196, 199, 204, 0.22);
  --rule-soft: rgba(196, 199, 204, 0.12);
  --wrap: 1120px;
  --read: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--silver-light);
  font-family: "Hanken Grotesk", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--white); text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.read { max-width: var(--read); margin: 0 auto; }

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.005em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p { margin: 0 0 1.15em; }

.eyebrow {
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 500;
  margin: 0 0 18px;
}

.lede { font-size: 1.12rem; color: var(--silver-light); }

.muted { color: var(--silver); }

.small {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--silver);
}

/* ---------- Header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-lockup img { height: 44px; width: auto; max-width: 132px; }

.brokerage-line {
  border-left: 1px solid var(--rule);
  padding-left: 16px;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--silver);
  line-height: 1.5;
}

.nav {
  display: flex;
  align-items: center;
  gap: 19px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.current { color: var(--white); border-bottom-color: var(--silver); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--silver);
  color: var(--white);
  background: transparent;
  transition: background 0.22s ease, color 0.22s ease;
}

.btn:hover, .btn:focus-visible { background: var(--silver); color: var(--ink); }

.btn.solid { background: var(--silver-light); color: var(--ink); border-color: var(--silver-light); }

.btn.solid:hover, .btn.solid:focus-visible { background: var(--white); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }

.section.tight { padding: 56px 0; }

.section.ruled { border-top: 1px solid var(--rule-soft); }

/* ---------- Hero ---------- */

.hero { padding: 108px 0 88px; }

.hero h1 { max-width: 15ch; }

.hero .lede { max-width: 56ch; margin-top: 26px; }

.hero .btn-row { margin-top: 38px; }

/* ---------- Hub grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.grid-3.four { grid-template-columns: repeat(2, 1fr); }

.grid-3 .cell {
  background: var(--ink-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: background 0.22s ease;
}

.grid-3 .cell:hover { background: var(--ink-raise); }

.grid-3 .cell h3 { margin-bottom: 14px; }

.grid-3 .cell p { color: var(--silver); font-size: 0.96rem; }

.grid-3 .cell .go {
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- Article list ---------- */

.list { border-top: 1px solid var(--rule); }

.list .item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 34px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.list .item .meta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  padding-top: 8px;
}

.list .item h3 { margin-bottom: 8px; }

.list .item h3 a { border-bottom: 1px solid transparent; }

.list .item h3 a:hover, .list .item h3 a:focus-visible { border-bottom-color: var(--silver); }

.list .item p { color: var(--silver); font-size: 0.96rem; margin: 0; }

.empty {
  border: 1px solid var(--rule);
  padding: 48px 32px;
  text-align: center;
  color: var(--silver);
}

/* ---------- Article body ---------- */

.article-head { padding: 76px 0 40px; }

.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }

.article-head .meta {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.body { padding-bottom: 72px; }

.body h2 { margin: 52px 0 18px; font-size: 1.8rem; }

.body h3 { margin: 38px 0 14px; }

.body ul, .body ol { margin: 0 0 1.3em; padding-left: 22px; }

.body li { margin-bottom: 9px; }

.body blockquote {
  margin: 38px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--silver);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--white);
}

.body a { border-bottom: 1px solid var(--silver); }

.body figure { margin: 40px 0; }

.body figcaption { margin-top: 12px; font-size: 0.82rem; color: var(--silver); }

/* ---------- Agent CTA block ---------- */

.agent {
  border: 1px solid var(--rule);
  background: var(--ink-card);
  padding: 40px;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 34px;
  align-items: center;
}

.agent img.face { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }

.agent .name {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.2;
}

.agent .creds {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 8px;
}

.agent p.pitch { margin: 16px 0 22px; color: var(--silver-light); font-size: 0.98rem; }

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 56px 0 44px;
  margin-top: 20px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.foot-grid img.mark { width: 148px; margin-bottom: 20px; }

.foot-grid h4 {
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
  font-weight: 600;
}

.foot-grid ul { list-style: none; margin: 0; padding: 0; }

.foot-grid li { margin-bottom: 10px; font-size: 0.92rem; color: var(--silver); }

.foot-grid a { color: var(--silver); }

.foot-grid a:hover, .foot-grid a:focus-visible { color: var(--white); }

.legal {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.78rem;
  color: var(--silver);
  line-height: 1.7;
}

.legal strong { color: var(--silver-light); font-weight: 500; }

/* ---------- Contact and about ---------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.split img.portrait { width: 100%; border: 1px solid var(--rule); }

.data-rows { border-top: 1px solid var(--rule); margin-top: 8px; }

.data-rows .row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.data-rows .k {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  padding-top: 4px;
}

.data-rows .v { color: var(--white); }

.data-rows .v a { border-bottom: 1px solid var(--rule); }

/* ---------- Focus and motion ---------- */

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--silver-light);
  outline-offset: 3px;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .site-head { position: static; }
  .site-head .bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav { flex-wrap: wrap; white-space: normal; gap: 16px; }
}

@media (max-width: 900px) {
  .grid-3, .grid-3.four { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .list .item { grid-template-columns: 1fr; gap: 10px; }
  .list .item .meta { padding-top: 0; }
  .agent { grid-template-columns: 1fr; text-align: left; gap: 24px; padding: 28px; }
  .agent img.face { margin: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .data-rows .row { grid-template-columns: 1fr; gap: 4px; }
  .btn { width: 100%; text-align: center; }
}


/* ============================================================
   Homepage v2: brand hero, article rail, market teaser
   ============================================================ */

.hero-lux {
  position: relative;
  padding: 116px 0 92px;
  border-bottom: 1px solid var(--rule-soft);
  overflow: hidden;
  text-align: center;
}
.hero-lux::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(78% 120% at 50% -12%, rgba(225,227,230,0.10), transparent 60%);
  pointer-events: none;
}
.hero-lux .inner { position: relative; max-width: 880px; margin: 0 auto; }
.hero-lux .brandmark { width: 208px; height: auto; margin: 0 auto 30px; }
.hero-lux h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.05; }
.hero-lux .lede { max-width: 58ch; margin: 24px auto 0; }
.hero-lux .btn-row { justify-content: center; margin-top: 36px; }

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.rail-head .see { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); white-space: nowrap; }
.rail-head .see:hover { color: var(--white); }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 340px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 8px; }

.ccard {
  scroll-snap-align: start;
  background: var(--ink-card);
  border: 1px solid var(--rule);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.ccard:hover { background: var(--ink-raise); transform: translateY(-3px); border-color: var(--rule); }
.ccard .kicker { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); margin-bottom: 16px; }
.ccard h3 { margin-bottom: 12px; }
.ccard p { color: var(--silver); font-size: 0.95rem; margin: 0; }
.ccard .go { margin-top: auto; padding-top: 22px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); }
.rail-hint { margin-top: 14px; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); }

.teaser {
  border: 1px solid var(--rule);
  background: var(--ink-card);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.teaser .t-copy { max-width: 58ch; }
.teaser h2 { margin: 0 0 8px; }
.teaser p { margin: 0; color: var(--silver); }

@media (max-width: 680px) {
  .hero-lux { padding: 72px 0 60px; }
  .hero-lux .brandmark { width: 168px; }
  .rail { grid-auto-columns: 84%; }
  .teaser { padding: 28px; }
  .teaser .btn { width: 100%; text-align: center; }
}

/* ---------- Article filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.chip {
  background: transparent; border: 1px solid var(--rule); color: var(--silver);
  font-family: "Hanken Grotesk", Arial, sans-serif; font-size: 0.76rem;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 18px;
  border-radius: 2px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover, .chip:focus-visible { color: var(--white); }
.chip.current { background: var(--silver-light); color: var(--ink); border-color: var(--silver-light); }

/* ---------- Community index: upcoming (not yet linked) ---------- */
.grid-3 .cell.soon { opacity: 0.5; cursor: default; }
.grid-3 .cell.soon:hover { background: var(--ink-card); }


/* ============================================================
   LIGHT MODE
   Same three colors, inverted. Warm ivory paper, black ink.
   Activated by data-theme="light" on <html>.
   ============================================================ */
html[data-theme="light"] {
  --ink: #F7F5F1;
  --ink-raise: #FFFDFA;
  --ink-card: #FFFDFA;
  --white: #0B0B0B;
  --silver: #5F5E5A;
  --silver-light: #26251F;
  --rule: rgba(11, 11, 11, 0.18);
  --rule-soft: rgba(11, 11, 11, 0.10);
}
html[data-theme="light"] .btn.solid { background: #0B0B0B; color: #F7F5F1; border-color: #0B0B0B; }
html[data-theme="light"] .btn.solid:hover,
html[data-theme="light"] .btn.solid:focus-visible { background: #26251F; border-color: #26251F; }
html[data-theme="light"] .btn:hover,
html[data-theme="light"] .btn:focus-visible { background: #0B0B0B; color: #F7F5F1; }
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .lede { font-weight: 500; -webkit-font-smoothing: antialiased; }
/* every instance of the logo file flips to black in light mode,
   no matter what class it carries: header lockup, hero brandmark, footer mark */
html[data-theme="light"] img[src="logo.png"],
html[data-theme="light"] img[src$="/logo.png"] { filter: invert(1); }
html[data-theme="light"] .sws-signup { background: #FFFDFA !important; border-color: rgba(11,11,11,0.18) !important; }
html[data-theme="light"] .sws-signup p:first-child { color: #5F5E5A !important; }
html[data-theme="light"] .sws-signup p:nth-child(2) { color: #0B0B0B !important; }
html[data-theme="light"] .sws-signup input { background: #F7F5F1 !important; border-color: rgba(11,11,11,0.28) !important; color: #0B0B0B !important; }
html[data-theme="light"] .sws-signup button { background: #0B0B0B !important; color: #F7F5F1 !important; }
html[data-theme="light"] .sws-done { color: #5F5E5A !important; }

/* toggle control: filled, opposite of the page, so it stands out */
.theme-toggle {
  background: var(--silver-light);
  border: none;
  color: var(--ink);
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin-left: 20px; flex: 0 0 auto;
  transition: background .18s ease, transform .18s ease;
}
.theme-toggle:hover, .theme-toggle:focus-visible {
  background: var(--white); transform: scale(1.06); outline: none;
}
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle { background: #0B0B0B; color: #F7F5F1; }
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible { background: #26251F; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 860px) { .theme-toggle { margin-left: 0; } }
