/* ============================================================
   IMPORTS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');


@font-face {
  font-family: 'andale';
  src: url("./fonts/ibm.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* ============================================================
   ROOT VARIABLES
   ============================================================ */

:root {
  /* Sizing */
  --site-font-size: 12px;
  --info-font-size: 13px;
  --info-line-height: 1.38;
  --article-space: 6rem;
  --article-font-size: 14px;
  --article-font-weight: normal;
  --article-line-height: 1.45;
  --left-padding: 1.5rem;
  --line-height: 28px;

  /* Fonts */
  --font-main: "Schibsted Grotesk", sans-serif;
  --font-serif: "Times New Roman", sans-serif;

  /* Repeated shorthand patterns */
  --section-padding-top: 1.25rem;
  --section-padding: var(--section-padding-top) 1.5rem 1.5rem var(--left-padding);

  /* Colors */
  --font-color: #292929; /*ededed*/
  --bg-color: white;
  --accent: #05b8ff;
  --accent-fade: #75b6d1;
  --highlight: #292929;
  --highlight-font: white;
  --faded: grey;
  --border: #ccc;
  --layout-border: #bababa; /*303030 bababa*/
  --dark-bg: #2d3038;
  --overlay: rgba(227, 251, 255, 0.5);
  --selected-font: #ff69af;
  --selected-bg: #dbdbdb;
  --button: white;
  --stone-grey: rgb(85, 85, 85);
  --back-color: #f7f7f7;

/*colors*/
--pink: #ffb5ee;

}

.dark-mode {
  --font-color: #cccccc;
  --bg-color: black; /*0f0f0f*/
  --accent: #05b8ff;
  --accent-fade: #75b6d1;
  --highlight: #333;
  --highlight-font: #fff4a3;
  --faded: #aaa;
  --border: #525252;
  --layout-border: #3b3b3b; /*3b3b3b*/
  --overlay: #2b2b2b;
  --selected-font: #ffc7e1;
  --selected-bg: #2d3038;
  --button: #1a1c1f;
  --stone-grey: #e6e6e6;
  --back-color: #1a1c1f;
}


/* ============================================================
   GLOBAL RESETS
   ============================================================ */

/* Hide scrollbars everywhere (Chrome/Safari, Firefox, IE/old Edge) */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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


/* ============================================================
   BASE TYPOGRAPHY
   ============================================================ */

a {
  text-decoration: none;
  color: var(--accent-fade); /* #229fa3 for teal color */
  cursor: pointer;
}

/* Style all external links */
a[href^="http://"], 
a[href^="https://"] {
  text-decoration: underline;
  color: var(--accent);
}

/* Add a visual indicator (like an arrow) next to external links
a[href^="http://"]::after, 
a[href^="https://"]::after {
  font-size: 12px;
  content: "\00a0 →";
  text-decoration: underline;
  display: inline-block;
}
 */

/* Exclude your own domain so it only applies to truly external sites */
a[href^="http://rida-jafar.github.io"], 
a[href^="https://rida-jafar.github.io"] {
  color: inherit;
  color: var(--accent-fade);
}


hr {
  /* Box Model */
  width: 100%;
  height: 0px;
  margin: 1em 0 1em 0;
  clear: both;
  border: 0.1px dashed var(--border);
}

p {
  margin-block: 0.8em;
}

strong {
  font-weight: 650;
  color: var(--stone-grey);
}

b {
  font-weight: 700;
}

blockquote {
  border-left: 0.3px solid var(--accent);
  margin-left: 0;
  padding-left: 40px;
  font-style: italic;
}

mark {
  background-color: var(--highlight);
  color: var(--highlight-font);
  padding: 2px 4px;
}

.bg-font {
  color: var(--faded);
  font-size: 12px;
  width: 80%;
}

.faded {
  color: var(--faded);
}

.flex-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

 .width-60 {
  width: 60%;
}

h1 {
  font-size: 26px;
  font-weight: 100;
  line-height: 1.2;
  margin-bottom: 0em;
  font-family: var(--font-serif);
}

