/* Svensk läsmetod — one stylesheet for the whole site.
   Replaces the Dreamweaver "twoColFixLtHdr" template: that one pinned the page
   at 780px for 800x600 screens, which is why the text column was a narrow
   ribbon on anything modern. Layout is CSS grid, so the sidebar simply stacks
   on phones and no fixed pixel width has to be maintained anywhere. */

:root {
  --ink: #1c1c1a;
  --muted: #55534d;
  --line: #d8d4c8;
  --band: #eceadf;
  --paper: #fffdf7;
  --link: #1d5c3f;
  --link-hover: #123f2a;
}

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

body {
  margin: 0;
  padding: 0 1rem;
  background: var(--band);
  color: var(--ink);
  /* Georgia for the running text: this is a site about reading, and a serif is
     easier on long prose than the old Verdana. */
  font: 1.125rem/1.75 Georgia, "Times New Roman", serif;
}

#container {
  /* 68rem total, ~17rem of it sidebar: the text column lands near 700px against
     the old template's ~490px, without the measure running past what is readable. */
  max-width: 68rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: none;
  border-bottom: none;
}

#header {
  background: var(--band);
  border-bottom: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
}

#header p { margin: 0; }
#header .title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
}
#header .subtitle {
  margin-top: 0.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: var(--muted);
}

/* Sidebar left, text right; one column below 60rem. */
#page {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 60rem) {
  #page { grid-template-columns: minmax(0, 1fr); }
  #sidebar { border-right: none; border-bottom: 1px solid var(--line); }
}

#sidebar {
  background: var(--band);
  border-right: 1px solid var(--line);
  padding: 1.75rem clamp(1rem, 2vw, 1.5rem);
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

#sidebar h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
#sidebar h3:first-child { margin-top: 0; }

#sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#sidebar li { margin: 0.6rem 0; }
#sidebar img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.35rem;
}

#sidebar hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

#main {
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  /* Cap the measure, not the page: ~70 characters is the readable line length,
     the surrounding page can stay as wide as the screen allows. */
  max-width: 48rem;
}

#main > :first-child { margin-top: 0; }
#main p { margin: 0 0 1.4rem; }

h1, h2 {
  font-weight: 700;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }

.lead { font-size: 1.25rem; }
.byline { font-size: 0.95rem; color: var(--muted); }

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

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

figure { margin: 2rem 0; }
figure img { border: 1px solid var(--line); }
figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

#footer {
  background: var(--band);
  border-top: 1px solid var(--line);
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
}
#footer p { margin: 0; }

/* ── Form (kontakt.html) ─────────────────────────────────────────── */

.field {
  display: block;
  margin-bottom: 1.25rem;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
}

.field textarea { min-height: 14rem; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: var(--link);
  color: #fff;
  font: 600 1rem/1 system-ui, "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--link-hover); color: #fff; }

/* Honeypot — the backend drops any submission that fills this in. Hidden from
   people, still in the DOM for the bots that fill every field they find. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
