/* Farger og skrifter som brukes på hele siden. */
:root {
  --paper: #f6f3eb;
  --ink: #242a22;
  --green: #263e31;
  --line: #d9d5ca;
  --heading: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, sans-serif;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid #a36a20; outline-offset: 5px; }
img { display: block; width: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { font: 400 clamp(2.2rem, 5vw, 4.25rem)/1.05 var(--heading); }
h1 { font-size: clamp(4rem, 9vw, 8rem); letter-spacing: -.055em; }
p { max-width: 48ch; }

.wrap { width: min(100% - 3rem, 75rem); margin-inline: auto; }

.site-header, .footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 2rem;
}

.site-header { padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.wordmark { font: 1.65rem var(--heading); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .4rem 1.35rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 5vw, 5rem);
}

.hero-copy > p { margin-top: 1rem; font-size: 1.15rem; }
.hero-copy .location {
  margin: 0 0 .7rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-photo { background: #dddacf; }
.hero-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.button {
  display: inline-block;
  margin-top: 1.35rem;
  padding: .75rem 1.15rem;
  background: var(--green);
  color: var(--paper);
  font-weight: 650;
  text-decoration: none;
}

.button:hover { text-decoration: underline; }
.button-light { background: var(--paper); color: var(--green); }

.summer, .about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
  padding: clamp(1.5rem, 5vw, 4.5rem);
}

.summer { background: var(--green); color: var(--paper); }
.about { padding-inline: 0; padding-block: clamp(2.5rem, 6vw, 5rem); }
.site-footer { border-top: 1px solid var(--line); }
.footer-content { align-items: end; padding-block: 2rem; }
.site-footer h2 { font-size: 2rem; margin-bottom: .65rem; }
address { font-style: normal; }
.inner-page { padding-block: 3rem; }
.inner-page p { margin-top: 1rem; }

/* På smale skjermer ligger tekst og bilde under hverandre. */
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .summer, .about { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 3 / 2; }
}

.course-notice {
  max-width: none;
  margin: 0;
  padding: .65rem 1rem;
  background: var(--green);
  color: var(--paper);
  text-align: center;
  font-size: .9rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.inner-page h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.inner-page h3 {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.visit {
  padding-bottom: 3rem;
}

.visit p {
  margin-top: 1rem;
}

.visit iframe {
  display: block;
  width: 100%;
  height: 350px;
  margin-top: 1.5rem;
  border: 0;
}

.wordmark img {
  width: 150px;
  height: auto;
}
/* Luft mellom forsiden sitt kursfelt og kontaktinformasjonen i bunnteksten. */
.home-main { padding-bottom: clamp(3rem, 7vw, 6rem); }

/* Litt bredere innledning gir roligere linjeskift på kontaktsiden. */
.contact-intro { max-width: 65ch; text-wrap: pretty; }
.contact-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem 3rem;
  max-width: 48rem;
}
.contact-people h2 { margin-bottom: 1rem; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
