/* Klocklös i Tiden – modern kulturtidning med lite busig attityd */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; background: #e9e4da; color: #292722;
  font: 16px/1.7 Arial, Helvetica, sans-serif;
}
a { color: #a34f36; text-decoration: none; transition: color .18s ease, background-color .18s ease; }
a:hover { color: #d07836; text-decoration: underline; }

#wrap {
  width: min(1120px, calc(100% - 36px)); margin: 28px auto;
  background: #f8f5ee; box-shadow: 0 12px 38px rgba(38,32,24,.10);
}
#header {
  min-height: 205px; padding: 34px 48px 26px; background: #252521;
  color: #f8f5ee; position: relative; overflow: hidden;
}
/* Klocka i sidhuvudet: urtavla, markeringar och visare */
#header::after {
  content: ""; position: absolute; width: 154px; height: 154px;
  right: 52px; top: 25px; border: 8px solid #d28a45; border-radius: 50%;
  background:
    radial-gradient(circle at center, #d28a45 0 4px, transparent 4.5px),
    repeating-conic-gradient(from 0deg, #f8f5ee 0deg 1.5deg, transparent 1.5deg 30deg),
    #252521;
  box-shadow: 0 0 0 5px rgba(210,138,69,.12);
  pointer-events: none;
}
#header::before {
  content: ""; position: absolute; z-index: 1; width: 5px; height: 49px;
  right: 126px; top: 53px; border-radius: 5px; background: #f8f5ee;
  transform: rotate(38deg); transform-origin: 50% 100%;
  box-shadow: 0 35px 0 -1px #f8f5ee;
  pointer-events: none;
}
#header h1 {
  position: relative; z-index: 2; margin: 0; padding: 0;
  font-family: Impact, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(42px, 7vw, 76px); font-weight: 900; line-height: .98;
  letter-spacing: 2.5px; text-transform: uppercase; color: #f8f5ee;
}
#header h1 a, #header h1 a:hover { color: #f8f5ee; text-decoration: none; border: 0; }
#header h2 {
  position: relative; z-index: 2; margin: 13px 0 0; padding: 0;
  color: #e8a45e; font: italic 20px Georgia, "Times New Roman", serif;
}

/* Meny */
#menu { min-height: 48px; height: auto; line-height: normal; background: #a34f36; border-bottom: 5px solid #d28a45; }
#menu ul { display: flex; flex-wrap: wrap; align-items: stretch; list-style: none; margin: 0; padding: 0 30px; }
#menu ul li { display: block; float: none; margin: 0; }
#menu ul li a {
  display: block; padding: 15px 13px 13px; color: #fffaf2;
  font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
}
#menu ul li a:hover { color: #252521; background: #e8a45e; text-decoration: none; }

/* Innehåll */
#contentwrap { display: flow-root; padding: 34px 36px 42px; background: #f8f5ee; }
#content {
  float: right; width: calc(100% - 286px); margin-top: 0;
  color: #39362f; font-size: 16px; line-height: 1.75; overflow-wrap: break-word;
}
#content h2 {
  margin: 0 0 12px; padding: 0; color: #292722;
  font: 700 clamp(23px, 3vw, 30px)/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -.6px;
}
#content h2 a { color: #292722; text-decoration: none; box-shadow: inset 0 -4px 0 #e8a45e; }
#content h2 a:hover { color: #a34f36; box-shadow: inset 0 -4px 0 #a34f36; }
#content h3 { margin: 24px 0 8px; color: #292722; font: 700 20px Georgia, "Times New Roman", serif; }
#content p { padding: 0 0 10px; margin: 0 0 12px; color: #39362f; }
#content ul { padding: 0 20px 10px 30px; color: #39362f; }
#content img {
  max-width: 100%; height: auto; border-radius: 12px;
  display: inline-block;
}
#content hr { height: 1px; margin: 30px 0 28px; border: 0; background: #d9d0c2; }

/* Sidospalt */
#sidebar {
  float: left; width: 250px; margin-top: 0; padding: 20px 20px 16px;
  background: #eee8dc; border: 0; border-top: 5px solid #6d806b;
  color: #39362f; font-size: 13px; line-height: 1.55; overflow-wrap: break-word;
}
#sidebar p { padding: 0 0 10px; margin: 0 0 12px; color: #39362f; }
#sidebar b, #sidebar strong { color: #292722; }
#sidebar a { color: #8e4934; }
#sidebar a:hover { color: #d07836; }
#sidebar input[type="text"], #sidebar input[type="search"] {
  width: 100%; max-width: 100%; margin: 6px 0; padding: 9px 10px;
  border: 1px solid #c9bead; border-radius: 3px; background: #fffdf8;
  color: #292722; font: inherit;
}
#sidebar input[type="submit"] {
  padding: 8px 14px; border: 0; border-radius: 3px;
  background: #a34f36; color: white; font-weight: 700; cursor: pointer;
}
#sidebar input[type="submit"]:hover { background: #7e3c2b; }
#sidebar h3 { margin: 18px 0 8px; padding: 0; background: none; color: #292722; font-size: 14px; font-weight: 700; line-height: 1.4; }
#sidebar ul { padding: 6px 0 14px 20px; margin: 0; color: #a34f36; list-style-type: square; }
#sidebar ul li { padding: 0; margin: 0 0 5px; }
#sidebar ul ul { padding: 2px 0 2px 18px; }

/* Sidfot */
#footer { min-height: 70px; height: auto; padding: 22px 25px; background: #252521; color: #e9e4da; text-align: center; line-height: 1.5; font-size: 12px; }
#footer p { margin: 0; padding: 0; }
#footer a { color: #e8a45e; }
#content center { margin: 18px 0; }
#content font, #sidebar font { line-height: inherit; }

/* Mobil */
@media (max-width: 760px) {
  #wrap { width: 100%; margin: 0 auto; }
  #header { min-height: 175px; padding: 30px 24px 22px; }
  #header::after { width: 112px; height: 112px; right: 18px; top: 28px; border-width: 6px; }
  #header::before { right: 72px; top: 49px; height: 35px; }
  #header h1 { max-width: 75%; font-size: clamp(34px, 9vw, 58px); letter-spacing: 1.5px; }
  #menu ul { padding: 0 12px; }
  #menu ul li a { padding: 13px 9px 11px; font-size: 10px; }
  #contentwrap { padding: 24px 20px 30px; }
  #content, #sidebar { float: none; width: 100%; }
  #content { margin: 0 0 30px; }
  #sidebar { padding: 18px; }
}
@media (max-width: 420px) {
  body { font-size: 15px; }
  #header { min-height: 150px; padding: 26px 18px 20px; }
  #header h2 { font-size: 17px; }
  #contentwrap { padding: 20px 16px 26px; }
  #content h2 { font-size: 24px; }
}
#header {
    position: relative;
    overflow: hidden;
}

#header::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
   right: -85px;
top: -85px;
    border: none;
    border-radius: 50%;
    background: url("images/klocklos-urtavla.png") center / cover no-repeat;
    pointer-events: none;
}

#header::before {
    display: none;
}