@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&family=Silkscreen:wght@400;700&display=swap');

:root {
  --paper: #f7f0df;
  --paper-deep: #ecdfc8;
  --ink: #2f3635;
  --muted: #6e7772;
  --line: #b9aa90;
  --red: #a86869;
  --red-dark: #7f4f51;
  --blue: #4f89a8;
  --blue-pale: #dbecef;
  --green: #6d9273;
  --yellow: #d4a84d;
  --shadow: rgba(55, 44, 34, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  line-height: 1.65;

  background-image: url("background.jpg");
  background-repeat: repeat;
  background-position: top left;
  background-color: #dceef8;
}

a {
  color: var(--red-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

.site-header {
  width: min(1000px, calc(100% - 30px));
  margin: 34px auto 0;
  padding: 25px 30px;

  display: flex;
  align-items: center;
  gap: 22px;

  color: var(--paper);
  background: var(--red);

  border: 3px solid var(--red-dark);
  border-bottom-width: 7px;
  border-radius: 16px 16px 8px 8px;

  box-shadow: 0 10px 24px var(--shadow);
}

.site-header h1 {
  margin: 0;

  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .01em;
}

.kicker {
  margin: 0 0 4px;

  font-family: "Silkscreen", monospace;
  font-size: .68rem;
  letter-spacing: .05em;
}

.subtitle {
  margin: 7px 0 0;
  opacity: .9;
}

/* Header light cluster */
.header-mark {
  flex: 0 0 auto;

  display: grid;
  grid-template-columns: 50px 15px 15px;
  grid-template-rows: 15px 15px;
  align-items: center;
  justify-items: center;

  column-gap: 8px;
  row-gap: 8px;

  min-width: 96px;
  height: 50px;
}

.light {
  position: static;
  display: block;

  margin: 0;
  padding: 0;

  box-sizing: border-box;
  border: 3px solid rgba(53, 33, 35, .5);
  border-radius: 50%;

  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25);
}

.light.blue {
  grid-column: 1;
  grid-row: 1 / 3;

  width: 50px;
  height: 50px;

  background: #72bdd8;
  border: 5px solid #f2efe4;

  box-shadow:
    0 0 0 3px var(--red-dark),
    inset 0 0 0 4px rgba(255, 255, 255, .35);
}

.light.red,
.light.yellow,
.light.green {
  width: 15px;
  height: 15px;
}

.light.red {
  grid-column: 2;
  grid-row: 1;
  background: #e86b67;
}

.light.yellow {
  grid-column: 3;
  grid-row: 1;
  background: #e8c45e;
}

.light.green {
  grid-column: 2 / 4;
  grid-row: 2;
  background: #77a879;
}

#content {
  width: min(1000px, calc(100% - 30px));
  margin: 18px auto;

  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#sidebar {
  display: grid;
  gap: 14px;

  position: sticky;
  top: 18px;
}

.side-box,
main,
.screen-card {
  background: rgba(255, 251, 240, .92);
  border: 2px solid var(--line);

  box-shadow: 4px 5px 0 rgba(126, 46, 50, .12);
}

.screen-card {
  padding: 12px;

  background: var(--red);
  border-radius: 8px;
}

.screen-card img {
  display: block;
  width: 100%;

  background: var(--blue-pale);
  border: 5px solid #4d5552;
  border-radius: 6px;
}

.screen-label {
  display: block;
  padding-top: 9px;

  color: white;

  font-family: "Silkscreen", monospace;
  font-size: .63rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-align: center;
}

/* PokéNav clock screen */
.pokenav-screen {
  min-height: 120px;
  padding: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(44, 62, 55, .04) 0 2px,
      transparent 2px 4px
    ),
    #b8c69b;

  border: 5px solid #4c5652;
  border-radius: 6px;

  text-align: center;

  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .15),
    inset 0 -5px rgba(55, 70, 63, .05);
}

.screen-header {
  margin-bottom: 10px;

  color: #3d4944;

  font-family: "Silkscreen", monospace;
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#clock {
  color: #2b3431;

  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

#date {
  margin-top: 10px;

  color: #4c5b55;

  font-family: "Silkscreen", monospace;
  font-size: .52rem;
  line-height: 1.5;
}

.side-box {
  padding: 14px 16px;
  border-radius: 7px;
}

.side-box h2 {
  margin: 0 0 10px;
  padding-bottom: 6px;

  color: var(--red-dark);
  border-bottom: 1px dashed var(--line);

  font-family: "Fredoka", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

#bio p {
  margin: 0;
}

.status-line {
  margin-top: 12px;

  color: var(--muted);

  font-family: "Silkscreen", monospace;
  font-size: .6rem;
  text-transform: uppercase;
}

