
  
/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --background-color: #fefafc;
  --content-background-color: #dcfcf2ff;
  --sidebar-background-color: #038462;

  /* Text Colors: */
  --text-color: #000000;
  --sidebar-text-color: #dcfcf2ff;
  --link-color: #b4004e;
  --link-color-hover: #e790b8;

  /* Text: */
  --font: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', 'ＭＳ ゴシック' , 'MS Gothic', 'Noto Sans CJK JP', TakaoPGothic, sans-serif;
  --heading-font: Courier New, monospace;
  --font-size: 16px;

  /* Other Settings: */
  --margin: 8px;
  --padding: 15px;
  --border: 2px solid #c4006f;
  --round-borders: 0px;
  --sidebar-width: 250px;
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: var(--margin);
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  background: var(--background-color);
  background-image: url("https://images.unsplash.com/photo-1650804068570-7fb2e3dbf888?q=80&w=729&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  
}

::selection {
  /* (Text highlighted by the user) */
  background: rgba(0, 0, 0, 0.2);
}

mark {
  /* Text highlighted by using the <mark> element */
  text-shadow: 1px 1px 4px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

/* Links: */
a {
  text-decoration: underline;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}

/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.layout {
  width: 1200px;
  max-width: 100%;
  display: grid;
  gap: var(--margin);
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-columns: minmax(0, 1fr);
}

/* LAYOUT FOR SIDEBARS ON HOMEPAGE */

.home .layout {
  width: calc(var(--sidebar-width) + var(--sidebar-width) + 700px + (var(--margin) * 2));
  max-width: 100%;
  display: grid;
  gap: var(--margin);
  align-items: start;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--sidebar-width);
  grid-template-areas:
    "header header header"
    "leftSidebar main rightSidebar"
    "footer footer footer";
}
/* --- */ 

main {
  grid-area: main;
  overflow: visible;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
}

/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

header {
  grid-area: header;
  font-size: 1.2em;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
}

.header-content {
  padding: var(--padding);
}

.header-title {
  font-family: var(--heading-font);
  font-size: 1.5em;
  font-weight: bold;
}

.header-image img {
  width: 100%;
  height: auto;
}

/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */

aside {
  grid-area: aside;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
}

.left-sidebar {
  grid-area: leftSidebar;
}

.right-sidebar {
  grid-area: rightSidebar;
}

.sidebar-title {
  font-weight: bold;
  font-size: 1.2em;
  font-family: var(--heading-font);
  text-align: center;
}

.sidebar-photo {
  width: 150px;
  height: 150px;
}

.sidebar-photo-div {
  display: flex;
  justify-content: center;
}

.sidebar-section:not(:last-child) {
  margin-bottom: 3em;
}

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 10px;
}

/* Sidebar Blockquote: */

.sidebar-section blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-section blockquote > *:first-child {
  margin-top: 0;
}

.sidebar-section blockquote > *:last-child {
  margin-bottom: 0;
}

/* Site Button: */

.site-button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-button textarea {
  font-family: monospace;
  font-size: 0.7em;
}



/* -------------------------------------------------------- */
/* NAVIGATION */
/* -------------------------------------------------------- */

nav {
  margin-bottom: 3em;
}

nav .sidebar-title {
  margin-bottom: 0.5em;
}

nav ul {
  margin: 0 -5px;
  padding: 0;
  list-style: none;
  user-select: none;
}

nav ul li {
  margin-bottom: 0;
}

nav > ul li > a,
nav > ul li > strong {
  display: inline-block;
}

nav > ul li > a,
nav > ul li > details summary,
nav > ul li > strong {
  padding: 5px 10px;
}

nav > ul li > a.active,
nav > ul li > details.active summary {
  font-weight: bold;
}

nav ul summary {
  cursor: pointer;
}

nav ul ul li > a {
  padding-left: 30px;
}

/* NAVIGATION IN HEADER */

