/* LMN Lögmannsstofa – static single-page site.
   Values measured from lmn.is (ThinkUp "Consulting" theme), reduced to what this page uses. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/OpenSans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/OpenSans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #4498e7;
  --text: #7a7a7a;
  --dark: #232323;
  --line: #eee;
  --footer-bg: #1e2021;
  --footer-text: #c8cccf;
  --menu-bg: #292929;
  --menu-text: #aaa;
  --menu-line: #505050;
  --container: 1140px;
}

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

html { -webkit-text-size-adjust: 100%; overflow-y: scroll; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 13px/1.8 "Open Sans", Helvetica, Arial, sans-serif;
}
a { color: var(--blue); text-decoration: none; cursor: pointer; }
a:hover { color: inherit; }
img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 10px 20px; background: #fff; color: var(--dark); z-index: 100;
}
.skip-link:focus { left: 10px; }

/* Header */
.site-header { border-top: 2px solid var(--line); background: #fff; }
.header-core {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}
.logo { display: block; }
.logo img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  z-index: 9;
}
.header-links ul { display: flex; }
.header-links a {
  display: block;
  padding: 29px 20px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color .3s ease;
}
.header-links a:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  width: 60px;
  padding: 15px 0;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  margin: 0 auto;
  background: var(--menu-bg);
}
.nav-toggle span + span { margin-top: 3px; }

.header-responsive {
  display: none;
  background: var(--menu-bg);
  padding: 0 20px;
  overflow: hidden;
  height: 0;
  transition: height .35s ease;
}
.header-responsive a {
  display: block;
  padding: 10px 20px;
  color: var(--menu-text);
  border-bottom: 1px dotted var(--menu-line);
}
.header-responsive a:hover { color: #fff; }

/* Hero */
.hero {
  width: 100%;
  height: min(500px, calc(100vw * 500 / 1140));
  background: url(../images/pennibok.jpg) no-repeat center / cover;
}

/* Content */
.content { padding: 60px 10px 30px; }
.content-core { max-width: var(--container); margin: 0 auto; }

/* Footer */
.sub-footer {
  padding: 35px 10px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 12px;
}
.sub-footer-core { max-width: var(--container); margin: 0 auto; }
.sub-footer a { color: var(--blue); }
.sub-footer a:hover { color: var(--footer-text); }

/* Tablet & phone */
@media only screen and (max-width: 768px) {
  .header-core { justify-content: space-between; padding: 0 10px; }
  .logo {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
  .logo img { position: static; height: auto; max-height: 45px; margin: 5px 0; }
  .header-links { display: none; }
  .nav-toggle { display: block; }
  .header-responsive { display: block; }
  .header-responsive.open { height: auto; }
  .content { padding-top: 30px; }
}
