/**
 * REFRESH
 *
 * A light-touch redesign layered over main.css + themes.light.css.
 * Palette follows the Rising Company "Daylight" theme
 * (https://design-system.rising.company/llms.txt): green ink accent,
 * Rajdhani display type, Share Tech Mono readouts. Body copy stays in Lato
 * for long-form readability, with darker text for contrast.
 */

:root {
  --bg-base: #f6f8f7;
  --bg-surface: #ffffff;
  --bg-inset: #e8f5ee;
  --border: #dde5e0;
  --border-subtle: #e6ede9;
  --text-heading: #0b1a14;
  --text-body: #26332d;
  --text-muted: #43564c;
  --text-dim: #61746b;
  --accent: #3af0a0;
  --accent-ink: #0b7a4e;
  --accent-hover: #095f3d;
  --accent-wash: #0b7a4e12;
  --accent-line: #0b7a4e45;
  --gradient: linear-gradient(90deg, #0b7a4e, #1f5fbf);
  --font-display: "Rajdhani", "Lato", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-base: #0a0c10;
    --bg-surface: #0d1117;
    --bg-inset: #0a1410;
    --border: #1a2a20;
    --border-subtle: #1a3020;
    --text-heading: #e8f4ff;
    --text-body: #c8d8e8;
    --text-muted: #9ab5a8;
    --text-dim: #7d9b8c;
    --accent-ink: #3af0a0;
    --accent-hover: #6ff7be;
    --accent-wash: #3af0a014;
    --accent-line: #3af0a050;
    --gradient: linear-gradient(90deg, #3af0a0, #2a7adf);
  }
}

/* ---------- Base ---------- */

body {
  background: var(--bg-surface);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
}

p,
li,
address {
  color: var(--text-body);
}

b,
strong {
  color: var(--text-heading);
  font-weight: 700;
}

a,
.t-link-container .t-link-container__item,
.t-link-container:hover .t-link-container__item--blended {
  color: var(--accent-ink);
}

a:hover,
a:focus,
a:active,
.t-link-container:hover .t-link-container__item {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--accent-wash);
  color: var(--accent-ink);
  padding: 0.05em 0.35em;
  border-radius: 3px;
}

hr,
.t-border-color {
  border-color: var(--border);
}

hr,
.t-border-color-bg {
  background: var(--border);
}

.fa {
  color: var(--text-dim);
}

/* ---------- Accent ---------- */

.t-primary-color,
.t-primary-color-line {
  color: var(--accent-ink);
}

.t-primary-bg,
.t-primary-color-line {
  background: var(--accent-ink);
}

.t-preloader__spinner:not(:required):before {
  border-top-color: var(--accent-ink);
  border-bottom-color: var(--accent-ink);
}

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

.t-title {
  font-family: var(--font-display);
  font-size: 5.2rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.t-title__first-word {
  color: var(--text-muted);
  font-weight: 300;
}

.t-title__second-word {
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.t-sub-title {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  margin-left: 0.2rem;
}

.c-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0 0.2rem;
  padding: 0;
  list-style: none;
}

.c-variants a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.c-variants a:hover,
.c-variants a:focus-visible {
  color: var(--accent-ink);
  border-color: var(--accent-line);
  background: var(--accent-wash);
}

.c-variants a[aria-current="page"] {
  color: var(--accent-ink);
  border-color: var(--accent-ink);
  background: var(--accent-wash);
}

.c-avatar__img {
  box-shadow:
    0 0 0 6px var(--bg-surface),
    0 0 0 7px var(--accent-line);
}

.t-social-button {
  background: transparent;
  border-color: var(--border);
}

.t-social-button .fa {
  color: var(--text-dim);
}

.t-social-button:hover {
  background: var(--accent-wash);
  border-color: var(--accent-line);
}

.t-social-button:hover .fa {
  color: var(--accent-ink);
}

.c-header__contact h4,
.c-footer h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

.t-section__header {
  background: var(--bg-base);
}

.t-section__content,
.t-section--header .t-section__header {
  background: var(--bg-surface);
}

.t-section__content-border-color {
  border-color: var(--bg-surface);
}

@media (max-width: 1023px) {
  .t-section__header {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
}

@media (min-width: 1024px) {
  .t-section,
  .t-section__header,
  .t-section--header .t-section__header,
  .t-section:nth-child(even),
  .t-section:nth-child(even) .t-section__header {
    background: var(--bg-base);
  }

  .t-section__content,
  .t-section:nth-child(even) .t-section__content {
    background: var(--bg-surface);
  }
}

.o-section__heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-heading);
}

.o-section__heading::before {
  content: "// ";
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--accent-ink);
}

.o-section__description {
  color: var(--text-muted);
}

.c-number {
  font-family: var(--font-mono);
}

.o-media__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

/* ---------- Timeline ---------- */

.t-timeline__point,
.t-section:nth-child(even) .t-timeline__point {
  box-shadow: 0 0 0 6px var(--bg-surface);
}

.c-timeline__item:first-child .c-timeline__point {
  box-shadow:
    0 0 0 6px var(--bg-surface),
    0 0 0 9px var(--accent-line);
}

.c-work__timeframe {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.c-work__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--text-heading);
}

.c-work__heading a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent-line), var(--accent-line));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

.c-work__heading a:hover {
  color: var(--accent-ink);
}

.c-work__title {
  color: var(--text-body);
  font-weight: 700;
}

.c-work__location {
  color: var(--text-dim);
}

.c-work__client {
  margin: 1.4em 0 0.4em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.a-experience-timeline li {
  margin-bottom: 0.45em;
}

.c-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1em 0 0;
  padding: 0;
  list-style: none;
}

.a-experience-timeline .c-stack li {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  padding: 2px 8px;
}

/* ---------- Projects ---------- */

.t-image-overlay {
  background: var(--bg-surface);
}

.t-image-overlay * {
  color: var(--text-heading);
}

.t-image-overlay__deco-line {
  color: var(--accent-ink);
  background: var(--accent-ink);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .c-variants {
    display: none;
  }

  .t-title__second-word {
    background: none;
    color: #0b7a4e;
  }

  .o-section__heading::before {
    content: none;
  }
}