header nav {
  margin-bottom: 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

header nav ul li {
  position: relative;
}

header nav ul li:first-child > a {
  padding-left: 0;
}

header nav ul li:last-child > a {
  padding-right: 0;
}

/* Subnavigation (Drop-Down): */

header nav ul ul {
  background: var(--content-background-color);
  display: none;
  position: absolute;
  top: 100%;
  left: 10px;
  padding: 0.5em;
  z-index: 1;
  border: var(--border);
  min-width: 100%;
  box-shadow: 0px 1px 5px rgba(0,0,0,0.2);
}

header nav ul li:hover ul,
header nav ul li:focus-within ul {
  display: block;
}

header nav ul li strong {
  color: var(--link-color);
  text-decoration: underline;
  font-weight: normal;
}

header nav ul ul li a {
  display: block;
  padding-left: 0;
  padding-right: 0;
}

/* -------------------------------------------------------- */
/* CONTENT */
/* -------------------------------------------------------- */

main {
  line-height: 1.5;
}

main a,
main a:visited {
  color: var(--link-color);
}

main a:hover,
main a:focus {
  color: var(--link-color-hover);
  text-decoration-style: wavy;
}

main p,
main .image,
main .full-width-image,
main .two-columns {
  margin: 0.75em 0;
}

main ol,
main ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

main ol li,
main ul li {
  margin-bottom: 0.2em;
  line-height: 1.3;
}

main ol {
  padding-left: 2em;
}

main blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
}

main pre {
  margin: 1em 0 1.5em;
}

main code {
  text-transform: none;
}

main center {
  margin: 1em 0;
  padding: 0 1em;
}

main hr {
  border: 0;
  border-top: var(--border);
  margin: 1.5em 0;
}

/* HEADINGS: */

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--heading-font);
  margin-bottom: 0;
  line-height: 1.5;
}

main h1:first-child,
main h2:first-child,
main h3:first-child,
main h4:first-child,
main h5:first-child,
main h6:first-child {
  margin-top: 0;
}

main h1 {
  font-size: 1.5em;
}

main h2 {
  font-size: 1.4em;
}

main h3 {
  font-size: 1.3em;
}

main h4 {
  font-size: 1.2em;
}

main h5 {
  font-size: 1.1em;
}

main h6 {
  font-size: 1em;
}

/* COLUMNS: */

.two-columns {
  display: flex;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}

/* -------------------------------------------------------- */
/* CONTENT IMAGES */
/* -------------------------------------------------------- */

.image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.full-width-image {
  display: block;
  width: 100%;
  height: auto;
}

.images {
  display: flex;
  width: calc(100% + 5px + 5px);
  margin-left: -5px;
  margin-right: -5px;
}

.images img {
  width: 100%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

/* -------------------------------------------------------- */
/* ACCESSIBILITY */
/* -------------------------------------------------------- */

/* please do not remove this. */

#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  line-height: 1;
  font-size: 1.25rem;
  background-color: var(--content-background-color);
  color: var(--text-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus,
#skip-to-content-link:focus-within {
  transform: translateY(0);
}

/* -------------------------------------------------------- */
/* MOBILE RESPONSIVE */
/* -------------------------------------------------------- */

/* CSS Code for devices < 800px */
@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .layout {
    width: 100%;
    grid-template-areas:
      "header"
      "main"
      "footer";
    grid-template-columns: 1fr;
  }

  .home .layout {
    width: 100%;
    grid-template-areas:
      "header"
      "leftSidebar"
      "main"
      "rightSidebar"
      "footer";
    grid-template-columns: 1fr;
  }

  aside {
    padding: 9px;
    font-size: 0.9em;
  }

  .right-sidebar,
  .left-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  nav {
    padding: 0;
  }

  nav > ul {
    padding-top: 0.5em;
  }

  nav > ul li > a,
  nav > ul li > details summary,
  nav > ul li > strong {
    padding: 0.5em;
  }

  main {
    max-height: none;
    padding: 15px;
  }

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }
}

/* ========================================
   WRITING PAGE + SINGLE POST OVERRIDES
======================================== */

.writing-page h1,
.single-post-title {
  margin-bottom: 24px;
}

.writing-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.post-preview {
  border-top: 2px solid #d1007a;
  padding-top: 24px;
}

.post-preview:first-child {
  border-top: none;
  padding-top: 0;
}

.post-preview-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: start;
}

.post-thumb-wrap {
  display: block;
  width: 160px;
  height: 160px;
  overflow: hidden;
  border: 2px solid #d1007a;
  background: #cfe5de;
  flex-shrink: 0;
}