.status-line span {
  display: inline-block;

  width: 9px;
  height: 9px;
  margin-right: 5px;

  background: var(--green);
  border-radius: 50%;

  box-shadow: 0 0 0 2px rgba(109, 146, 115, .2);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li + li {
  border-top: 1px dotted var(--line);
}

nav a {
  display: flex;
  gap: 9px;

  padding: 8px 5px;

  color: var(--ink);

  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  text-decoration: none;
}

nav a span {
  color: var(--red);

  font-family: "Silkscreen", monospace;
  font-size: .62rem;
}

nav a:hover,
nav a.active {
  padding-left: 10px;

  color: var(--red-dark);
  background: #f1e4d2;
}

.mini-data dl {
  margin: 0;
}

.mini-data dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  padding: 5px 0;

  border-bottom: 1px dotted var(--line);
  font-size: .78rem;
}

.mini-data dt {
  color: var(--muted);
}

.mini-data dd {
  margin: 0;

  font-weight: 700;
  text-align: right;
}

main {
  padding: clamp(20px, 4vw, 38px);
  border-radius: 8px;
}

main section {
  padding: 5px 0 30px;
}

main section + section {
  padding-top: 30px;
  border-top: 1px dashed var(--line);
}

main h2 {
  margin: 0 0 14px;

  color: var(--red-dark);

  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

main h3 {
  margin: 0 0 7px;

  font-family: "Fredoka", sans-serif;
  font-weight: 600;
}

.entry-label {
  margin: 0 0 7px;

  color: var(--blue);

  font-family: "Silkscreen", monospace;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .06em;
}

.welcome-panel {
  display: grid;
  grid-template-columns: 1.4fr .75fr;
  gap: 26px;
  align-items: center;
}

.feature-image img {
  display: block;
  width: 100%;

  border: 5px solid var(--paper-deep);
  outline: 2px solid var(--line);
  border-radius: 6px;

  transform: rotate(1.5deg);
}

.type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 18px;
}

.type {
  padding: 4px 12px;

  color: white;

  border: 2px solid rgba(52, 52, 45, .22);
  border-radius: 999px;

  font-family: "Silkscreen", monospace;
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;

  box-shadow: inset 0 -2px rgba(0, 0, 0, .11);
}

.type.psychic {
  background: #e5709b;
}

.type.flying {
  background: #7da6de;
}

.type.fairy {
  background: #e397d1;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title-row h2,
.section-title-row .entry-label {
  margin-bottom: 0;
}

.section-sticker {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--red);
  border: 3px solid var(--red-dark);
  border-radius: 50%;
  box-shadow: inset 0 -3px rgba(0, 0, 0, .1);
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  position: relative;
  padding: 18px 16px;
  background: #f5ead9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-number {
  position: absolute;
  right: 10px;
  top: 8px;
  color: rgba(168, 104, 105, .22);
  font-family: "Silkscreen", monospace;
  font-size: 1.35rem;
  font-weight: 700;
}

.field-card {
  overflow: hidden;
  border-top: 5px solid var(--blue);
  box-shadow: 3px 4px 0 rgba(55, 44, 34, .08);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.field-card:nth-child(2) {
  border-top-color: var(--green);
}

.field-card:nth-child(3) {
  border-top-color: #c67fa5;
}

.field-card:hover,
.field-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 5px 7px 0 rgba(79, 137, 168, .16);
}

.interest-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-pale);
  border: 2px solid var(--blue);
  border-radius: 50%;
  font-size: 1.45rem;
}

.field-card:nth-child(2) .interest-icon {
  background: #e3eadb;
  border-color: var(--green);
}

.field-card:nth-child(3) .interest-icon {
  background: #f0dce8;
  border-color: #b97798;
}

.field-tag {
  display: inline-block;
  margin-bottom: 9px;
  padding: 3px 8px;
  color: white;
  border-radius: 999px;
  font-family: "Silkscreen", monospace;
  font-size: .5rem;
  letter-spacing: .03em;
}

