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

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #2E3192;
  --red: #ED1C24;
  --magenta: #9F1F63;
  --grey: #737373;
  --ground: #FFFFFF;
  --frame-bg: #F6F6F9;
  --frame-border: #E8E8ED;
  --rule: #E2E2E7;
}

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

html {
  font-size: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: #333;
  background: var(--ground);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================================================
   HEADER
   ================================================================ */

.site-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--navy);
}

.header-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-mark {
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--red);
}

/* ================================================================
   MAIN
   ================================================================ */

main {
  flex: 1;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  width: 100%;
}

/* ================================================================
   HERO (Home)
   ================================================================ */

.hero {
  position: relative;
  padding: 3rem 0 2rem;
  overflow: hidden;
}

.bar-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  max-width: 28rem;
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
  max-width: 40rem;
}

.lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

/* ================================================================
   SPOT ILLUSTRATIONS
   Small line drawings — modest, integrated with text
   ================================================================ */

.spot-illustration {
  display: block;
  max-width: 160px;
  height: auto;
  margin: 0.5rem auto 1.25rem;
}

/* ================================================================
   IMAGE FRAMES
   Fixed-aspect containers for product screenshots
   ================================================================ */

.img-frame {
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  border-radius: 6px;
  overflow: hidden;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 40rem;
  padding: 0.625rem;
}

.img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
}

.img-frame--platform {
  aspect-ratio: 16 / 9;
}

.img-frame--test {
  aspect-ratio: 1212 / 628;
}

.img-frame--pair {
  aspect-ratio: 548 / 322;
}

.img-pair {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
  max-width: 40rem;
}

.img-pair .img-frame {
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* Evrisia wordmark */
.evrisia-wordmark {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 1.5rem 0 2rem;
}

/* ================================================================
   LINKS
   ================================================================ */

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

a:hover {
  color: var(--red);
}

/* ================================================================
   LISTS — navy bar markers
   ================================================================ */

.values-list {
  list-style: none;
  margin-top: 1rem;
}

.values-list li {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  position: relative;
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 10px;
  height: 3px;
  border-radius: 1px;
  background: var(--navy);
}

.values-list strong {
  color: var(--navy);
  font-weight: 700;
}

/* ================================================================
   PROJECTS
   ================================================================ */

.project-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.project-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ================================================================
   NEWS
   ================================================================ */

.news-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.news-item:first-of-type {
  padding-top: 0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.015em;
}

.news-item p {
  margin-bottom: 0;
  color: #444;
  line-height: 1.6;
}

/* ================================================================
   PROVENANCE NOTE
   ================================================================ */

.provenance-note {
  font-size: 0.8125rem;
  color: var(--grey);
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: 40rem;
}

/* ================================================================
   MEASUREMENT LIST — two columns on desktop
   ================================================================ */

.measurement-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  max-width: 40rem;
}

.measurement-list li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  break-inside: avoid;
}

.measurement-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 10px;
  height: 3px;
  border-radius: 1px;
  background: var(--navy);
}

/* ================================================================
   TEST BLOCKS — details/summary disclosure
   ================================================================ */

.test-block {
  border-top: 1px solid var(--rule);
}

.test-block:last-child {
  border-bottom: 1px solid var(--rule);
}

.test-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}

.test-summary::-webkit-details-marker {
  display: none;
}

.test-summary::before {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-top: -2px;
}

details[open] > .test-summary::before {
  transform: rotate(45deg);
  margin-top: 2px;
}

.test-summary h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.test-content {
  padding-bottom: 1.5rem;
}

/* Physical test section — grey accent */
.test-physical {
  border-left: 3px solid #C8C8CE;
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.test-physical .test-label {
  color: var(--grey);
}

/* Evrisia section — navy accent */
.test-evrisia {
  border-left: 3px solid var(--navy);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.test-evrisia .test-label {
  color: var(--navy);
}

.test-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.test-list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  max-width: 40rem;
}

.test-list li {
  padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
  line-height: 1.6;
}

.test-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 10px;
  height: 3px;
  border-radius: 1px;
  background: var(--navy);
}

/* Images inside test-evrisia — inherit the frame */
.test-evrisia .img-frame {
  margin-left: -1.25rem;
  margin-left: 0;
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 2px solid var(--navy);
  text-align: center;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--grey);
  margin: 0 auto 0.25rem;
  max-width: 40rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--grey);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--navy);
}

/* ================================================================
   404
   ================================================================ */

.not-found {
  text-align: center;
  padding: 4rem 1.5rem;
}

.not-found h1 {
  color: var(--navy);
}

/* ================================================================
   DESKTOP — 768px+
   ================================================================ */

@media (min-width: 48rem) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  main {
    padding: 3.5rem 2rem 4rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-tagline {
    font-size: 3rem;
    max-width: 32rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .spot-illustration {
    float: right;
    margin: 0.25rem 0 1.25rem 2rem;
    max-width: 200px;
  }

  .measurement-list {
    columns: 2;
    column-gap: 2.5rem;
  }

  .img-pair {
    flex-direction: row;
  }
}
