:root {
  --font-body: 'Segoe UI', sans-serif;
  --font-heading: 'Segoe UI Semibold', sans-serif;

  --color-bg: #ceff1a;             /* Syvä, tumma violetti tausta */
  --color-text: #1b2d2a;           /* Lähes valkoinen teksti */
  --color-heading: #414066;        /* Puhdas valkoinen otsikoille */
  --color-accent: #aaa95a;         /* Kirkas violetti korostus */
  --color-accent-light: #82816d;   /* Vaaleampi violetti hovereihin */
  --color-link: #414066;           /* Vaalea violetti linkeille */
  --color-focus: #ffeb3b;          /* Keltainen fokusväriksi (esteettinen + saavutettava) */

  --radius: 0.5rem;
  --space: 1rem;
  --max-width: 72ch;
}

/* Yleisasettelu */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Keskittävä kontti */
.container, .content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Otsikot */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-heading);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-top: 0;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Slogani */
.slogan {
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Linkit */
a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-accent);
  text-decoration: none;
}

/* Painikkeet */
button, .button, input[type="submit"] {
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.button:hover {
  background-color: var(--color-accent-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* Navigointi */
nav {
  background-color: white;
  border-bottom: 1px solid #ddd;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
}

nav a {
  color: var(--color-heading);
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
  position: absolute;
  bottom: -2px;
  left: 0;
}

nav a:hover::after,
nav a:focus::after {
  width: 100%;
}

/* Kortit / laatikot */
.card {
  background-color: #1b2d2a;
  border: 0px solid #82816d;
  border-radius: var(--radius);
  color: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h3{
  color: #ceff1a;																
}
																
/* Listat ja kappaleet */
p, ul, ol {
  margin-bottom: 1.2rem;
  hyphens: auto;
  word-break: break-word;
}

/* Lomakkeet */
input, textarea, select {
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  background-color: white;
  color: var(--color-text);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Responsiivisuus */
@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Näkymätön ruudunlukijoille */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
																			
																			
.site-header {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-logo {
  max-width: 200px;
  height: auto;
  display: block;
}
																			
.footer{
  box-sizing: border-box;
  width: 100%;
  background-color: #1b2d2a;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  margin: 0;
}

.footer a {
  color: var(--color-accent-light);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-logo {
    max-width: 140px;
  }

  .site-header {
    padding: 1rem;
  }
}