.field-tag-blue { background: var(--blue); }
.field-tag-green { background: var(--green); }
.field-tag-pink { background: #b97798; }

.field-card h3 {
  margin-bottom: 7px;
}

.field-card > p {
  margin-bottom: 0;
}

.interest-extra {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.interest-extra span,
.interest-extra strong {
  display: block;
}

.interest-extra span {
  color: var(--muted);
  font-family: "Silkscreen", monospace;
  font-size: .49rem;
  letter-spacing: .03em;
}

.interest-extra strong {
  margin-top: 4px;
  font-size: .9rem;
}

.project-list {
  display: grid;
  gap: 15px;
}

.project-list article,
.journal-entry {
  padding: 18px 20px;
  background: #f5ead9;
  border-left: 5px solid var(--blue);
}

.project-entry {
  position: relative;
  border-radius: 0 8px 8px 0;
  box-shadow: 3px 4px 0 rgba(55, 44, 34, .08);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.project-entry:hover {
  transform: translateX(4px);
  box-shadow: 5px 5px 0 rgba(79, 137, 168, .14);
}

.project-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-id {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: "Silkscreen", monospace;
  font-size: .5rem;
}

.project-status {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  color: white;
  background: var(--green);
  font-family: "Silkscreen", monospace;
  font-size: .56rem;
}

.project-status.planned {
  color: #3c3525;
  background: var(--yellow);
}

.project-list p,
.journal-entry p {
  margin-top: 5px;
}

.project-progress {
  margin-top: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: "Silkscreen", monospace;
  font-size: .5rem;
}

.progress-label strong {
  color: var(--ink);
}

.progress-track {
  height: 11px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.project-entry:nth-child(2) .progress-track span {
  background: var(--yellow);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.project-meta span {
  padding: 3px 7px;
  color: var(--red-dark);
  background: var(--paper-deep);
  border: 1px solid rgba(185, 170, 144, .7);
  border-radius: 3px;
  font-family: "Silkscreen", monospace;
  font-size: .46rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  display: block;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.polaroid {
  position: relative;
  padding: 12px 12px 18px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 3px 5px 0 rgba(55, 44, 34, .11);
  transform: rotate(-1.2deg);
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.polaroid:nth-child(even) {
  transform: rotate(1.2deg);
}

.polaroid:hover,
.polaroid:focus-visible {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 6px 8px 0 rgba(79, 137, 168, .16);
}

.gallery-image {
  overflow: hidden;
  margin-bottom: 11px;
  background: var(--blue-pale);
  border: 3px solid var(--paper-deep);
}

.gallery-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .25s ease;
}

.polaroid:hover .gallery-image img,
.polaroid:focus-visible .gallery-image img {
  transform: scale(1.05);
}

.sighting-number {
  display: block;
  color: var(--blue);
  font-family: "Silkscreen", monospace;
  font-size: .47rem;
  letter-spacing: .03em;
}

.polaroid strong,
.polaroid small {
  display: block;
}

.polaroid strong {
  margin-top: 4px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
}

.polaroid small {
  margin-top: 2px;
  color: var(--muted);
}

.tape {
  position: absolute;
  top: -9px;
  width: 48px;
  height: 18px;
  background: rgba(219, 236, 239, .78);
  border: 1px solid rgba(79, 137, 168, .18);
  z-index: 1;
}

.tape-left {
  left: 14px;
  transform: rotate(-5deg);
}

.tape-center {
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
}

.tape-right {
  right: 14px;
  transform: rotate(5deg);
}

.journal-entry time {
  color: var(--muted);

  font-family: "Silkscreen", monospace;
  font-size: .58rem;
}

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.link-buttons a {
  display: inline-block;
  padding: 8px 13px;

  color: var(--paper);
  background: var(--red);

  border: 2px solid var(--red-dark);
  border-radius: 5px;

  box-shadow: 0 3px 0 var(--red-dark);

  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  text-decoration: none;

  transition:
    color 0.1s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.link-buttons a:hover,
.link-buttons a:focus-visible {
  color: white;
  background: var(--blue);
  border-color: #356b87;

  box-shadow: 0 5px 0 #356b87;
  transform: translateY(-2px);
}

.link-buttons a:active {
  box-shadow: 0 1px 0 #356b87;
  transform: translateY(1px);
}

.system-message {
  margin-top: 5px;
  padding: 12px 15px;

  background:#8da3aa;

    color:#fffaf2;

    border:3px solid #667d85;

    border-radius:6px;

    box-shadow:
        inset 0 1px rgba(255,255,255,.15);
        
  font-family: "Silkscreen", monospace;
  font-size: .6rem;
  letter-spacing: .04em;
  text-align: center;
}

.last-update {
  display: block;

  margin-top: 10px;

  color: var(--muted);

  font-family: "Silkscreen", monospace;
  font-size: .56rem;
  text-align: right;
}

footer {
  width: min(1000px, calc(100% - 30px));
  margin: 0 auto 35px;
  padding: 15px 20px;

  color:white;

    background:var(--red);

    border:2px solid #5f747b;

    box-shadow:
        0 5px 12px rgba(0,0,0,.12),
        inset 0 1px rgba(255,255,255,.18);

}

footer p {
  margin: 3px 0;
}

footer .credit {
  font-size: .72rem;
  opacity: .78;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  #content {
    grid-template-columns: 1fr;
  }

  #sidebar {
    position: static;
    grid-template-columns: 130px 1fr;
  }

  #sidebar nav,
  .mini-data {
    grid-column: 1 / -1;
  }

  .welcome-panel {
    grid-template-columns: 1fr;
  }

  .feature-image {
    max-width: 270px;
    margin: auto;
  }

  .card-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-heading-row {
    flex-direction: column;
    gap: 6px;
  }

  .section-title-row {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 20px;
  }

  .header-mark {
    grid-template-columns: 44px 12px 12px;
    grid-template-rows: 12px 12px;
    column-gap: 6px;
    row-gap: 6px;

    min-width: 80px;
    height: 44px;
  }

  .light.blue {
    width: 44px;
    height: 44px;
    border-width: 4px;
  }

  .light.red,
  .light.yellow,
  .light.green {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  #sidebar {
    grid-template-columns: 1fr;
  }

  #sidebar nav,
  .mini-data {
    grid-column: auto;
  }

  #avatar {
    max-width: 220px;
    margin: auto;
  }

  main {
    padding: 22px 18px;
  }

  .pokenav-screen {
    min-height: 105px;
  }

  #clock {
    font-size: 1.75rem;
  }
}