/* reset and base styles */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-family: 'ABC Favorit Condensed', sans-serif;
    background: #fff;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

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

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

/* font definitions */
@font-face {
    font-family: 'Planet';
    src: url('/assets/files/fonts/Planet/Planet/PlanetDEMO-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Planet';
    src: url('/assets/files/fonts/Planet/Planet/PlanetDEMO-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Planet';
    src: url('/assets/files/fonts/Planet/Planet/PlanetDEMO-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Planet';
    src: url('/assets/files/fonts/Planet/Planet/PlanetDEMO-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Planet';
    src: url('/assets/files/fonts/Planet/Planet/PlanetDEMO-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Planet';
    src: url('/assets/files/fonts/Planet/Planet/PlanetDEMO-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Planet';
    src: url('/assets/files/fonts/Planet/Planet/PlanetDEMO-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Planet';
    src: url('/assets/files/fonts/Planet/Planet/PlanetDEMO-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* abc favorit mono - headings */
@font-face {
    font-family: 'ABC Favorit Mono';
    src: url('/assets/files/fonts/ABC%20Favorit%20Mono/ABCFavoritMono-Regular-Trial.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ABC Favorit Mono';
    src: url('/assets/files/fonts/ABC%20Favorit%20Mono/ABCFavoritMono-Bold-Trial.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* abc favorit condensed - body */
@font-face {
    font-family: 'ABC Favorit Condensed';
    src: url('/assets/files/fonts/ABC%20Favorit%20Condensed/ABCFavoritCondensed-Regular-Trial.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ABC Favorit Condensed';
    src: url('/assets/files/fonts/ABC%20Favorit%20Condensed/ABCFavoritCondensed-Bold-Trial.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.font-diatype {
    font-family: 'ABC Favorit Condensed', sans-serif;
}

/* abc favorit opentype alternates (see https://abcdinamo.com/typefaces/favorit)
   ss01: alternate a (single-storey) | ss02: alternate g | ss03: alternate r
   ss04: alternate y | ss05: alternate & | ss06: alternate ? | onum: oldstyle figures */
body,
.font-diatype,
.main-heading-semi-mono,
.section-heading-semi-mono,
.announcement-title {
    font-feature-settings: "ss01" 1, "ss02" 1, "ss03" 1, "ss04" 1, "ss05" 1, "ss06" 1, "onum" 1;
}

/* general typography & links */
body a {
    color: inherit;
    text-decoration: underline !important;
    text-decoration-color: #9ca3af !important;
    transition: text-decoration-color 0.2s ease;
}

@media (min-width: 768px) {
    body a:hover {
        text-decoration-color: #6b7280 !important;
    }
}

h1 a {
    text-decoration: none !important;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

@media (min-width: 768px) {
    .publication-link:hover {
        color: #374151 !important;
    }
}

.publication-link::after {
    content: "→";
    font-size: 0.75rem;
    opacity: 1;
    margin-left: 0.12rem;
    transition: color 0.2s ease;
}

.publication-link.no-arrow::after {
  content: none !important;
}

.paper-link {
    display: inline;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    text-decoration: underline !important;
    text-decoration-color: #9ca3af !important;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

@media (min-width: 768px) {
    .paper-link:hover {
        color: #374151 !important;
        text-decoration-color: #6b7280 !important;
    }
}

.paper-link::after {
    content: none;
}

h1 {
    font-family: 'ABC Favorit Mono', monospace;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

p, li {
    font-size: 1rem;
    color: #222;
}

.text-xs {
    font-size: 0.85rem;
}

.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight: 600;
}

/* layout */
header {
  background-color: #fff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0.75rem 0;
}

main {
    margin-top: 0;
    margin-left: 0;
    max-width: 800px;
    padding: 0 1rem;
    text-align: left;
}

.main-container {
    text-align: left;
}

.main-container p {
    text-align: justify;
}

footer {
  background-color: #fff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-text {
  font-size: 0.65rem;
}

.footer-text--small {
  font-size: 0.55rem;
}

.footer-icons {
  font-size: 0.7rem;
}

.footer-icons a {
  font-size: inherit;
}

/* headings & sections */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  position: relative;
  width: 100%;
}

.section-heading::before {
  content: '';
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #737373);
  align-self: center;
}

.section-heading .section-heading-semi-mono {
  color: #0f172a;
  letter-spacing: 0.015em;
}

.section-heading-line {
  display: none;
}

.main-heading-semi-mono {
  font-family: 'ABC Favorit Mono', monospace;
  font-weight: 700;
}

.section-heading-semi-mono {
  font-family: 'ABC Favorit Mono', monospace;
  font-weight: 700;
  font-size: 1.125rem;
}

.header-favicon {
    display: flex;
    align-items: center;
}

.header-favicon img {
    filter: grayscale(1);
    opacity: 0.7;
}

/* profile image loading states */
.profile-image {
  opacity: 0;
  background: #e5e7eb;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.profile-image.lazy-load {
  opacity: 0;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

.profile-image.loaded {
  opacity: 1;
  background: #e5e7eb;
  animation: none;
}

/* experience & cv */
.entry-item {
    position: relative;
    border-radius: 8px;
    padding: 8px 12px;
    margin: -8px -12px;
}

.entry-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.entry-content > * {
    line-height: 1;
    margin: 0;
}

.entry-content > span,
.entry-content > div {
    line-height: 1;
    margin: 0;
}

.entry-content .text-xs {
    line-height: 1;
    margin: 0;
    display: block;
}

.entry-content .flex {
    margin: 0;
}

.entry-header {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.entry-header span {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.cv-entry-spacing {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.cv-entry-spacing > * + * {
    margin-top: 0;
}

/* page-specific styles */
.announcement-title {
    font-family: 'ABC Favorit Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    line-height: 1;
}

.announcement-date {
    font-family: 'ABC Favorit Condensed', sans-serif;
}

.announcement-desc {
    font-size: 0.82rem;
    color: #444;
    margin-bottom: 0;
    opacity: 0.7;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    word-break: break-word;
    margin-top: 0.05rem !important;
}

/* mobile responsive styles */
@media (max-width: 768px) {
  main {
    padding: 0 1rem;
  }
  
  .main-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* expandable description content - experience section */
.cv-description-content {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.cv-description-content.hidden {
    display: none;
}

/* pagination alignment */
#prev-btn,
#next-btn {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    vertical-align: middle;
}

#page-indicator {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    vertical-align: middle;
}

/* appendix carousel - single row, auto-scrolls slowly */
.appendix-carousel-wrapper {
  max-width: 100%;
  border-radius: 0.125rem;
}

.appendix-carousel-track {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  animation: appendix-carousel-scroll 90s linear infinite;
}

.appendix-carousel-track:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .appendix-carousel-track {
    animation: none;
  }
}

.appendix-carousel-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 0.125rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .appendix-carousel-img {
    width: 100px;
    height: 100px;
  }
}

@keyframes appendix-carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* resources section - boxes same size as industry images, scrollable */
.resources-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.resources-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.resources-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: max-content;
}

.resource-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 130px;
  height: 130px;
  border-radius: 0.125rem;
  border: 1px solid #737373;
  padding: 0.5rem;
  font-size: 0.75rem;
  text-decoration: none;
  color: #374151;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.resource-box:hover {
  color: #111827;
}

.resource-box,
.resource-box * {
  text-decoration: none !important;
}

.resource-box-year {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  font-size: 0.65rem;
  color: #737373;
  text-decoration: none;
}

.resource-box-name {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  text-decoration: none;
}

.resource-box-type {
  position: absolute;
  bottom: 0.35rem;
  right: 0.35rem;
  font-size: 0.65rem;
  color: #737373;
  text-decoration: none;
}

@media (max-width: 768px) {
  .resource-box {
    width: 100px;
    height: 100px;
    font-size: 0.7rem;
  }
}

