:root {
  color-scheme: light;

  --forest: #173b2a;
  --forest-dark: #10291d;
  --forest-light: #28533c;

  --tan: #d8c6a5;
  --tan-light: #e5d5b5;
  --tan-dark: #b9a47b;

  --teal: #4f8178;
  --teal-dark: #315d56;

  --cream: #eee3c8;

  --text: #233;

  accent-color: var(--teal);
}


/* ========================================
   BASIC
   ======================================== */

html {
  background: var(--forest);

  overscroll-behavior: none;

  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;

  color: var(--cream);

  background:
    linear-gradient(
      rgba(23, 59, 42, 0.82),
      rgba(23, 59, 42, 0.82)
    ),
    url("../my-image.jpg");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;

  font-family: "Lucida Console", "Courier New", monospace;

  font-size: 14px;

  line-height: 1.3;

  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

* {
  box-sizing: border-box;

  margin: 0;
  padding: 0;
}

h3,
h2,
h1 {
  font-weight: normal;
}

h3 {
  font-size: 1.25rem;
  line-height: 1;
  font-style: italic;
}

h2 {
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  font-size: 2.75rem;
  line-height: 1;
}

p,
ol,
ul,
dl,
code,
details {
  font-size: 1rem;
  line-height: 1.3;
}


/* ========================================
   LINKS
   ======================================== */

a {
  color: #b7d8ce;

  padding: 2px 1px 0 1px;

  text-decoration-style: dotted;

  text-underline-offset: 2px;
}

a:visited {
  color: #a8c8ba;
}

a:hover,
a:focus {
  color: var(--forest-dark);

  background: var(--tan-light);

  outline: 1px dotted;
  outline-offset: 1px;
}

a:focus-visible {
  outline: 2px solid var(--tan-light);
}

a:active {
  color: inherit;
}


/* ========================================
   PAGE LAYOUT
   ======================================== */

.wrapper {
  width: 100%;

  min-height: 100vh;

  margin: 0;

  display: flex;

  align-items: stretch;
}


/* ========================================
   LEFT TAN SIDEBAR
   ======================================== */

header {
  width: 230px;

  min-width: 230px;

  min-height: 100vh;

  padding: 25px 18px 30px 18px;

  background: var(--tan);

  color: var(--text);

  border: 0;

  flex-shrink: 0;
}


/* ========================================
   TITLE
   ======================================== */

h1 {
  width: 190px;

  margin: 0 0 12px 0;

  color: var(--forest);

  font-family: "Lucida Console", "Courier New", monospace;

  font-size: 2.75rem;

  line-height: 0.9;

  text-transform: none;
}

header > p {
  width: 185px;

  margin: 12px 0 28px 0;

  color: #59634b;

  font-size: 13px;

  line-height: 1.3;
}


/* ========================================
   FILTER BOXES
   ======================================== */

fieldset {
  width: 190px;

  margin: 0 0 18px 0;

  padding: 10px 12px 11px 12px;

  background: var(--tan-light);

  border: 1px solid var(--teal-dark);
}

legend {
  padding: 0 6px;

  color: var(--forest);

  font-size: 12px;

  text-transform: lowercase;
}


/* ========================================
   FILTER LABELS
   ======================================== */

fieldset label {
  display: block;

  margin: 5px 0;

  color: var(--text);

  font-size: 12px;

  cursor: pointer;
}

fieldset label:hover {
  color: var(--forest-dark);
}

fieldset input {
  margin-right: 6px;

  accent-color: var(--teal);

  vertical-align: -1px;
}


/* ========================================
   NAVIGATION
   ======================================== */

nav {
  width: 190px;

  margin-top: 25px;
}

nav a {
  color: var(--teal-dark);
}

nav a:visited {
  color: var(--teal-dark);
}


/* ========================================
   MEDIA AREA
   ======================================== */

main {
  flex: 1;

  width: auto;

  min-width: 0;

  min-height: 100vh;

  padding: 25px 25px 50px 30px;

  display: grid;

  grid-template-columns: repeat(6, minmax(0, 1fr));

  column-gap: 20px;

  row-gap: 40px;

  align-items: stretch;

  border: 0;
}


/* ========================================
   MEDIA CARDS
   ======================================== */

.media-card {
  width: 100%;

  margin: 0;

  padding: 0;

  display: flex;

  flex-direction: column;
}


/* ========================================
   YEAR
   ======================================== */

.media-card time {
  display: block;

  height: 20px;

  margin-bottom: 5px;

  color: var(--tan-light);

  font-size: 10px;

  letter-spacing: 1px;
}


/* ========================================
   IMAGES
   ======================================== */

.media-card > img {
  display: block;

  width: 100%;

  height: auto;

  object-fit: contain;

  background: var(--tan);

  border: 1px solid var(--tan-light);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.media-card > img:hover {
  transform: translate(-3px, -3px);

  box-shadow:
    4px 4px 0 var(--forest-dark);
}


/* ========================================
   MEDIA TYPE BORDERS
   ======================================== */

.media-card.read > img {
  border-color: var(--tan-light);
}

.media-card.watch > img {
  border-color: #b8d0b8;
}

.media-card.hear > img {
  border-color: #a8c8bd;
}

.media-card.play > img {
  border-color: #8fb5a7;
}


/* ========================================
   TITLES
   ======================================== */

.media-card figcaption {
  width: 100%;

  margin-top: 9px;

  color: var(--cream);

  font-size: 14px;

  line-height: 1.15;
}

.media-card figcaption small {
  display: block;

  margin-top: 4px;

  color: #b9c8b9;

  font-size: 10px;

  line-height: 1.2;
}


/* ========================================
   DETAILS
   ======================================== */

.media-card details {
  width: 100%;

  margin-top: 8px;

  color: #c8d2c4;

  font-size: 11px;

  line-height: 1.4;
}

.media-card summary {
  color: var(--tan-light);

  cursor: pointer;

  list-style-type: "► ";
}

.media-card details[open] > summary {
  list-style-type: "▼ ";
}

.media-card details p {
  margin: 7px 0 0 14px;
}

.media-card details a {
  color: #b7d8ce;
}


/* ========================================
   FILTERED ITEMS
   ======================================== */

.media-card[hidden] {
  display: none;
}


/* ========================================
   SELECTION
   ======================================== */

::selection {
  color: var(--forest-dark);

  background: var(--tan-light);
}


/* ========================================
   TABLET
   ======================================== */

@media screen and (max-width: 1150px) {

  header {
    width: 210px;

    min-width: 210px;
  }

  main {
    grid-template-columns: repeat(4, minmax(0, 1fr));

    column-gap: 20px;

    padding-left: 25px;

    padding-right: 25px;
  }
}


/* ========================================
   SMALLER TABLET
   ======================================== */

@media screen and (max-width: 950px) {

  .wrapper {
    display: block;
  }

  header {
    width: 100%;

    min-width: 0;

    min-height: 0;

    padding: 25px;

    border: 0;
  }

  header > p {
    width: auto;
  }

  fieldset {
    display: inline-block;

    vertical-align: top;

    width: 190px;

    margin-right: 10px;
  }

  main {
    width: 100%;

    min-height: 0;

    padding: 30px 25px 50px 25px;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 20px;

    row-gap: 40px;
  }
}


/* ========================================
   MOBILE
   ======================================== */

@media screen and (max-width: 680px) {

  main {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 20px;
  }
}


/* ========================================
   VERY SMALL MOBILE
   ======================================== */

@media screen and (max-width: 450px) {

  main {
    grid-template-columns: 1fr;

    padding-left: 20px;

    padding-right: 20px;
  }
}