* { box-sizing: border-box; }

:root{
  --bg: #f3efe7;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #3a3a3a;
  --line: #e6dccb;
  --line-strong: #d8c8ae;
}

body{
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topnav{
  width: 100%;
  margin: 0;
  padding: 3.2rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;

  background:
    linear-gradient(180deg, #efe7db 0%, #f6f2ea 60%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.brand{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark{
  width: 112px;
  height: 112px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, #c9b18a 0%, #efe3cf 55%, #f6f2ea 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
}

.brand-text{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 1.8rem;
  font-weight: 900;
}

.brand-slogan{
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.45rem;
}

.menu{
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.menu a{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.1rem;
  padding: 0.7rem 0;
  border-bottom: 3px solid transparent;
}

.menu a:hover{
  border-bottom-color: var(--line-strong);
}

main{
  width: 100%;
  margin: 0;
  padding: 2.5rem 2.5rem;
}

main > section{
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}

h2{
  margin: 0 0 1rem 0;
  letter-spacing: 0.2px;
  font-size: 1.7rem;
}

h3{
  margin: 0.35rem 0 0.35rem 0;
  font-size: 1rem;
}

.grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Nettbrett */
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Mobil */
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }

  .topnav{
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .brand{
    justify-content: center;
    width: 100%;
  }

  .menu{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}

.card{
  display: block;
  color: inherit;
  text-decoration: none;

  background: var(--paper);
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;

  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: var(--line-strong);
}

.thumb{
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 0.6rem;

  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #d9cbb5, #efe7db);
}

footer{
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
body{
  background:
    radial-gradient(1200px 800px at 8% 8%, rgba(200,170,120,0.35), transparent 62%),
    radial-gradient(1200px 800px at 92% 18%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1200px 800px at 70% 92%, rgba(200,170,120,0.25), transparent 65%),
    linear-gradient(180deg, #efe7db 0%, #f6f2ea 45%, #f3efe7 100%);
}
