/* CV page (obentti.ozbit.ca) in the Ozbit News style.
   Loaded after news.css, which supplies the two themes (--news-* tokens),
   the header, theme button and footer. This file restyles the CV's own
   parts the same way: paper background, black ink, serif headings,
   thin and double rules, no cards, shadows, gradients or round corners.
   Only --news-* colours are used, so both themes follow the toggle and
   the OS dark-mode overrides in responsive.css have no effect here. */

/* Header: no shadow or blur when scrolled, like the news pages. */
.header,
.header--scrolled {
  background: var(--news-bg);
  box-shadow: none;
  backdrop-filter: none;
}

.nav {
  padding: var(--spacing-4) 0;
}

.nav__links {
  gap: var(--spacing-6);
}

.nav__link::after,
.nav__logo a::after {
  display: none;
}

.nav__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav__toggle {
  color: var(--news-ink);
}

.nav__mobile {
  background: var(--news-bg);
  border-bottom: 1px solid var(--news-rule-light);
  box-shadow: none;
  border-radius: 0;
}

.nav__mobile-link {
  color: var(--news-body);
  border-bottom-color: var(--news-rule-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav__mobile-link:hover {
  color: var(--news-accent);
}

/* Masthead: the name as the paper's title, the role under it. */
.hero {
  min-height: 0;
  display: block;
  padding: var(--spacing-12) 0 var(--spacing-8);
  text-align: center;
  background: var(--news-bg);
  border-bottom: var(--news-masthead-rule);
}

.hero__content {
  max-width: 760px;
  margin: 0 auto;
}

.hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--news-muted);
  margin: 0 0 var(--spacing-5);
}

.hero__name {
  display: block;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  line-height: 1;
  color: var(--news-ink);
  margin-bottom: var(--spacing-3);
}

.hero__title br {
  display: none;
}

.hero__description {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--news-body);
}

/* Sections: a serif heading over a double rule, like a topic title. */
.section {
  padding: var(--spacing-10) 0;
  background: var(--news-bg);
}

.section__header {
  margin-bottom: var(--spacing-8);
}

.section__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--news-ink);
  margin: 0 0 var(--spacing-3);
  padding-bottom: var(--spacing-4);
  border-bottom: 3px double var(--news-rule);
}

.section__subtitle {
  color: var(--news-muted);
  font-size: 0.95rem;
}

/* About: text column beside the skills. */
.about__text,
.about__text:first-child {
  color: var(--news-body);
  font-size: 1rem;
  line-height: 1.7;
}

.about__text:first-child {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--news-ink);
}

/* Skills: flat entries separated by light rules, like story cards. */
.skills {
  gap: var(--spacing-6);
}

.skill-card,
.skill-card:hover {
  background: none;
  border: none;
  border-top: 1px solid var(--news-rule-light);
  border-radius: 0;
  box-shadow: none;
  transform: none;
  padding: var(--spacing-4) 0 0;
  text-align: left;
}

.skill-card__icon {
  font-size: 1.1rem;
  color: var(--news-accent);
  margin-bottom: var(--spacing-2);
}

.skill-card__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  color: var(--news-ink);
}

.skill-card__description {
  color: var(--news-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Experience: one column of entries, newest first, each under a rule.
   The centre line, dots and alternating sides are gone. */
.timeline {
  max-width: 860px;
  padding: 0;
}

.timeline::before,
.timeline__item::after {
  display: none;
}

.timeline__item,
.timeline__item:nth-child(odd),
.timeline__item:nth-child(even) {
  width: 100%;
  left: 0;
  padding: 0;
  text-align: left;
}

.timeline__content,
.timeline__content:hover {
  background: none;
  border: none;
  border-top: 1px solid var(--news-rule-light);
  border-radius: 0;
  box-shadow: none;
  transform: none;
  padding: var(--spacing-6) 0;
}

.timeline__item:first-child .timeline__content {
  border-top: none;
  padding-top: 0;
}

.timeline__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--news-ink);
}

.timeline__date {
  color: var(--news-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline__company {
  color: var(--news-muted);
  font-weight: 600;
}

.timeline__company a {
  color: var(--news-accent);
}

/* The descriptions are written with line breaks between points. */
.timeline__description {
  color: var(--news-body);
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-line;
}

/* Contact form: square fields on the paper, ink labels, flat button. */
.form-group__label {
  color: var(--news-ink);
}

.form-group__input,
.form-group__textarea {
  background: var(--news-bg);
  color: var(--news-ink);
  border: 1px solid var(--news-rule-light);
  border-radius: 0;
}

.form-group__input:focus,
.form-group__textarea:focus {
  border-color: var(--news-accent);
  box-shadow: none;
  outline: 2px solid var(--news-accent);
  outline-offset: 1px;
}

.form-group__suggest {
  color: var(--news-accent);
}

.contact-form .btn--primary,
.contact-form .btn--primary:hover {
  background: var(--news-ink);
  border-color: var(--news-ink);
  color: var(--news-bg);
  border-radius: 0;
  box-shadow: none;
  transform: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.contact-form .btn--primary:hover {
  background: var(--news-accent);
  border-color: var(--news-accent);
}

/* Footer LinkedIn link in the news footer colours. */
.footer__linkedin {
  color: var(--news-muted);
}

.footer__linkedin:hover,
.footer__linkedin:focus-visible {
  color: var(--news-accent);
}

@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-8) 0 var(--spacing-6);
  }

  .section {
    padding: var(--spacing-8) 0;
  }

  .timeline__title {
    font-size: 1.2rem;
  }
}
