/* Skaidrius — personal one-pager. System fonts, no external requests. */

:root {
  --ink: #17242a;
  --ink-soft: #4b5a60;
  --paper: #f7f4ee;
  --paper-raised: #ffffff;
  --line: #e3ddcf;
  --accent: #b08d3e;
  --accent-ink: #7a6423;
  --max: 44rem;
  --max-wide: 56rem;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
}

a {
  color: var(--accent-ink);
  transition: color 150ms ease-out;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

section + section {
  border-top: 1px solid var(--line);
}

/* Testimonials get a tonal shift instead of another hairline: a paced break
   in the rhythm rather than a fifth identical divider. */
#clients {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin: 0 0 1.5rem;
  position: relative;
  padding-top: 1.1rem;
}

h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

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

h3 a:hover {
  color: var(--accent-ink);
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--max);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  margin-bottom: 1.25rem;
}

/* Section labels: a quieter, non-repeating cadence than the hero's eyebrow —
   italic serif caption, not an uppercase tracked kicker on every section. */
.section-label {
  display: block;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent-ink);
}

.brand-mark {
  flex: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-ink);
  transition: background 180ms ease-out;
}

/* Hero */
.hero {
  padding-top: clamp(3.5rem, 10vw, 6rem);
}

/* Arc / narrative — a drop cap on the opening line signals "this is
   written," the one editorial flourish on the page. */
.arc {
  max-width: var(--max);
}

.arc p {
  font-size: clamp(1rem, 2vw, 1.08rem);
}

.arc p:first-of-type::first-letter {
  float: left;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 3.4rem;
  line-height: 0.82;
  font-weight: 700;
  padding: 0.05em 0.08em 0 0;
  color: var(--accent-ink);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

/* Career-arc timeline: thin line, small markers, serif labels. A second
   dashed thread runs underneath the first three stops to show the software
   writing overlapped in time rather than following after. */
.timeline {
  margin-top: 3rem;
  max-width: var(--max-wide);
}

.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1rem;
}

.timeline-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: var(--line);
}

.timeline-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.timeline-dot {
  flex: none;
}

.timeline-label {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.timeline-node-current .timeline-label {
  color: var(--ink);
  font-weight: 700;
}

.timeline-parallel {
  position: relative;
  margin-top: 2rem;
  padding-top: 1.1rem;
  width: 75%;
}

.timeline-parallel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-image: linear-gradient(to right, var(--accent) 60%, transparent 0%);
  background-size: 7px 1px;
  background-repeat: repeat-x;
  opacity: 0.55;
}

.timeline-parallel-label {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .timeline-grid {
    grid-template-columns: 20px 1fr;
    row-gap: 1.5rem;
    column-gap: 0.9rem;
  }

  .timeline-grid::before {
    left: 9px;
    top: 0;
    bottom: 0;
    right: auto;
    width: 1px;
    height: auto;
  }

  .timeline-node {
    display: contents;
  }

  .timeline-node .timeline-dot {
    margin-top: 0.2rem;
  }

  .timeline-node .timeline-label {
    text-align: left;
  }

  .timeline-parallel {
    width: auto;
    padding-left: 1.75rem;
    padding-top: 0;
    margin-top: 1.75rem;
  }

  .timeline-parallel::before {
    top: 0.5em;
    left: 0;
    width: 14px;
    right: auto;
    background-image: linear-gradient(to bottom, var(--accent) 60%, transparent 0%);
    background-size: 1px 7px;
    transform: rotate(90deg);
    transform-origin: left top;
  }
}

/* Product screenshots: abstract, editorial browser-chrome frame — three
   quiet dots, not a real UI mock. */
.now-card-shot {
  display: block;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
}

.now-card-shot-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.now-card-shot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.now-card-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Scroll reveal: quiet fade + slight rise, staggered on pull-quotes. */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.quote.reveal {
  transition-delay: calc(var(--i, 0) * 100ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Faint paper-grain texture: barely perceptible warmth on the two longest
   reading sections, not decoration that draws the eye. */
#arc,
.hero {
  position: relative;
}

#arc::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#arc > .wrap,
.hero > .wrap {
  position: relative;
  z-index: 1;
}

/* Now: an index of two, not a card grid — a neutral divider between
   columns rather than boxed chrome on both. */
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
  margin-top: 1.75rem;
}

.now-card {
  padding: 0;
}

.now-card + .now-card {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

@media (min-width: 641px) {
  .now-card + .now-card {
    border-top: none;
    border-left: 1px solid var(--line);
    padding-top: 0;
    padding-left: 2.5rem;
  }
}

.now-card p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.now-link {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.now-link:hover {
  text-decoration: underline;
}

/* Client quotes */
.quote-list {
  display: grid;
  margin-top: 1.75rem;
  max-width: var(--max);
}

/* Pull quotes, not testimonial cards — no box, no side-stripe accent.
   A single oversized mark carries the "quote" signal instead. */
.quote {
  margin: 0;
  position: relative;
  padding-left: 2.25rem;
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.4rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}

.quote + .quote {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
}

.quote figcaption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-header .wrap {
    flex-wrap: wrap;
  }
  .site-nav {
    gap: 0.9rem;
    flex-wrap: wrap;
  }
}