h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 31px;
  font-family: var(--font-serif);
  color: var(--font-color);
}

h3 {
  font-size: 18px;
  color: var(--font-color);
  font-weight: 400;
}

h5 {
  font-size: 18px;
  color: var(--font-color);
  font-weight: 400;
  margin: 18px auto;
  width: 80%;
  text-align: center;
  line-height: 1.2;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures the image covers the full area */
  border-radius: 10px;
}

figure {
  width: 100%;
  margin: 1.25rem 0 1rem 0;
  padding: 0;
}

figcaption {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding-left: 0px;
  font-size: 10px;
  color: var(--font-color);
  text-align: left;
}

iframe {
  border-radius: 10px;
}

.text-bubble {
  padding: 0px 5px 0px 5px;
  border: 1px solid var(--layout-border);
  border-radius: 6px;
  background-color: var(--back-color);
  color: var(--font-color);
  white-space: nowrap;
}

.header-bubble {
  border-radius:6px; 
  padding:4px 4px 4px 4px; 
  background-color: var(--back-color); 
  color: var(--font-color);
  margin: 0px; 
  font-size: var(--site-font-size);
  height: 15px;
}

.header-bubble > span {
  padding: 0;
  margin: 0;
  line-height: inherit;
    vertical-align: baseline;
}


/* ============================================================
   BODY / PAGE SHELL
   ============================================================ */

body {
  /* Positioning */
  display: grid;
  padding: 0px 0px 0px 0px;
  grid-template-rows: auto 1fr auto auto;
  grid-template-columns: 1.5fr 6fr; /* used to be 1.5 not 3*/
  grid-template-areas:
    "header header"
    "sidebar main"
    "sidebar main"
    "footer footer";
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  /* Box Model */
  margin: 0;
  box-sizing: border-box;
  /* Typography */
  font-family: var(--font-main);
  font-size: var(--site-font-size);
  font-weight: normal;
  color: var(--font-color);
  /* Visual */
  background: var(--bg-color);
  -webkit-font-kerning: auto;
  -webkit-font-smoothing: antialiased; /*can change to anti-aliased*/
  -moz-osx-font-smoothing: grayscale;
}

/* Header */

header {
  /* Positioning */
  grid-area: header;
  z-index: 2000;
  /* Box Model */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem var(--left-padding) 0.5rem var(--left-padding);
  border-bottom: 0.3px solid var(--layout-border);
  /* Typography */
  font-family: var(--font-main);
  font-size: var(--site-font-size);
  color: var(--font-color);
  text-align: center;
  /* Visual */
  background: var(--bg-color);
}

.mobile-header {
  display: none; /* Hidden by default, shown on mobile breakpoint */
}

header p {
  /* Box Model */
  margin: 0;
  padding: 0;
}

header a {
  color: var(--font-color);
}

/* Sidebar nav */

aside.main-sidebar {
  /* Positioning */
  grid-area: sidebar;
  /* Box Model */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--section-padding-top) var(--left-padding) 0 var(--left-padding);
  /* Typography */
  font-family: var(--font-main);
  font-size: var(--site-font-size);
  /* Visual */
  background: var(--bg-color);
  border-right: 0.3px solid var(--layout-border);
}

nav.main-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

nav.main-nav > p {
  line-height: 1.38;
}

.main-nav-footer {
  text-align: left;
  align-self: start;
  padding-bottom: 0px;
}

nav.main-nav ul {
  list-style: none;
  padding: 0;
  margin-block: 0rem 0.8rem;
  display: flex;
  flex-direction: column;
  width: 100%;
}

nav.main-nav ul li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

nav.main-nav a.page-link {
  padding: 0.1rem 0 0.3rem 0rem;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: var(--font-color);
  font-weight: normal;
  flex: 1;
}

nav.main-nav a.page-link:hover::after,
.selected a.page-link::after {
  padding-left: 5px;
  content: " ●";
}