.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-preview-text {
  min-width: 0;
}

.post-preview-title {
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.post-preview-title a {
  text-decoration: underline;
}

.post-meta,
.post-taxonomy,
.single-post-meta,
.single-post-taxonomy {
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.post-excerpt {
  margin-top: 10px;
}

.post-excerpt p:last-child,
.single-post-content p:last-child {
  margin-bottom: 0;
}

.single-post-custom {
  border-top: 2px solid #d1007a;
  padding-top: 18px;
}

.single-post-thumb-wrap {
  width: 100%;
  max-width: 420px;
  max-height: 420px;
  margin: 20px 0;
  border: 2px solid #d1007a;
  overflow: hidden;
  background: #cfe5de;
}

.single-post-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.single-post-content {
  margin-top: 20px;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pagination {
  margin-top: 30px;
}

.pagination .page-numbers {
  display: inline-block;
  margin-right: 8px;
}

@media (max-width: 700px) {
  .post-preview-inner {
    grid-template-columns: 1fr;
  }

  .post-thumb-wrap {
    width: 100%;
    max-width: 220px;
    height: 220px;
  }

  .single-post-thumb-wrap {
    max-width: 100%;
  }
}

/* code for right sidebar */
/* HOMEPAGE 3-COLUMN LAYOUT */
/* .home .layout {
  width: calc(var(--sidebar-width) + var(--sidebar-width) + 700px + (var(--margin) * 2));
  max-width: 100%;
  display: grid;
  gap: var(--margin);
  align-items: start;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--sidebar-width);
  grid-template-areas:
    "header header header"
    "leftSidebar main rightSidebar"
    "footer footer footer";
}

.home #content,
.home main {
  min-width: 0;
}

.home .left-sidebar,
.home .right-sidebar {
  align-self: start;
  position: static;
} */

/* =========================
   STATUS UPDATES
========================= */

.status-updates {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 28px;
}

.status-update-card {
  background: #c7ebe0; /* slightly darker than main content */
  border: 2px solid #c4006f;
  border-radius: 18px;
  padding: 16px;
}

.status-update-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.status-avatar img,
.status-avatar .avatar {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c4006f;
}

.status-meta-wrap {
  min-width: 0;
}

.status-author {
  font-family: var(--heading-font);
  font-size: 1.05em;
  font-weight: bold;
  line-height: 1.2;
}

.status-meta {
  margin: 4px 0 0;
  font-size: 0.95em;
  opacity: 0.9;
}

.status-content p:last-child {
  margin-bottom: 0;
}

/* ========================================
   MEDIA LOG
======================================== */

.media-log-section h1 {
  margin-bottom: 12px;
}

.media-log-intro {
  margin-bottom: 24px;
}

.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.media-filters a {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid #c4006f;
  border-radius: 999px;
  background: #c7ebe0;
  text-decoration: none;
  font-weight: bold;
}

.media-filters a:hover,
.media-filters a:focus {
  background: #b8ddd1;
  text-decoration: none;
}

.media-filters a.active {
  background: #038462;
  color: #dcfcf2ff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 20px;
  align-items: start;
}

.media-card {
  background: #c7ebe0;
  border: 2px solid #c4006f;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 430px;
}

.media-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #b8ddd1;
  border-bottom: 2px solid #c4006f;
}

.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.media-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  color: var(--link-color);
}

.media-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.media-card-title {
  margin: 0 0 8px;
  line-height: 1.2;
  font-size: 1.15em;
}

.media-card-title a {
  text-decoration: underline;
}

.media-meta-line,
.media-creator,
.media-rating,
.media-review {
  margin: 0 0 10px;
}

.media-meta-line {
  font-size: 0.95em;
}

.media-type,
.media-status {
  font-weight: bold;
}

.media-rating {
  font-family: var(--heading-font);
  color: var(--link-color);
}

.media-review {
  line-height: 1.4;
  font-size: 0.95em;
}

@media (max-width: 700px) {
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .media-card {
    min-height: 360px;
  }
}

/* adding code to help with mobile responsiveness of homepage and making sure right sidebar operates accordingly */
@media (max-width: 800px) {
  .layout {
    width: 100%;
    max-width: 100%;
    grid-template-areas:
      "header"
      "main"
      "footer";
    grid-template-columns: 1fr;
  }

  .home .layout {
    width: 100%;
    max-width: 100%;
    grid-template-areas:
      "header"
      "leftSidebar"
      "main"
      "rightSidebar"
      "footer";
    grid-template-columns: 1fr;
  }

  .left-sidebar,
  .right-sidebar {
    width: 100%;
    max-width: 100%;
    position: static;
    align-self: stretch;
  }

  main,
  #content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* ========================================
   ART PAGE
======================================== */

.art-section h1 {
  margin-bottom: 12px;
}

.art-intro {
  margin-bottom: 24px;
}

.art-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.art-filters a {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid #c4006f;
  border-radius: 999px;
  background: #c7ebe0;
  text-decoration: none;
  font-weight: bold;
}

.art-filters a:hover,
.art-filters a:focus {
  background: #b8ddd1;
  text-decoration: none;
}

.art-filters a.active {
  background: #038462;
  color: #dcfcf2ff;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 20px;
  align-items: stretch;
}

.art-card {
  background: #c7ebe0;
  border: 2px solid #c4006f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.art-cover {
  display: block;
  width: 100%;
  max-height: 350px;
  overflow: hidden;
  background: #111;
  border-bottom: 2px solid #c4006f;
}

.art-cover img,
.art-cover video {
  width: 100%;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.art-cover-placeholder {
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  color: var(--link-color);
}

.art-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.art-card-title {
  margin: 0 0 8px;
  line-height: 1.2;
  font-size: 1.15em;
}

.art-meta-line,
.art-tools,
.art-year,
.art-description {
  margin: 0 0 10px;
}

.art-type,
.art-status {
  font-weight: bold;
}

.art-year {
  font-family: var(--heading-font);
  color: var(--link-color);
}

.art-description {
  line-height: 1.4;
  font-size: 0.95em;
}

@media (max-width: 700px) {
  .art-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* ========================================
   WRITING PAGE SIDEBAR FIX
======================================== */

.writing-page {
  width: 100%;
}

.writing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.writing-main {
  width: 100%;
  min-width: 0;
}

.writing-list {
  width: 100%;
}

.post-preview {
  width: 100%;
}

.post-preview-inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
}

.post-preview-text {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.post-preview-title {
  margin: 0 0 8px 0;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: normal;
}

.post-excerpt {
  max-width: none;
}

.writing-sidebar {
  background: #c7ebe0;
  border: 2px solid #c4006f;
  padding: 14px;
  color: #000;
}

.writing-widget {
  margin-bottom: 24px;
}

.writing-widget h2 {
  font-size: 1.1em;
  margin: 0 0 10px;
}

.writing-widget ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.writing-widget li {
  margin-bottom: 8px;
}

.writing-widget input[type="search"],
.writing-widget input[type="text"] {
  width: 100%;
  border: 2px solid #c4006f;
  padding: 8px;
  background: #dcfcf2ff;
  color: #000;
}

.writing-widget input[type="submit"],
.writing-widget button {
  margin-top: 8px;
  border: 2px solid #c4006f;
  background: #038462;
  color: #dcfcf2ff;
  padding: 8px 10px;
  cursor: pointer;
}

.writing-tag-cloud {
  line-height: 1.7;
}

@media (max-width: 800px) {
  .writing-layout {
    grid-template-columns: 1fr;
  }

  .post-preview-inner {
    grid-template-columns: 1fr;
  }
}

.writing-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  gap: 28px;
  align-items: start;
}

.writing-main {
  min-width: 0;
  width: 100%;
}

.writing-sidebar {
  grid-area: auto !important;
  align-self: start;
}

.post-preview-inner {
  grid-template-columns: 160px minmax(0, 1fr) !important;
}

.post-preview-text {
  min-width: 0;
  width: 100%;
}

.writing-sidebar {
  position: sticky;
  top: 50px;
}

@media (max-width: 800px) {
  .writing-sidebar {
    position: static;
  }
}

/* ========================================
   SEARCH RESULTS PAGE
======================================== */

.search-results-page h1 {
  margin-bottom: 24px;
}

.search-page .post-preview {
  border-top: 2px solid #d1007a;
  padding-top: 24px;
}

.search-page .post-preview:first-child {
  border-top: none;
  padding-top: 0;
}