/* arcolano.com — "Signal" data-ink design.
   Schibsted Grotesk + Spline Sans Mono · paper & ultramarine · axis, ticks, selected strip.
   Shared by index.html and resources.html. */

:root {
  --paper:       #FBFBF7;
  --ink:         #16181D;
  --ink-soft:    #4D5158;
  --ink-faint:   #7E838B;
  --signal:      #1D3FE0;
  --signal-deep: #142FA8;
  --grid:        #E6E6DE;
  --grid-dark:   #C9C9BE;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.mono,
.brand,
.stamp,
.kicker,
.desc,
.idx,
.subsection h3,
.more-list summary,
.section-cta a,
.start-label,
.slab,
.ssrc,
.cval,
footer,
.page-label {
  font-family: 'Spline Sans Mono', 'SF Mono', Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}

.brand {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.stamp {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* ---------- The axis ---------- */

main {
  border-left: 1px solid var(--grid-dark);
  padding-left: 32px;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 48px 0 8px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 75%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 75%);
  pointer-events: none;
}

.fig {
  position: relative;
  width: 200px;
}

.fig-photo {
  width: 200px;
  height: 200px;
  background-image: url('/headshot.jpeg');
  background-size: 160%;
  background-position: 47% 41%;
  filter: grayscale(1);
}

@media (prefers-reduced-motion: no-preference) {
  .fig-photo { transition: filter 0.3s ease; }
}

.fig:hover .fig-photo { filter: grayscale(0); }

/* Corner crop marks */
.fig::before, .fig::after, .fig .corner {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.fig::before { top: -6px; left: -6px; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.fig::after { top: -6px; right: -6px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
.fig .corner { display: block; }
.fig .corner.bl { top: 192px; left: -6px; border-bottom: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.fig .corner.br { top: 192px; right: -6px; border-bottom: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }

.hero-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--signal);
  margin-bottom: 0.9rem;
}

.hero-text h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.blurb {
  color: var(--ink-soft);
  font-size: 0.975rem;
  max-width: 56ch;
}

.hero-links {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.4rem;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--grid-dark);
  text-underline-offset: 4px;
}

.hero-links a svg { flex-shrink: 0; }

.hero-links a:hover {
  color: var(--signal);
  text-decoration-color: var(--signal);
}

/* ---------- "Selected" strip ---------- */

.start-strip {
  grid-column: 1 / -1;
  margin-top: 32px;
}

.start-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.start-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--grid-dark);
  border-bottom: 1px solid var(--grid-dark);
}

.start-cell {
  padding: 16px 20px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
}

.start-cell + .start-cell {
  border-left: 1px solid var(--grid);
  padding-left: 20px;
}

.slab {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--signal);
}

.stitle {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}

.start-cell:hover .stitle { color: var(--signal); }

.ssrc {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.nb { white-space: nowrap; }

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

section {
  margin-top: 88px;
}

section h2 {
  position: relative;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

section h2::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 0.62em;
  width: 13px;
  height: 1.5px;
  background: var(--ink);
}

.idx {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--signal);
  margin-right: 0.5rem;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  max-width: 60ch;
}

.subsection { margin-top: 2.2rem; }

.subsection h3 {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

/* ---------- List rows ---------- */

ul.links { list-style: none; }

ul.links li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(38%);
  gap: 24px;
  align-items: baseline;
  border-top: 1px solid var(--grid);
  padding: 12px 0;
}

ul.links li:hover::before,
ul.links li.featured::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 50%;
  margin-top: -2.5px;
  width: 5px;
  height: 5px;
  background: var(--signal);
}

ul.links li > a,
ul.links li > strong {
  font-weight: 500;
  font-size: 0.975rem;
  color: var(--ink);
  text-wrap: balance;
}

ul.links li > a {
  text-decoration: underline;
  text-decoration-color: var(--grid-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul.links li > a:hover {
  color: var(--signal);
  text-decoration-color: var(--signal);
}

.desc {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: right;
}

.desc a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--grid-dark);
  text-underline-offset: 2px;
}

.desc a:hover {
  color: var(--signal);
  text-decoration-color: var(--signal);
}

/* Podcasts: title on its own row; platform links (left) + source/date (right) beneath it */
#podcasts ul.links li {
  row-gap: 0.3rem;
}

#podcasts ul.links li > strong {
  grid-column: 1 / -1;
  grid-row: 1;
}

#podcasts ul.links li .desc {
  grid-column: 2;
  grid-row: 2;
}

#podcasts ul.links li .pod-links {
  grid-column: 1;
  grid-row: 2;
  text-align: left;
}