nav.main-nav a.page-link:hover::after {
  color: var(--faded);
}

.bottom-nav {
  border-top: 0.3px solid var(--layout-border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.hamburger-toggle {
  display: none; /* Hidden by default, shown on mobile breakpoint */
  font-size: var(--info-font-size);
  background: var(--button);
  border-radius: 5px;
  padding: 5px 8px 5px 8px;
  border: 0.3px solid var(--border);
  z-index: 1000;
  cursor: pointer;
}

/* Main */

main {
  padding-left: 10px;
}

footer {
    /* Positioning */
  grid-area: footer;
  height: 20px;
  z-index: 2000;
  /* Box Model */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem var(--left-padding) 0.5rem var(--left-padding);
  border-top: 0.3px solid var(--layout-border);
  /* Typography */
  font-family: var(--font-main);
  font-size: var(--site-font-size);
  color: var(--font-color);
  text-align: center;
  /* Visual */
  background: var(--bg-color);
}

footer p {
  /* Box Model */
  margin: 0;
  padding: 0;
}


/* ============================================================
   FULLSCREEN MODE
   ============================================================ */

body.fullscreen {
  grid-template-columns: 0 1fr;
}


.fullscreen .article-layout {
  grid-template-columns: 3fr 6fr 3fr; /* fix? */
  gap: 50px;
}

.fullscreen article {
  grid-column: 2;
}

.fullscreen aside.article-sidebar {
    grid-column: 3;
}

.fullscreen .main-sidebar {
  visibility: hidden;
  display: none;
  opacity: 0;
}


/* ============================================================
   TOGGLE BUTTON
   ============================================================ */

.toggle-button {
  padding: 3px 6px;
  font-size: var(--site-font-size);
  border-radius: 6px;
  color: var(--font-color);
  border: 0.3px solid var(--border);
  background: var(--button);
}

.toggle-button:hover {
  cursor: pointer;
  color: var(--bg-color);
  background: var(--font-color);
}


/* ============================================================
   COLUMN UTILITY CLASSES
   ============================================================ */

.col-1 {
  width: calc((3 / 12) * 100%);
  color: grey;
}

.col-2 {
  width: calc((9 / 12) * 100%);
}

.col-12 {
  width: calc((12 / 12) * 100%);
  border-bottom: 0.3px dashed grey;
}


/* ============================================================
   INDEX LAYOUT
   ============================================================ */

main.index-layout {
  grid-area: main;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.index-section {
  width: 100%;
  padding: var(--section-padding);
}

.index-info {
  width: 60%;
  font-size: var(--info-font-size);
  font-weight: var(--article-font-weight);
  line-height: var(--info-line-height);
}

.dual-column {
  display: flex;
  flex-direction: row;
  width: 100%;
  border-top: 0.3px dashed var(--layout-border);
}

.col-list-bullet {
  list-style: circle;
  list-style-position: inside;
  padding-left: 0;
}

.col-list-plain {
  list-style: none;
  list-style-position: inside;
  padding-left: 0;
}

.index-nav {
  list-style: circle;
  list-style-position: inside;
  padding-left: 0;
}

.index-nav-plain {
  list-style: none;
  list-style-position: inside;
  padding-left: 0;
}


/* ============================================================
   WRITING TABLE LAYOUT
   ============================================================ */

/* Layout container */
main.writing-layout {
  grid-area: main;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 2fr;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-color);
  font-size: var(--info-font-size);
  padding-left: 0;
}

/* Content sections */
.writing-list {
  grid-column: 1;
  grid-row: 2;
  padding-top: 15px;
}

/* Table layout */
table.writing-table {
  width: 100%;
  border-spacing: 0px 0px;
  table-layout: fixed;
}

.writing-table thead th {
  border-bottom: 0.3px solid var(--layout-border);
  border-top: 0.3px solid var(--layout-border);
  font-weight: 500;
  color: var(--font-color);
}

.writing-table thead th:last-child {
  border-right: none;
}

.writing-table th,
.writing-table td {
  padding: 5px var(--left-padding) 5px var(--left-padding);
  text-align: left;
  font-weight: var(--article-font-weight);
  font-size: 13px;
}

.writing-table tbody th,
.writing-table tbody td,
.writing-table tbody {
  border: none;
}

.writing-table tbody tr:hover {
  color: var(--faded);
  cursor: pointer;
}

/* Image reveal section */
.writing-preview {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4.5rem;
  padding: var(--section-padding);
}

.entries-intro {
flex-grow: 1;
}

.image-reveal-box {
  grid-column: 3 / 4;
  width: 380px;
  height: 257px;
  justify-self: end;
}

.image-reveal-box img,
img.image-reveal {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  object-position: center center;
}


/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */

main.article-layout {
  grid-area: main;
  display: grid;
  grid-template-columns: 5fr 3fr; /* fix? used to be 2.5*/
  grid-template-rows: 1fr;
  gap: 45px;
  align-items: start; /* aligns content to top in grid */
  width: 100%;
  margin: 0.3px; /* gives line to header */
  padding: var(--section-padding);
  box-sizing: border-box;
  overflow: auto;
  background: var(--bg-color);
}

/* Article content */
.article-content {
  padding-left: 0;
  padding-top: 0px; /* was 8 */
  width: 100%;
}

/* Article main area */
article {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  font-size: var(--article-font-size);
  font-weight: var(--article-font-weight);
  line-height: var(--article-line-height);
}

.bubble-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.article-title {
  margin-bottom: 0;
}

.article-date {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 0;
}

.article-brief {
  margin-top: 0;
}

aside.article-sidebar {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  font-size: 12px;
  padding-top: 0px;
  color: var(--font-color);
  flex-direction: column;
}

.article-nav {
  width: 100%;
  position: sticky;
  top: 0px;
  z-index: 10;
  color: var(--faded);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.article-nav ol {
  list-style-position: inside;
  margin-left: 0;
  padding-left: 0;
}

.article-nav ol li {
  padding-bottom: 2px;
  color: var(--faded);
}

nav.article-nav a {
  text-decoration: none;
  color: var(--faded);
  font-weight: normal;
}

nav.article-nav a:hover {
  color: var(--font-color);
}

/* Meta info section */
.meta-info {
  display: flex;
  color: var(--faded);
  align-items: center;
  font-size: 12px;
  margin-bottom: 0em;
}

/* Divider */
.divider {
  width: 1px;
  height: 12px;
  margin: 0 0.5rem;
  background-color: var(--font-color);
  opacity: 0.5;
}

/* Links */
.link {
  text-decoration: none;
  transition: opacity 0.2s;
}

.link:hover {
  text-decoration: underline;
}


/* ============================================================
   COLLECTIONS LAYOUT
   ============================================================ */

.collection-layout {
  grid-area: main;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  background: var(--bg-color);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0px;
}

/* Section blocks */
.coll-section {
  width: 100%;
  box-sizing: border-box;
  padding: var(--section-padding);
  border-bottom: 0.3px solid var(--layout-border);
}

/* Content blocks */
.coll-content {
  width: 100%;
  font-size: var(--info-font-size);
  font-weight: var(--article-font-weight);
  line-height: var(--info-line-height);
}

.coll-content.long {
  width: 100%;
  display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));  

  gap: 35px;
  padding: var(--section-padding);
   box-sizing: border-box;
}


/* Grid layout */
.coll-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 0;
  align-items: start;
  width: 100%;
  margin: 0.3px;
  box-sizing: border-box;
  background: var(--bg-color);
  overflow: auto;
}

