@font-face {
  font-family: "AtlasGrotesk";
  src: url(./fonts/AtlasGrotesk-Regular.woff);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Garamond";
  src: url(./fonts/EBGaramond-Italic-VariableFont_wght.ttf);
  font-style: italic;
}

@font-face {
  font-family: "Garamond";
  src: url(./fonts/EBGaramond-Regular-VariableFont_wght.ttf);
  font-style: normal;
}

@font-face {
  font-family: "ZT Bros Oskon";
  src: url(./fonts/ZTBrosOskon90s-Regular.otf);
  font-weight: 400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 21px;
  /* --primary-color: #4a8d2d; */
  --accent-color: #e4dbbe;
  --gray: #666;
  --bio-link-color: #1d7bc3;
  letter-spacing: -0.01rem;
}

section {
  padding: 40px 20px;
}

body {
  font-family: "AtlasGrotesk", Helvetica, sans-serif;
  line-height: 1.3;
  color: rgb(22, 23, 22);
  text-align: left;
  font-size: 0.9rem; /* unsure about this */
}

body::before {
  content: "";
  position: fixed; /* so it stays while scrolling */
  inset: 0;
  background: url("images/tex_tabloid.png") center/cover;
  mix-blend-mode: multiply;
  background-size: 900px 900px; /* adjust size of texture */
  opacity: 0.45; /* adjust strength of texture */
  pointer-events: none; /* avoids blocking clicks */
  z-index: -1; /* places it behind everything */
}

a {
  color: rgb(22, 23, 22);
  text-decoration: none;
}

a:hover {
  color: var(--accent-color);
  /* font-style: italic; */
}

hr {
  stroke: var(--accent-color);
  opacity: 0.5;
}

p {
  margin-bottom: 1em;
}

/* HEADER */

.header-container {
  color: var(--accent-color);
  /* font-size: 0.85rem; */
  font-size: clamp(0.85rem, 0.9vw, 0.85rem);

  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 30px;
  align-items: start;
}

.mail-link {
  color: var(--accent-color);
}

.name {
  color: rgb(15, 15, 15);
  /* color: var(--primary-color); */
  font-family: "ZT Bros Oskon", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(4.5rem, 7.4vw, 7.4rem);
  line-height: 0.55;
  letter-spacing: 0.2rem;
  text-indent: -15px; /* Adjust this value to control the first line's position */
  padding-left: 15px;

  /* color: var(--primary-color); */
  align-self: end;
}

.small-k {
  font-variant: small-caps;
}

.bio-container {
  width: 90%;
}

.clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  text-overflow: clip;
  overflow: hidden;
}

.bio-link {
  display: none;
}

.bio-modal-link:hover {
  color: var(--bio-link-color);
}

.read-more {
  cursor: pointer;
}

.read-more:hover {
  color: var(--accent-color);
}

.links > * {
  cursor: pointer;
  /* color: var(--primary-color); */
}

.links > * > * {
  /* color: var(--primary-color); */
}

.links > *:hover {
  color: var(--accent-color);
}

.theme {
  margin-top: 1em;
}



/* END HEADER */

/* START SUBHEADER */

.subtitle {
  font-family: "ZT Bros Oskon", serif;
  font-size: 1.2rem;
  letter-spacing: 0.05rem;
  font-weight: 700;
  position: fixed;
  z-index: 2;
  right: 0;
  top: 0;
  padding: 12px;
  /* background-color: var(--primary-color); */
  /* background: url("/images/ConeyIsland_01.jpg");
  background-position: right top;
  background-size: 5000%; */

  width: 50px;
  height: 100vh;
}

/* END SUBHEADER */

/* MAIN */

.content-headers {
  font-family: "ZT Bros Oskon", serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.01rem;
  /* Same grid */

  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 8px;
  padding-left: 20px;
  padding-right: 20px;
  font-weight: 500;
}

.content-header {
  cursor: pointer;
}

#content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  font-size: 0.9rem;
}

.entry {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 6px 0;
}

.entry a {
  font-weight: normal;
}

/* Sort */

.sort-direction {
  font-family: Times;
  font-size: 50%;
  vertical-align: middle;
  margin-left: 4px;
  cursor: pointer;
}

/* END MAIN */

/* FOOTER */

footer {
  font-family: "ZT Bros Oskon", serif;
  font-size: 1rem;
  letter-spacing: 0.01rem;
  font-style: italic;
  font-weight: 700;
}

/* END FOOTER */

/* MODALS */

.modal-container {
  font-size: 0.9rem;
  padding: 40px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(95%, 800px);
  background: var(--accent-color);
  transition: opacity 0.3s ease;
  border: 1px var(--gray) solid;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--accent-color);
}

.modal-inactive {
  display: none;
}

.modal-active {
  display: block;
}

/* END MODALS */

/* MEDIA QUERIES */

@media (max-width: 850px) {
  :root {
    font-size: 16px;
  }

  .theme,
  .clock,
  .content-headers,
  .bio-container {
    display: none;
  }

  .bio-link {
    display: block;
  }

  .modal-container {
    width: 90%;
  }

  .header-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: left;
    gap: 30px;
    padding-bottom: 0px;
  }

  .entry {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    gap: 2px;
  }
}

/* END MEDIA QUERIES */

/* .loading {
      text-align: center;
      padding: 40px;
      color: #666;
    }

    .error {
      text-align: center;
      padding: 40px;
      color: #d00;
    } */
