/* ==========================================================================
   vakkilainen.net — static rebuild (v1)
   Recreates the look-and-feel of the original WordPress Twenty Seventeen
   site (dark colour scheme, full-bleed header, two-column body layout).
   No frameworks. Single stylesheet.
   ========================================================================== */

/* ---------- Custom properties ----------------------------------------- */
:root {
  /* Twenty Seventeen "colors-dark" palette, approximated */
  --bg-page:       #222;          /* page body */
  --bg-content:    #1a1a1a;        /* content wrapper */
  --bg-elevated:   #2a2a2a;
  --fg-text:       #ddd;           /* body text */
  --fg-muted:      #aaa;
  --fg-heading:    #fff;
  --fg-link:       #9adcff;
  --fg-link-hover: #ffffff;
  --accent-cyan:   #ccffff;        /* original home-headline inline colour */
  --rule:          #333;

  --font-sans: "Libre Franklin", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
               "Helvetica Neue", sans-serif;

  --max-content: 1200px;
  --max-prose:   740px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
}

/* ---------- Base / reset (light) -------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--fg-text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--fg-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover,
a:focus { color: var(--fg-link-hover); }

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* ---------- Skip link (accessibility) --------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-cyan);
  color: #000;
  padding: var(--space-1) var(--space-2);
  z-index: 100;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ---------- Site header ----------------------------------------------- */
/*
   The original Twenty Seventeen header is a full-bleed image with the
   site title + tagline overlaid (dark scheme = white text).
   We do this with a <picture> for responsiveness and a flex layout that
   sits the title block over the image via CSS Grid stacking.
*/
.site-header {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.site-header__media {
  display: block;
  width: 100%;
}
.site-header__media img {
  width: 100%;
  height: auto;
  /* Slight darken to lift overlay text contrast (WCAG AA) */
  filter: brightness(0.65);
}

.site-header__brand {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.site-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.25em;
  line-height: 1.1;
}
.site-title a {
  color: inherit;
  text-decoration: none;
}
.site-title a:hover,
.site-title a:focus { color: var(--accent-cyan); }

.site-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-style: italic;
  margin: 0;
  opacity: 0.9;
}

/* ---------- Top navigation -------------------------------------------- */
.site-nav {
  background: var(--bg-content);
  border-bottom: 1px solid var(--rule);
}
.site-nav__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-1) var(--space-3);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.site-nav a {
  display: inline-block;
  padding: var(--space-1) 0;
  text-decoration: none;
  color: var(--fg-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a:focus { color: var(--accent-cyan); }
.site-nav [aria-current="page"] {
  color: var(--accent-cyan);
}

/* ---------- Main content ---------------------------------------------- */
.site-main {
  background: var(--bg-content);
  padding: var(--space-6) var(--space-3);
  min-height: 40vh;
}

/*
   Two-column body layout (matches Twenty Seventeen `page-two-column`):
   the entry-title sits in the left column on wide viewports, the body
   sits in the right column. Collapses to single column on narrow.
*/
.entry {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .entry {
    grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
    gap: var(--space-5);
  }
}

.entry-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--fg-heading);
  margin: 0;
  line-height: 1.2;
}

.entry-content {
  max-width: var(--max-prose);
}
.entry-content h2 {
  font-size: 1.5rem;
  color: var(--fg-heading);
  margin: var(--space-5) 0 var(--space-2);
  line-height: 1.25;
}
.entry-content h3 {
  font-size: 1.15rem;
  color: var(--fg-heading);
  margin: var(--space-4) 0 var(--space-1);
}
.entry-content p { margin: 0 0 var(--space-2); }
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-3) 0;
}

/* ---------- Home / front-page panel ----------------------------------- */
/*
   Single-panel home, matching the existing site (one Twenty Seventeen
   front-page panel only). Centred skull logo + cyan welcome lines.
*/
.front-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-3) 0;
}
.front-panel__logo {
  width: 120px;
  height: 114px;
  margin-bottom: var(--space-3);
}
.front-panel__welcome {
  color: var(--accent-cyan);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
}
.front-panel__sub {
  color: var(--accent-cyan);
  font-style: italic;
  margin: 0.25em 0 0;
}

/* On the home page we use a single column (no left-rail title). */
.entry--home {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Footer ---------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-page);
  padding: var(--space-3);
  color: var(--fg-muted);
  font-size: 0.85rem;
  text-align: center;
}
.site-footer a { color: var(--fg-muted); }
.site-footer a:hover,
.site-footer a:focus { color: var(--fg-link-hover); }
</content>
</invoke>