/* Table */
.coll-table {
  width: 100%;
    padding: var(--section-padding);
    box-sizing: border-box;
    border-bottom: 0.3px solid var(--layout-border);
}

.coll-table > p {
  font-size: var(--info-font-size);
  line-height: var(--info-line-height);
}

/* Lists */
.coll-list {
  width: 100%;
}

.image-list ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.image-list li {
  display: inline-block;
  line-height: 1.4rem;
  padding-right: 6px;
}

.image-list a {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  color: var(--font-color);
  text-decoration: none;
}

.image-list img {
  height: 40px;
  width: auto;
  margin-right: 8px;
  aspect-ratio: 1/1;
  border-radius: 10px;
}

.image-list sup {
  color: var(--faded);
}

.image-list li a:hover {
  cursor: pointer;
  text-decoration: underline;
}

.list-title {
  font-size: 13px;
}

/* Three column list */
.three-column-list ul {
  display: inline-block;
  columns: auto 3;
  width: 100%;
  vertical-align: top;
  padding: 0;
  margin: 0;
  list-style: none;
}

.three-column-list li {
  line-height: 1.4rem;
}

.three-column-list li a {
  color: var(--font-color);
  font-weight: 400;
}

.three-column-list li:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* Modules */
.module {
  display: flex;
  flex-direction: column;
  font-size: var(--info-font-size);
  line-height: var(--info-line-height);
  margin-bottom: 0px;
}


