/* Artificial Reality — magazine layer.
   Palette is Galina's Squarespace suite. Everything is either .ar-*, or a
   deliberate override of a Source .gh-* class so the chrome matches. */

:root {
  --ar-paper:   #F4EFE6;   /* page ground */
  --ar-paper-2: #EEE4D8;   /* secondary surface, rules on paper */
  --ar-deep:    #5F0C10;   /* deep maroon — mastheads, footer */
  --ar-red:     #8D1118;   /* brighter red — accents, kickers, links */
  --ar-ink:     #1B0E09;   /* near-black brown — body text */
  --ar-muted:   #6B584C;   /* derived: ink at ~62% on paper */
  --ar-rule:    #D8CBBA;   /* derived: hairline on paper */
  --background-color: var(--ar-paper);
}

/* ---------------- chrome overrides (Source) ---------------- */
body, .gh-viewport { background: var(--ar-paper); color: var(--ar-ink); }
.gh-navigation { background: var(--ar-paper); border-bottom: 2px solid var(--ar-ink); }
.gh-navigation .gh-navigation-brand a,
.gh-navigation .gh-head-logo { color: var(--ar-ink); letter-spacing: -.02em; }
.gh-navigation-menu a, .gh-navigation a { color: var(--ar-ink); }
.gh-navigation-menu a {
  font-size: 1.35rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.gh-navigation-menu a:hover { color: var(--ar-red); }
.gh-navigation .gh-button, .gh-head-button {
  background: var(--ar-red); color: #fff; border-radius: 0; border: 0;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1.3rem;
}
.gh-footer { background: var(--ar-deep); color: rgba(255,255,255,.82); }
.gh-footer a, .gh-footer .gh-footer-menu a { color: rgba(255,255,255,.82); }
.gh-footer a:hover { color: #fff; }
.gh-article-title, .gh-card-title, .gh-container-title { color: var(--ar-ink); }
.gh-content a { color: var(--ar-red); }

/* ---------------- shell ---------------- */
.ar-wrap { max-width: 1280px; margin: 0 auto; padding: 0 max(4vmin, 20px); }
.ar-main { padding-bottom: 7vmin; }
.ar-rule-thick { height: 5px; background: var(--ar-ink); margin: 0 0 3.2rem; }

/* ---------------- masthead ---------------- */
.ar-masthead { background: var(--ar-deep); color: #fff; padding: 7vmin 0 6vmin; margin-bottom: 6vmin; }
.ar-masthead-eyebrow {
  font-size: 1.25rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin: 0 0 1.6rem;
}
.ar-masthead h1 {
  font-size: clamp(3.6rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.03em;
  margin: 0; font-weight: 800; color: #fff; text-transform: uppercase; max-width: 18ch;
}
.ar-masthead-rule { width: 100%; height: 3px; background: rgba(255,255,255,.35); margin: 3rem 0 0; }
.ar-masthead-sub {
  font-size: clamp(1.7rem, 1.9vw, 2.1rem); line-height: 1.5; margin: 2.4rem 0 0;
  max-width: 66ch; color: rgba(255,255,255,.86);
}

/* ---------------- section front ---------------- */
.ar-section { margin: 0 0 7vmin; }
.ar-sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: .8rem 2.4rem; border-top: 5px solid var(--ar-ink); padding-top: 1.4rem; margin-bottom: 2.8rem;
}
.ar-sec-title {
  grid-column: 1; margin: 0; color: var(--ar-ink); font-weight: 800;
  font-size: clamp(2rem, 2.6vw, 2.6rem); letter-spacing: .02em; text-transform: uppercase;
}
.ar-sec-blurb {
  grid-column: 1; margin: .8rem 0 0; max-width: 70ch;
  font-size: 1.55rem; line-height: 1.55; color: var(--ar-muted);
}
.ar-sec-all {
  grid-column: 2; grid-row: 1; white-space: nowrap; color: var(--ar-red); text-decoration: none;
  font-size: 1.25rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.ar-sec-all:hover { text-decoration: underline; }

/* ---------------- cards ---------------- */
.ar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.6rem 3rem; }
.ar-grid.is-4 { grid-template-columns: repeat(4, 1fr); gap: 3.2rem 2.4rem; }

.ar-card { border-top: 1px solid var(--ar-rule); padding-top: 1.8rem; }
.ar-card .ar-card-link { display: block; text-decoration: none; color: inherit; }
.ar-card-img {
  display: block; margin: 0 0 1.6rem; aspect-ratio: 16/9; overflow: hidden;
  background: var(--ar-paper-2);
}
.ar-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ar-card:hover .ar-card-img img { transform: scale(1.04); }
.ar-card-kicker {
  font-size: 1.15rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ar-red); margin: 0 0 .9rem;
}
.ar-card-title {
  font-size: 2rem; line-height: 1.2; font-weight: 800; letter-spacing: -.015em;
  margin: 0 0 .9rem; color: var(--ar-ink);
}
.ar-card:hover .ar-card-title { color: var(--ar-red); }
.ar-card-excerpt {
  font-size: 1.5rem; line-height: 1.55; color: var(--ar-muted); margin: 0 0 1.2rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ar-card-meta {
  font-size: 1.2rem; color: var(--ar-muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}

/* lead story — full-bleed image, oversized head */
.ar-grid.has-lead > .ar-card:first-child { grid-column: span 2; grid-row: span 2; border-top-width: 5px; }
.ar-grid.has-lead > .ar-card:first-child .ar-card-img { aspect-ratio: 16/10; margin-bottom: 2rem; }
.ar-grid.has-lead > .ar-card:first-child .ar-card-title {
  font-size: clamp(2.8rem, 3.6vw, 4rem); line-height: 1.06; letter-spacing: -.03em;
}
.ar-grid.has-lead > .ar-card:first-child .ar-card-excerpt { -webkit-line-clamp: 4; font-size: 1.7rem; }
/* the rail beside the lead: text-only, tight */
.ar-grid.has-lead > .ar-card:not(:first-child) .ar-card-img { display: none; }
.ar-grid.has-lead > .ar-card:not(:first-child) .ar-card-title { font-size: 1.8rem; }
.ar-grid.has-lead > .ar-card:not(:first-child) .ar-card-excerpt { -webkit-line-clamp: 2; }

/* ---------------- industry cards ---------------- */
.ar-ind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.ar-ind {
  position: relative; display: block; text-decoration: none; color: #fff;
  aspect-ratio: 4/5; overflow: hidden; background: var(--ar-deep);
}
.ar-ind-img { position: absolute; inset: 0; display: block; }
.ar-ind-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.75) contrast(1.05); transition: transform .5s ease; }
.ar-ind:hover .ar-ind-img img { transform: scale(1.05); }
.ar-ind::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(95,12,16,.34) 0%, rgba(95,12,16,.52) 45%, rgba(27,14,9,.88) 100%);
}
.ar-ind-arrow {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 2;
  width: 3.6rem; height: 3.6rem; background: var(--ar-red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem; line-height: 1;
}
.ar-ind:hover .ar-ind-arrow { background: #fff; color: var(--ar-red); }
.ar-ind-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2rem 1.8rem; }
.ar-ind-eyebrow {
  display: block; font-size: 1rem; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.82); margin: 0 0 .8rem;
}
.ar-ind-eyebrow i { display: block; width: 34px; height: 3px; background: #fff; margin-top: .8rem; font-style: normal; }
.ar-ind-name {
  display: block; font-size: clamp(1.7rem, 1.5vw, 2.1rem); font-weight: 800;
  line-height: 1.06; letter-spacing: -.01em; text-transform: uppercase; color: #fff;
}
.ar-ind-count {
  display: block; margin-top: .9rem; font-size: 1.05rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.ar-ind.is-empty .ar-ind-count { color: rgba(255,255,255,.5); }
/* the lead card in the grid is the index itself */
.ar-ind.is-index::after { background: linear-gradient(180deg, rgba(95,12,16,.5) 0%, rgba(27,14,9,.92) 100%); }

/* ---------------- channel header ---------------- */
.ar-chan-head { border-bottom: 5px solid var(--ar-ink); padding: 5vmin 0 3vmin; margin-bottom: 5vmin; }
.ar-chan-eyebrow {
  font-size: 1.2rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ar-red); margin: 0 0 1.2rem;
}
.ar-chan-head h1 {
  font-size: clamp(3rem, 5.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.03em;
  margin: 0; font-weight: 800; color: var(--ar-ink); text-transform: uppercase;
}
.ar-chan-desc { font-size: 1.8rem; line-height: 1.55; color: var(--ar-muted); margin: 1.8rem 0 0; max-width: 68ch; }

/* ---------------- misc ---------------- */
.ar-empty {
  grid-column: 1 / -1; padding: 2.8rem; text-align: center; background: var(--ar-paper-2);
  color: var(--ar-muted); font-size: 1.45rem; margin: 0;
}

/* ---------------- newsletter signup ---------------- */
.ar-signup { background: var(--ar-deep); color: #fff; margin: 0 0 7vmin; padding: 6vmin max(4vmin,20px); }
.ar-signup-inner { max-width: 760px; margin: 0 auto; }
.ar-signup-eyebrow {
  font-size: 1.15rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin: 0 0 1.4rem;
}
.ar-signup-title {
  font-size: clamp(2.4rem, 3.4vw, 3.6rem); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.06; margin: 0; color: #fff; text-transform: uppercase;
}
.ar-signup-blurb { font-size: 1.65rem; line-height: 1.55; color: rgba(255,255,255,.86); margin: 1.6rem 0 0; }
.ar-signup-form { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2.6rem 0 0; }
.ar-signup-input {
  flex: 1 1 300px; max-width: 460px; padding: 1.4rem 1.6rem; font-size: 1.55rem; font-family: inherit;
  border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: 0;
}
.ar-signup-input::placeholder { color: rgba(255,255,255,.55); }
.ar-signup-input:focus { outline: none; border-color: #fff; }
.ar-signup-btn {
  padding: 1.4rem 2.6rem; font-size: 1.3rem; font-weight: 800; font-family: inherit;
  letter-spacing: .12em; text-transform: uppercase; background: var(--ar-red); color: #fff;
  border: 2px solid var(--ar-red); cursor: pointer; border-radius: 0;
}
.ar-signup-btn:hover { background: #fff; border-color: #fff; color: var(--ar-red); }
.ar-signup-msg { display: none; flex-basis: 100%; font-size: 1.4rem; margin-top: .6rem; }
.ar-signup-form.success .ar-signup-msg.is-ok { display: block; }
.ar-signup-form.error .ar-signup-msg.is-err { display: block; }
.ar-signup-form.loading .ar-signup-btn { opacity: .6; pointer-events: none; }
.ar-signup-note { font-size: 1.3rem; color: rgba(255,255,255,.62); margin: 1.8rem 0 0; }

.ar-signup.is-split { padding: 6vmin max(4vmin,20px); }
.ar-signup-split { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.ar-signup-col + .ar-signup-col { border-left: 1px solid rgba(255,255,255,.28); padding-left: 5rem; }
.ar-signup-coltitle {
  font-size: clamp(2rem, 2.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em;
  margin: 0; color: #fff; line-height: 1.08; text-transform: uppercase;
}
.ar-signup-col .ar-signup-blurb { font-size: 1.5rem; margin-top: 1.2rem; }
.ar-signup-col .ar-signup-form { margin-top: 2.2rem; }
.ar-signup-col .ar-signup-input { flex: 1 1 180px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .ar-ind-grid { grid-template-columns: repeat(3, 1fr); }
  .ar-grid { grid-template-columns: repeat(2, 1fr); }
  .ar-grid.is-4 { grid-template-columns: repeat(2, 1fr); }
  .ar-grid.has-lead > .ar-card:first-child { grid-column: span 2; grid-row: auto; }
  .ar-grid.has-lead > .ar-card:not(:first-child) .ar-card-img { display: block; }
}
@media (max-width: 820px) {
  .ar-signup-split { grid-template-columns: 1fr; gap: 4rem; }
  .ar-signup-col + .ar-signup-col {
    border-left: 0; border-top: 1px solid rgba(255,255,255,.28); padding-left: 0; padding-top: 4rem;
  }
}
@media (max-width: 640px) {
  .ar-ind-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .ar-grid, .ar-grid.is-4 { grid-template-columns: 1fr; gap: 3.2rem; }
  .ar-grid.has-lead > .ar-card:first-child { grid-column: span 1; }
  .ar-sec-head { grid-template-columns: 1fr; }
  .ar-sec-all { grid-column: 1; grid-row: auto; margin-top: .8rem; }
}

/* A section holding a single story becomes a wide hero rather than a hole in the grid */
.ar-grid.has-lead > .ar-card:only-child { grid-column: 1 / -1; grid-row: auto; }
.ar-grid.has-lead > .ar-card:only-child .ar-card-link {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.6rem; align-items: center;
}
.ar-grid.has-lead > .ar-card:only-child .ar-card-img { margin: 0; }
@media (max-width: 820px) {
  .ar-grid.has-lead > .ar-card:only-child .ar-card-link { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------------- chrome fixes ----------------
   Source paints several chrome pieces with --background-color, which Ghost's
   "site background colour" setting hard-codes to white in an inline <style> that
   loads after this file. On a paper page that reads as a stray white slab, and in
   the footer it collapses the signup form into the maroon. Both are pinned here so
   the theme does not depend on that setting being changed. */

/* nav: the search button and Sign in were sharing one white block */
.gh-navigation-actions { background: transparent !important; gap: 2.4rem; }
.gh-navigation-members { gap: 2rem; align-items: center; }
.gh-navigation-members a:not(.gh-button) {
  font-size: 1.3rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ar-ink); text-decoration: none;
}
.gh-navigation-members a:not(.gh-button):hover { color: var(--ar-red); }
.gh-navigation .gh-search {
  background: transparent; color: var(--ar-ink); border: 0; padding: 0;
  position: relative; margin-right: .6rem;
}
.gh-navigation .gh-search:hover { color: var(--ar-red); }
/* hairline between the search icon and the members links */
.gh-navigation .gh-search::after {
  content: ""; position: absolute; top: 50%; right: -1.4rem;
  width: 1px; height: 2rem; transform: translateY(-50%); background: var(--ar-rule);
}
@media (max-width: 767px) { .gh-navigation .gh-search::after { display: none; } }

/* footer: signup form was maroon-on-maroon */
.gh-footer-signup-header { color: #fff; letter-spacing: -.02em; }
.gh-footer-signup-subhead { color: rgba(255,255,255,.78); }
.gh-footer .gh-form { gap: 1rem; }
.gh-footer .gh-form-input {
  background: #fff !important; color: var(--ar-ink) !important;
  border: 2px solid #fff !important; border-radius: 0 !important; box-shadow: none !important;
}
.gh-footer .gh-form-input::placeholder { color: var(--ar-muted) !important; }
.gh-footer .gh-form .gh-button {
  background: var(--ar-red) !important; color: #fff !important;
  border: 2px solid var(--ar-red) !important; border-radius: 0 !important;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.gh-footer .gh-form .gh-button:hover {
  background: #fff !important; color: var(--ar-red) !important; border-color: #fff !important;
}
.gh-footer .gh-social-links a { color: rgba(255,255,255,.8); }
.gh-footer .gh-social-links a:hover { color: #fff; }
.gh-footer-bar { border-top: 1px solid rgba(255,255,255,.22); }
.gh-footer-logo, .gh-footer-copyright { color: rgba(255,255,255,.8); }
.gh-footer-menu a {
  font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------------- subscribe chooser page ---------------- */
.ar-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 5px solid var(--ar-ink); }
.ar-choose-col { padding: 4rem 3.6rem 4.4rem; }
.ar-choose-col + .ar-choose-col { border-left: 1px solid var(--ar-rule); }
.ar-choose-eyebrow {
  font-size: 1.2rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ar-red); margin: 0 0 1.2rem;
}
.ar-choose-title {
  font-size: clamp(2.4rem, 3vw, 3.2rem); font-weight: 800; letter-spacing: -.025em;
  text-transform: uppercase; line-height: 1.05; margin: 0 0 1.6rem; color: var(--ar-ink);
}
.ar-choose-desc { font-size: 1.6rem; line-height: 1.6; color: var(--ar-muted); margin: 0 0 2rem; }
.ar-choose-list { list-style: none; margin: 0 0 2.8rem; padding: 0; }
.ar-choose-list li {
  font-size: 1.45rem; line-height: 1.5; color: var(--ar-ink);
  padding: 1rem 0 1rem 2.2rem; border-top: 1px solid var(--ar-rule); position: relative;
}
.ar-choose-list li::before { content: "→"; position: absolute; left: 0; color: var(--ar-red); font-weight: 700; }
.ar-choose-foot {
  margin: 3.6rem 0 0; padding-top: 2rem; border-top: 1px solid var(--ar-rule);
  font-size: 1.45rem; color: var(--ar-muted);
}
/* the light variant of the signup form, for use on paper rather than maroon */
.ar-signup-form.is-light .ar-signup-input {
  border-color: var(--ar-rule); background: #fff; color: var(--ar-ink);
}
.ar-signup-form.is-light .ar-signup-input::placeholder { color: var(--ar-muted); }
.ar-signup-form.is-light .ar-signup-input:focus { border-color: var(--ar-ink); }
.ar-signup-form.is-light .ar-signup-msg { color: var(--ar-ink); }

/* footer CTA replaces the old untargeted form */
.ar-footer-cta {
  border-radius: 0 !important; background: var(--ar-red) !important; color: #fff !important;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 1.3rem;
  padding: 1.4rem 2.6rem !important;
}
.ar-footer-cta:hover { background: #fff !important; color: var(--ar-red) !important; }

@media (max-width: 820px) {
  .ar-choose { grid-template-columns: 1fr; }
  .ar-choose-col { padding: 3.2rem 0 3.6rem; }
  .ar-choose-col + .ar-choose-col { border-left: 0; border-top: 1px solid var(--ar-rule); }
}
.ar-signup-note a { color: inherit; }
