/* slanesens.com
   One stylesheet for index.html and 404.html. Values are lifted 1:1 from the
   original inline styles; layout fixes are marked "fix:". */

:root {
  --navy: #16213A;
  --ink: #1E2533;
  --muted: #5B6475;
  --accent: #4A6FA5;
  --accent-on-dark: #9DB8E0;
  --mist: #F3F5F8;
  --line: #E2E6EC;
  --line-strong: #D3D9E2;
  --on-dark: #F5F7FA;
  --on-dark-muted: #C9CEDA;
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.5;
}

a { color: inherit; }
a:hover { opacity: .8; }

img, picture, svg { display: block; }

.accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Small uppercase label above headings ("01 / About") */
.eyebrow {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow--on-dark { color: var(--accent-on-dark); }

.section-title {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--navy);
}

/* Underlined text links ("kthais.com ↗", "GitHub ↗") */
.text-link {
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--accent);
}
.text-link--muted { color: var(--muted); border-bottom-color: var(--line-strong); }

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: .5rem;
}

.list-reset { margin: 0; padding: 0; list-style: none; }

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

.site-header { background: #FFFFFF; color: var(--navy); }

.site-nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: .9375rem;
}
.nav-links a { color: var(--muted); text-decoration: none; }

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

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4rem 2rem 7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  color: var(--navy);
}

.hero-text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--navy);
}

.hero-tagline {
  margin: 0;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--navy);
  max-width: 34rem;
}

.hero-lede {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--outline { border: 1px solid var(--navy); color: var(--navy); }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: .875rem;
  margin-top: 1rem;
}
.hero-links a { color: var(--muted); }

.hero-portrait {
  flex: 1 1 340px;
  max-width: 440px;
  min-width: 0;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  object-fit: cover;
  background: var(--mist);
}

/* ---------- About ---------- */

.about { background: var(--mist); color: var(--navy); }

.about-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6rem 2rem 7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-text p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34rem;
}

/* fix: never more than two columns (was 3 + 1 between ~820 and ~1070 px wide);
   one column once a tile would drop below 240px. */
.about-tiles {
  flex: 1 1 500px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 240px), calc((100% - 1rem) / 2)), 1fr));
  align-items: stretch;
  gap: 1rem;
}
@media (min-width: 640px) { .about-tiles { grid-auto-rows: 1fr; } }

.tile-label {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}