.module-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 20px;
  border-radius: 6px;
  padding: 3px 3px 3px 3px;
  background-color: var(--back-color);
  color: var(--font-color);
}

.module-title,
.module-type {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 12px;
}

/* Custom numbered list */
.custom-numbered-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
  font-size: 14px;
}

.custom-numbered-list li {
  display: flex;
  align-items: flex-start;
  line-height: 22px;
  margin: 0;
  padding: 0;
}

.custom-numbered-list ul {
  padding-left: 20px;
}

/* Book section layout */
.col-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.col-inserts {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  align-content: center;
  width: 100%;
  padding-top: 6px;
  margin: 0;
}

.col-small {
  width: calc(2 / 12 * 100%);
}

.col-medium {
  width: calc(2 / 12 * 100%);
}

.col-large {
  width: calc(8 / 12 * 100%);
}

.col-book {
  width: 50%;
  border-radius: 5px;
  transition: transform 0.2s ease;
}

.col-list {
  list-style: inside none;
  padding: 0;
  margin: 0;
}

.col-book:hover {
  transform: scale(1.2);
}


/* ============================================================
   BLOG LAYOUT
   ============================================================ */

main.blog-layout {
  grid-area: main;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  background: var(--bg-color);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 20px 0;
  font-size: var(--info-font-size);
}

/* Blog post selection */
.blog-select {
  border: 0.3px solid var(--layout-border);
  border-radius: 20px;
  padding: 3px 6px;
}

/* Blog post styling */
.blog-post {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  position: relative;
  border-bottom: 0.3px solid var(--layout-border);
  grid-template-areas: "header content";
  display: grid;
  grid-template-columns: 1fr 6fr; /* fix? used to be 2.5*/
  grid-template-rows: 1fr;
  gap: 0px;
}

.blog-post:not(:first-child) {
  border-bottom: 0px solid var(--layout-border);
}

.blog-post h3 {
  margin-top: 0;
}

.blog-start {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 14%;
  padding: 1.5rem;
  padding-bottom: 2.5rem;
}

.blog-header {
  grid-area: header;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  height: 80%;
  box-sizing: border-box;
  padding: var(--section-padding);
  font-weight: 200;
  color: var(--faded);
}

.year-select {
  margin: 0;
  width: auto;
  white-space: nowrap;
  display: inline-block;
}

.blog-content {
  grid-area: content;
  overflow-x: hidden;
  width: auto;
  height: auto;
  padding: 1rem 0rem 40px 0rem;
  padding-top: 20px;
  font-size: var(--info-font-size);
  font-weight: var(--article-font-weight);
  line-height: var(--info-line-height);
}

.blog-text {
  width: 50%;
  overflow-x: none;
}

