/* FONT FACES */

@supports (scrollbar-gutter: stable) {
  html {
    scrollbar-gutter: stable;
  }
}

@font-face {
    font-family: "Native Record Serif";
    src: url("assets/fonts/Native\ Record\ Serif.ttf");
}

@font-face {
    font-family: "Native Record Sans";
    src: url("assets/fonts/Native\ Record\ Sans.ttf");
}

@font-face {
    font-family: "Cottage Stone";
    src: url("assets/fonts/CottageStone-Regular.ttf");
}

/* HTML SPECIFIC STYLES */

body {
  margin: 0;
}

h1 {
    font-family: "Native Record Serif";
}

/* BODY STYLES FOR EACH PAGE */

/* MAIN PAGE */
.main-page {
  background-color: #362624;
  background-image: url("assets/images/ulfsbakktjern.jpg");
  background-size:cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.post

/* OTHER STYLES */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 5px rgba(0,0,0,0.3);
}

.nav-bar ul {
  display: flex;
  justify-content: space-evenly;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #454B1B;
  align-items: center;
}

.nav-bar a {
  color: white;
  font-size: 24px;
  font-family: "Native Record Serif";
  text-decoration: none;
  display: block;
  padding: 16px 20px;
}

.nav-bar li {
    float: left;
}

.main-title {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 24px;
    margin-bottom: 24px;
    width: 30%;
}

.central-panel {
    background-color: #EDEADE;

    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 72px;
    width: 70%;
    position: relative;

    box-sizing: border-box;
    padding: 24px;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-item {
  margin: 0;
}

.post-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  padding: 14px;
  border: 2px solid #36454F;
  border-radius: 0;
  box-shadow: 0 0 0 0 #7393B3;
  transition: background-color .12s ease, transform .1s ease, border-color 0.1s ease, border-width 0.1s ease, box-shadow 0.1s ease;
  box-sizing: border-box;
}

.post-card:hover,
.post-card:focus {
  border-color: #7393B3;
  box-shadow: 0 0 0 4px #7393B3;
  transform: translateY(-2px);
  outline: none;
}

:root {
  --thumb-min: 80px;
  --thumb-preferred: 18vw;
  --thumb-max: 180px;
}

.post-thumb {
  flex: 0 0 clamp(var(--thumb-min), var(--thumb-preferred), var(--thumb-max));
  width: clamp(var(--thumb-min), var(--thumb-preferred), var(--thumb-max));
  /* keep a perfect square */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  background: #ddd;
  border-radius: 0;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-title {
  font-family: "Native Record Serif", serif;
  font-size: 1.8rem;
  color: #023020;

  margin: 0;
  line-height: 1.2;
  text-align: left;
}

.post-excerpt {
  margin: 0;
  font-size: 0.95rem;
  font-family: "Roboto";
  line-height: 1.45;
  color: #2b2b2b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CONSTRUCTION PAGE */

.construction-page {
  background-color: #362624;
  background-image: url("assets/images/beaver_tree.jpg");
  background-size:cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.construction-page h1 {
  color: whitesmoke;

  position:fixed;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);

  font-size: clamp(20px, 2.5vw + 1vh, 72px);

  max-width: min(200vw, 200vh);
}

/* POST */

.post {
  margin: 72px;
  margin-left: 14vw;
  margin-right: 14vw;
}

.post h1 {
  color: #023020;
  font-size: 2.5rem;
}

.post p {
  color: black;
  font-size: 17px;
  font-family: "Roboto";
  text-align: justify;
}