.tile-feature {
  min-width: 0;
  min-height: 17rem;
  border-radius: 24px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 1.75rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.tile-feature-body { display: flex; flex-direction: column; gap: .75rem; }
.tile-feature-title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.tile-feature-cta { margin: 0; font-size: .9375rem; line-height: 1.5; }
.tile-feature-cta a {
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #FFFFFF;
}

.tile {
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tile-media {
  height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-media--kth { height: 7rem; background: #154697; }
.tile-media--music { background: var(--navy); padding: 0 1rem; }
.tile-media--music svg { width: 100%; height: 6rem; }

.tile-photo img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  object-position: 50% 52%;
}

.tile-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1 1 auto;
}
.tile-body .tile-label { color: var(--muted); }
.tile-body h3 { margin: 0; font-size: 1.125rem; font-weight: 500; color: var(--navy); }
.tile-body p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.tile-body .text-link { align-self: flex-start; margin-top: .25rem; font-size: .875rem; padding-bottom: 0; }
.tile-body .text-link--icon {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-bottom: .125rem;
}

/* ---------- Sections with a plain wrapper ---------- */

.section-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7rem 2rem;
}

/* ---------- Experience timeline ---------- */

.experience { background: #FFFFFF; }
.experience .section-title { margin-top: 1.25rem; max-width: 48rem; }

/* Every row shares the same three columns: date | rail | entry */
.timeline,
.timeline-item {
  display: grid;
  grid-template-columns: minmax(72px, 150px) 24px minmax(0, 1fr);
  column-gap: 1.5rem;
}
.timeline { margin-top: 4rem; }
.timeline-list { grid-column: 1 / -1; }

.timeline-heading {
  grid-column: 3;
  margin: 2rem 0;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.timeline-heading:first-child { margin-top: 0; }

.timeline-date {
  margin: 0;
  font-size: .875rem;
  color: var(--muted);
  padding-top: .3rem;
}

.timeline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-rail::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .45rem;
}
.timeline-rail::after {
  content: "";
  flex: 1 1 auto;
  width: 1px;
  background: var(--line-strong);
  margin-top: .25rem;
}
.timeline-item:last-child .timeline-rail::after { display: none; }

.timeline-body {
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.timeline-item:last-child .timeline-body { padding-bottom: 2.5rem; }

.timeline-body h4 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--navy);
}
.timeline-body h4 .at { color: var(--muted); font-weight: 400; }
.timeline-body p { margin: 0; font-size: .9375rem; line-height: 1.6; max-width: 56rem; }
.timeline-body strong { font-weight: 700; color: var(--navy); }

.timeline-cv { grid-column: 3; justify-self: start; }

/* fix: on phones the date column squeezed entries to one word per line.
   Below 640px the date sits above the entry and the rail runs alongside. */
@media (max-width: 639.98px) {
  .timeline,
  .timeline-item {
    grid-template-columns: 11px minmax(0, 1fr);
    column-gap: 1.25rem;
  }
  .timeline-heading,
  .timeline-cv { grid-column: 2; }
  .timeline-date { grid-column: 2; grid-row: 1; padding-top: 0; margin-bottom: .375rem; }
  .timeline-rail { grid-column: 1; grid-row: 1 / span 2; }
  .timeline-rail::before { margin-top: .3rem; }
  .timeline-body { grid-column: 2; grid-row: 2; padding-bottom: 2.5rem; }
}

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

.projects { background: var(--mist); }

.section-header { display: flex; flex-direction: column; gap: 1.25rem; }

.projects-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.flagship {
  margin-top: 3.5rem;
  background: var(--navy);
  color: var(--on-dark);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.flagship-text {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.flagship-text h3 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}
.flagship-tagline { margin: 0; font-size: 1.25rem; line-height: 1.4; max-width: 26rem; }
.flagship-desc {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
  max-width: 28rem;
}
.flagship .text-link { color: var(--on-dark); border-bottom-color: var(--accent-on-dark); }
.flagship .text-link--muted { color: var(--on-dark-muted); border-bottom-color: rgba(245, 247, 250, .3); }

.browser {
  margin: 0;
  flex: 1 1 460px;
  min-width: 0;
  background: var(--mist);
  border-radius: 16px;
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.browser-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-url { margin-left: .75rem; font-size: .75rem; color: var(--muted); }
.browser img { width: 100%; height: auto; }

.project-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.5rem;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-visual {
  height: 18rem;
  padding: 1.75rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.card-body h3 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--navy);
}
.card-body p { margin: 0; font-size: .9375rem; line-height: 1.6; max-width: 30rem; }

/* DouzeBets artwork */
.visual-douze {
  justify-content: space-between;
  background:
    radial-gradient(120% 130% at 0% 100%, #B042B8 0%, rgba(132, 50, 160, .85) 28%, rgba(58, 24, 114, 0) 62%),
    linear-gradient(115deg, #5B2890 0%, #3A1872 32%, #1C2A86 62%, #071A70 82%, #020F55 100%);
}
.douze-flags { display: flex; gap: .5rem; }
.douze-flags span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: #D9D4E2;
}
.douze-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.douze-wordmark {
  font-weight: 700;
  font-size: 1.75rem;
  line-height: .95;
  letter-spacing: -.03em;
  color: #F5F5F7;
}
.douze-12 {
  font-size: 9rem;
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.04em;
  display: inline-block;
  padding: .04em .1em .02em 0;
  background: linear-gradient(90deg, #DC2B9B 0%, #A333C1 30%, #7C3ADF 55%, #4566DA 80%, #3185E9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* AI Daily artwork */
.visual-news {
  background: #F7F5EF;
  padding: 1.75rem 2rem;
  gap: .875rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: #141414;
}
.news-masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  padding-bottom: .75rem;
  border-bottom: 3px double #2A2A2A;
}
.news-name { font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.news-strap { font-size: .875rem; font-style: italic; color: #4A4A4A; }
.news-lines { display: flex; flex-direction: column; gap: .5rem; }
.news-lines span { display: block; height: 6px; border-radius: 3px; background: #CFCAC0; }
.news-lines span:nth-child(1) { width: 28%; background: #B9B4AA; }
.news-lines span:nth-child(2),
.news-lines span:nth-child(3) { height: 12px; border-radius: 4px; background: #2A2A2A; }
.news-lines span:nth-child(2) { width: 88%; }
.news-lines span:nth-child(3) { width: 64%; }
.news-lines span:nth-child(4) { width: 96%; margin-top: .25rem; }
.news-lines span:nth-child(5) { width: 92%; }
.news-lines span:nth-child(6) { width: 70%; }

/* ---------- Contact / footer ---------- */

.site-footer { background: var(--navy); color: var(--on-dark); }

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-title {
  color: inherit;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.06;
  max-width: 52rem;
}

.contact-cta {
  align-self: flex-start;
  color: var(--on-dark);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  text-decoration: none;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--accent-on-dark);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: .9375rem;
}
.contact-links a { color: var(--on-dark-muted); }

.footer-meta {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 247, 250, .15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8125rem;
  color: #AEB6C6;
}

/* ---------- 404 ---------- */

.notfound {
  max-width: calc(var(--wrap) + 4rem);
  margin: 0 auto;
  padding: 4rem 2rem 7rem;
  flex: 1 0 auto;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  color: var(--navy);
}
.footer-inner--compact { padding-top: 0; }
.footer-inner--compact .footer-meta { margin-top: 0; border-top: 0; padding-top: 3rem; }
.footer-meta a { color: inherit; }
.page-notfound { min-height: 100vh; display: flex; flex-direction: column; }