/* Image scroll container */
.image-scroll-container {
  width: 100%;
  position: relative;
  left: 0;
    overflow: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* Blog images */
.blog-img {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 1rem;
    width: max-content; 
}

.blog-img img {
  flex-shrink: 0;        /* stop images from squishing to fit */
  height: 200px;         /* pick a fixed height for consistency */
  width: auto;
    max-width: none;
}


/* ============================================================
   MEDIA QUERIES
   ============================================================ */

@media (max-width: 1150px) {


  nav.main-nav ul li,
  nav a,
  .bottom-nav {
    width: 100%;
    aspect-ratio: unset;
  }


  #fullscreen-toggle {
    display: none;
    visibility: hidden;
  } 

  /* Index */
  .index-info {
    width: 70%;
  }

  .index-section {
    padding-right: var(--left-padding);
  }


  /* Article */
  main.article-layout {
    grid-template-columns: 3fr 1fr;
  }

  aside.article-sidebar {
    visibility: hidden;
    display: none;
    }


  /* Collections */
  .coll-content {
    width: 100%;
  }

  .coll-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    padding-right: var(--left-padding);
  }

  .coll-content.long {
    grid-row: 2;
  }

  .coll-table {
    grid-row: 1;
    position: unset;
  }

  /* Blog post */
  .blog-post {
    padding: 1.5rem;
  }

  .blog-header {
    width: 100%;
  }

  .blog-header {
    padding: 0;
  }

  .blog-content {
    width: 100%;
    padding-bottom: 0px;
        padding-top: 0px;
  }

}


@media (max-width: 900px) {

  main.article-layout {
    grid-template-columns: 1fr;
  }


  .width-60 {
    width: 100%;
  }


  /* Blog post */
  .blog-post {
    grid-template-areas: 
         "header"
      "content";

    grid-template-columns: 1fr;
    grid-template-rows: auto;
    flex-direction: column;
  }

  .blog-header {
    padding: 0;
  }

  .blog-text {
    width: 70%;
  }

    .blog-content {
    padding-top: 0px;
  }

  /* Writing */
  .writing-preview {
    justify-content: center;
    align-items: flex-start;
      flex-direction: column;
      gap: 10px;
  }

  .table-category {
    display: none;
    visibility: hidden;
    opacity: 0;
  }

  .col-small {
  width: calc(4 / 12 * 100%);
}

.col-medium {
  width: calc(0 / 12 * 100%);
}

.col-large {
  width: calc(8 / 12 * 100%);
}

td, th {
  vertical-align: top; /* Options: top | middle | bottom */
}

  .entries-intro {
    width: 100%;
  }

  .image-reveal-box {
    width: auto;
    height: 200px;
  }

  /* Index */
  .index-info {
    width: 100%;
  }

}

@media (max-width: 768px) {

  header {
    display: none;
  }

  body {
    grid-template-columns: 1fr; /* Stack sidebar & content */
    grid-template-areas:
      "header"
      "main"
      "footer";
    padding-top: 2.5rem;
  }



  /* Blog post */
  .blog-post {
    grid-template-areas: 
      "header"
      "content";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    flex-direction: column;
  }

  .blog-header {
    padding: 0;
  }

  .blog-text {
    width: 100%;
  }

  /* Mobile header + off-canvas nav */
  .mobile-header {
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
  }

  .main-sidebar {
    position: fixed;
    top: 0;
    top: -100%;
    width: 100%;
    height: auto;
    background: var(--bg-color);
    transition: left 0.3s ease;
    z-index: 998;
  }

  aside.main-sidebar.active {
    top: 0;
    border-bottom: 0.3px solid var(--layout-border);
    font-size: var(--info-font-size);
  }

  .article-meta-date {
    display: none;
  }

  aside.main-sidebar.active > .main-nav > ul > p {
    display: none;
    visibility: hidden;
  }

  aside.main-sidebar {
    margin-top: 30px;
  }

  .hamburger-toggle {
    display: flex;
    justify-content: center;
    color: var(--font-color);
  }

  .hamburger-toggle.invert {
    filter: invert(100%);
  }

  .site-update {
    display: none;
  }

}