/* Plain list rows (resources page): inline content, no column grid */

ul.links.plain li {
  display: block;
  font-size: 0.95rem;
}

ul.links.plain li > strong {
  font-weight: 600;
  font-size: 0.95rem;
}

ul.links.plain li > a {
  font-family: 'Spline Sans Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.82rem;
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: var(--grid-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul.links.plain li > a:hover {
  color: var(--signal-deep);
  text-decoration-color: var(--signal);
}

/* ---------- Show-all toggles ---------- */

.more-list summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--signal);
  border-top: 1px solid var(--grid);
  padding: 12px 0 4px;
}

.more-list summary::-webkit-details-marker { display: none; }

.more-list summary::before { content: '+ '; }

.more-list[open] summary::before { content: '\2212 '; }

.more-list summary:hover { color: var(--signal-deep); }

.more-list[open] summary { border-bottom: none; }

.section-cta { margin-top: 1.2rem; }

.section-cta a {
  font-size: 0.8rem;
  color: var(--signal);
  text-decoration: none;
}

.section-cta a:hover {
  color: var(--signal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Contact table ---------- */

.contact-table {
  display: flex;
  flex-direction: column;
}

.crow {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
  border-top: 1px solid var(--grid);
  padding: 12px 0;
  text-decoration: none;
}

.crow:last-child { border-bottom: 1px solid var(--grid); }

.clab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}

.clab svg { flex-shrink: 0; }

.cval {
  font-size: 0.85rem;
  color: var(--signal);
}

.arr { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .arr { transition: transform 0.15s ease; }
}

.crow:hover .cval { color: var(--signal-deep); }

.crow:hover .arr { transform: translateX(4px); }

/* ---------- Resources page ---------- */

.page-header {
  padding: 48px 0 8px;
}

.page-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--signal);
  margin-bottom: 0.9rem;
}

.page-header h1 {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.page-header .section-intro { margin-bottom: 0; }

h3.subsection-title {
  font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.subsection-blurb {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  max-width: 60ch;
}

.practice-callout {
  border: 1px solid var(--grid-dark);
  padding: 18px 20px;
  margin-top: 2.6rem;
  position: relative;
}

.practice-callout::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 5px;
  height: 5px;
  background: var(--signal);
}

.practice-callout strong {
  font-weight: 700;
  font-size: 0.975rem;
}

.practice-callout p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

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

footer {
  margin-top: 88px;
  padding-top: 16px;
  border-top: 1px solid var(--grid-dark);
  font-size: 0.72rem;
  line-height: 2;
  color: var(--ink-faint);
}

footer a {
  color: var(--ink-faint);
  text-decoration: underline;
  text-decoration-color: var(--grid-dark);
  text-underline-offset: 2px;
}

footer a:hover { color: var(--signal); }

.endpoint {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--signal);
  margin-left: 8px;
}

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

@media (max-width: 719.98px) {
  main { border-left: none; padding-left: 0; }
  .stamp { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .fig { width: 180px; }
  .fig-photo { width: 180px; height: 180px; }
  .fig .corner.bl, .fig .corner.br { top: 172px; }
  section { margin-top: 56px; }
  section h2::before { display: none; }
  ul.links li { grid-template-columns: 1fr; gap: 2px; }
  #podcasts ul.links li > strong,
  #podcasts ul.links li .desc,
  #podcasts ul.links li .pod-links { grid-column: 1; grid-row: auto; text-align: left; }
  ul.links li:hover::before,
  ul.links li.featured::before { display: none; }
  .start-cells { grid-template-columns: 1fr; }
  .start-cell { padding-right: 0; }
  .start-cell + .start-cell { border-left: none; border-top: 1px solid var(--grid); padding-left: 0; }
  .desc { text-align: left; }
  .crow { grid-template-columns: 1fr; gap: 0; }
  .page-header { padding-top: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 1.5rem 1.25rem 2.5rem; }
  .hero-links { flex-wrap: wrap; gap: 1.1rem; }
}

/* ---------- Load-in (one orchestrated moment) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  .fig,
  .hero-name,
  .hero .kicker,
  .hero-text h1,
  .hero .blurb,
  .hero-links,
  .start-strip {
    animation: rise 0.45s ease both;
  }
  .fig { animation-delay: 0ms; }
  .hero-name { animation-delay: 60ms; }
  .hero .kicker { animation-delay: 120ms; }
  .hero-text h1 { animation-delay: 180ms; }
  .hero .blurb { animation-delay: 240ms; }
  .hero-links { animation-delay: 300ms; }
  .start-strip { animation-delay: 380ms; }
}
