/* serhiidrahan.com — single shared stylesheet */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-Medium.woff2') format('woff2');
}

:root {
  --text:            #16181f;
  --text-secondary:  #474d5a;
  --text-muted:      #667085;   /* darkened from the mock's #878da0 for WCAG AA on white */
  --accent:          #3a4a8c;   /* muted slate-cobalt — the single accent */
  --accent-tint:     #edeff7;   /* thumbnail placeholder / accent wash */
  --border:          #e7e9f0;   /* hairline card/tile borders */
  --border-subtle:   #eef0f4;   /* footer + divider rules */
  --card-featured:   #fafbff;   /* featured project card background */
  --tile-media:      #f5f6fa;   /* side-tile image background */
  --radius-card:     10px;
  --radius-thumb:    8px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

svg { display: block; flex: none; }

/* ---------- rhythm ---------- */

.section { margin-top: 34px; }

.section-label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
}

/* ---------- hero ---------- */

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .09em;
}

h1 {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-line {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text-secondary);
}

.sub-line {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- social pills ---------- */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color .15s ease;
}

.pill:hover { border-color: #ccd0dd; }

.pill svg { width: 14px; height: 14px; }

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 9px;
}

.service-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.service-gloss {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- availability ---------- */

.availability {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}

.availability a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.availability a:hover { text-decoration: underline; }

/* ---------- featured card ---------- */

.featured {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card-featured);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}

.featured:hover { border-color: #ccd0dd; }

.featured-media {
  width: 120px;
  height: 80px;
  flex: none;
  border-radius: var(--radius-thumb);
  background: var(--accent-tint);
  object-fit: cover;
}

.featured-body { flex: 1 1 0; min-width: 0; }

.featured-title {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.featured-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.arrow {
  flex: none;
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

/* ---------- side tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.tile {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}

.tile:hover { border-color: #ccd0dd; }

.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--tile-media);
  object-fit: cover;
}

.tile-body { padding: 11px 12px; }

.tile-name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

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

footer {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ---------- legal pages ---------- */

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

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

.legal h1 { margin-bottom: 24px; }

.legal h2 {
  margin: 28px 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.legal p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  max-width: 62ch;
}

.link-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(8, auto);
  gap: 7px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: #c8cdda;
  text-underline-offset: 3px;
}

.link-list a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.legal .source-note {
  margin-top: 30px;
  font-size: 13px;
  color: var(--text-muted);
}

.todo {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 13px;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .link-list { grid-auto-flow: row; grid-template-rows: none; }

  .container { padding: 36px 20px; }

  .services { grid-template-columns: 1fr; }

  .tiles { grid-template-columns: 1fr; }

  .featured { flex-wrap: wrap; }

  .featured-media { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}
