
/* ======= referenceunit.css ======= */

/* Variable reference unit depending on the screen */

:root {
  --base-font-size: 18px;
  /* Default base size */
}

/* Media Queries for different screen sizes and devices*/
@media (max-width: 1023px) {
  :root {
    --base-font-size: 16px;
  }
}

@media (min-width: 1024) {
  :root {
    --base-font-size: 18px;
  }
}

@media (min-resolution: 150dpi) and (pointer: coarse) {

  /* High-DPI touch devices */
  :root {
    --base-font-size: 22px;
  }
}

html {
  font-size: var(--base-font-size);
}


/* ======= sitepage.css ======= */

/* site page layout */

body {
  margin: 0;
  overflow-y: scroll;
}

header {
  position: sticky;
  top: 0;
  min-height: 3rem;
  z-index: 10;
}

main {
  min-height: calc(100vh - 4.85rem);
}

footer {
  position: sticky;
  bottom: 0;
  min-height: 1.85rem;
  box-sizing: content-box;
}

#main-content {
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1rem 4rem 1rem;
}

#main-overlay {
  position: fixed;
  top: 5rem;
  right: calc(max(50% - 23rem, 3rem));
  box-sizing: border-box;
  min-width: 26rem;
  max-width: min(46rem, calc(100vw - 6rem));
}

.main-overlay-hidden {
  display: none;
}

/* Bing wants a h1 to index a page, but we don't care */
h1 {
  display: none;
}

/* page style */

html {
  text-size-adjust: none;
}

body {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 1rem;
  line-height: 1rem;
  color: var(--color-text);
  /* background-color: var(--color-bg-default); */
  background: var(--gradient-page, var(--color-bg-default));
}

a {
  text-decoration: none;
  color: royalblue;
}


/* ======= maincontent.css ======= */

/* main content layout */

h2 {
  margin: 3rem 0 1rem 0;
  padding: 0.1rem 0 0 0.5rem;
}

/* main content styling */

h2 {
  border-top: solid 1px var(--color-highlight);
  font-size: 1.5rem;
  line-height: 1.5rem;
  font-weight: 700;
}


/* ======= component/coverimage.css ======= */

/* cover images layout */

.large-image-cover {
  height: 14rem;
  width: 14em;
  object-fit: contain;
  padding: 1px;
  border: solid 1px var(--color-not-black);
}

.medium-image-cover {
  height: 6rem;
  width: 6rem;
  object-fit: contain;
  border: solid 0.5px var(--color-not-black);
  margin: 0 0.4rem 0 0;
}

.mediumsmall-image-cover {
  height: 4rem;
  width: 4rem;
  object-fit: contain;
  border: solid 0.5px var(--color-not-black);
  margin: 0 0.4rem 0 0;
}

.marker-image-cover {
  height: 3rem;
  width: 3rem;
  object-fit: contain;
  border: solid 0.5px var(--color-not-black);
  margin: 0 0.4rem 0 0;
}

.small-image-cover {
  height: 2rem;
  width: 2rem;
  object-fit: contain;
  border: solid 0.5px var(--color-not-black);
  margin: 0 0.2rem 0 0;
}

/* cover images styling */

.large-image-cover,
.medium-image-cover,
.mediumsmall-image-cover,
.small-image-cover,
.marker-image-cover {
  background-color: var(--color-bg-cover);
}


/* ======= component/mediumcard.css ======= */

/* medium card layout */

.medium-card-list>.medium-card-tree {
  margin: 2em 0 0 0;
}

.medium-card {
  width: fit-content;
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-template-rows: min-content min-content min-content 1fr;
  grid-template-areas: 'cover designation' 'cover label' 'cover sublabel' 'cover date';
}

.medium-card-list>.medium-card {
  margin: 1em 0 1em 1em;
}

.medium-card-tree>.medium-card {
  margin: 1em 0 0 1em;
}

.medium-card>.medium-image-cover {
  grid-area: cover;
}

.medium-card-designation {
  grid-area: designation;
  margin: 0.1rem 0 0.1rem 0;
}

.medium-card-label {
  grid-area: label;
}

.medium-card-sublabel {
  grid-area: sublabel;
  margin: 0.2rem 0 0 0.2rem;
}

.medium-card-date {
  grid-area: date;
  margin: 0.2rem 0 0 0.2rem;
}

/* medium card styling */

.medium-card {
  color: var(--color-text);
}

.medium-card-designation {
  text-transform: uppercase;
  color: var(--color-designation);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 0.8rem;
}

.medium-card-label {
  font-size: 1.8rem;
  line-height: 1.8rem;
  font-weight: 700;
}

.medium-card-sublabel {
  font-size: 1.3rem;
  line-height: 1.3rem;
  font-weight: 600;
}

.medium-card-date {
  font-size: 0.9rem;
  line-height: 0.9rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

