/*
 *  Draco HTML Template by @flamekaizar
 *  License: Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
 */

:root {
  --bg-page: #ffffff;
  --bg-nav: #f8f8f8;
  --bg-card: #ffffff;
  --text-heading: #333333;
  --text-body: #4e4e4e;
  --text-muted: #8c8c8c;
  --text-faint: #999999;
  --border-muted: #b3b3b3;
  --watermark: #f4f4f4;
  --link-hover: #333333;
  --toggle-track: #d1d1d1;
  --toggle-track-active: #8c8c8c;
  --toggle-thumb: #ffffff; }

:root[data-theme="dark"] {
  --bg-page: #1a1a1a;
  --bg-nav: #191919;
  --bg-card: #1a1a1a;
  --text-heading: #f2f2f2;
  --text-body: #cfcfcf;
  --text-muted: #9a9a9a;
  --text-faint: #9a9a9a;
  --border-muted: #4d4d4d;
  --watermark: #262626;
  --link-hover: #ffffff;
  --toggle-track: #3a3a3a;
  --toggle-track-active: #6e6e6e;
  --toggle-thumb: #ffffff; }

html, body {
  background: var(--bg-page); }

body {
  color: var(--text-body);
  transition: background-color 0.25s ease, color 0.25s ease; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display SC", serif;
  color: var(--text-heading); }

a, p, li {
  font-family: "Lato", Arial, sans-serif;
  color: var(--text-body);
  font-size: 1em;
  line-height: 1.75em; }

a:hover {
  text-decoration: none !important;
  color: var(--link-hover) !important;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out; }

.container {
  margin: auto;
  max-width: 960px;
  padding: 0 20px; }

@media only screen and (max-width: 600px) {
  .intro img {
    display: block;
    margin-left: auto;
    margin-right: auto; }

  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px; } }
.typed-cursor {
  opacity: 1;
  font-weight: 100;
  -webkit-animation: blink 0.7s infinite;
  -moz-animation: blink 0.7s infinite;
  -ms-animation: blink 0.7s infinite;
  -o-animation: blink 0.7s infinite;
  animation: blink 0.7s infinite; }

@-webkit-keyframes blink {
  0% {
    opacity: 1; }
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@-moz-keyframes blink {
  0% {
    opacity: 1; }
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@-ms-keyframes blink {
  0% {
    opacity: 1; }
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@-o-keyframes blink {
  0% {
    opacity: 1; }
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
.main-nav {
  background: var(--bg-nav);
  padding-top: 23px;
  padding-bottom: 23px;
  transition: background-color 0.25s ease; }
  .main-nav .top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between; }
  .main-nav .brand {
    font-family: "Lato", Arial, sans-serif;
    text-align: left; }
    .main-nav .brand .brand-link {
      text-decoration: none; }
      .main-nav .brand .brand-link:hover {
        text-decoration: none !important; }
    .main-nav .brand .brand-first {
      font-size: 1.375em;
      font-weight: 400;
      font-style: normal;
      color: var(--text-heading); }
    .main-nav .brand .brand-last {
      font-size: 1.375em;
      font-weight: 700;
      font-style: italic;
      color: var(--text-heading); }
  .main-nav .social {
    margin: 0; }

@media only screen and (max-width: 600px) {
  .main-nav .top-nav {
    flex-wrap: nowrap; }

  .main-nav .social li {
    margin-left: 10px; } }

@media only screen and (max-width: 359px) {
  .main-nav .brand .brand-first,
  .main-nav .brand .brand-last {
    font-size: 1.1em; }

  .main-nav .social li {
    margin-left: 6px; }
    .main-nav .social li a {
      font-size: 1.1em; } }

.section.second {
  margin-bottom: 90px; }
.section .container {
  position: relative; }
  .section .container:after {
    position: absolute;
    content: url(../img/separator.svg);
    left: 20px; }
  .section .container h1 {
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative; }
  .section .container h2 {
    font-family: "Lato", Arial, sans-serif;
    font-weight: 700;
    font-size: 2em;
    text-transform: none;
    margin-bottom: 30px;
    position: relative; }

.intro {
  padding: 95px 0px 70px 0px;
  overflow-x: hidden; }
  .intro .wrap {
    margin: 30px 0px; }
  .intro .hero {
    position: relative;
    z-index: 0; }
  .intro .giant-name {
    position: absolute;
    left: 0;
    top: -0.25em;
    font-family: "Playfair Display SC", serif;
    font-weight: 700;
    font-size: 240px;
    line-height: 1;
    z-index: -1;
    color: var(--watermark);
    white-space: nowrap;
    pointer-events: none;
    transition: color 0.25s ease; }
  .intro .hero-row {
    position: relative;
    display: flex;
    align-items: center; }
  .intro .hero-avatar {
    flex: 0 0 auto;
    width: 81px;
    height: 81px;
    margin-right: 24px;
    border-radius: 99px; }
  .intro .hero-row h1 {
    margin: 0; }
  .intro .hero-row #typed {
    display: inline-block;
    font-size: 47px;
    line-height: 1.1; }
  .intro .hero-row .typed-cursor {
    display: inline-block;
    font-size: 47px; }
  .intro .bio {
    position: relative;
    margin-top: 150px;
    background: var(--bg-card);
    transition: background-color 0.25s ease; }
    .intro .bio p {
      font-size: 17px; }

@media only screen and (max-width: 600px) {
  /* Mobile hero layout: avatar + watermark side by side, tagline below,
     then a shorter gap before the bio paragraphs. Desktop keeps the
     original overlapping/bleeding watermark treatment untouched. */
  .intro {
    padding-top: 30px; }

  .intro .hero {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar watermark"
      "tagline tagline";
    align-items: center;
    column-gap: 16px;
    row-gap: 10px; }

  .intro .hero-row {
    display: contents; }

  .intro .hero-avatar {
    grid-area: avatar;
    margin: 0; }

  .intro .giant-name {
    grid-area: watermark;
    position: static;
    z-index: auto;
    text-align: left;
    font-size: calc((100vw - 137px) * 0.23); }

  .intro .hero-row h1 {
    grid-area: tagline;
    margin: 0; }

  .intro .hero-row #typed.typed-static {
    display: block;
    white-space: normal;
    font-size: 19px;
    line-height: 1.5; }

  .intro .bio {
    margin-top: 40px; } }

.work .work-list {
  margin-left: 0px;
  margin-bottom: 14px; }
  .work .work-list li {
    list-style: none;
    font-size: 1.1875em;
    color: var(--text-heading); }
    .work .work-list li a {
      padding-bottom: 2px;
      font-weight: 400;
      text-decoration: none;
      border-bottom: 1px solid var(--border-muted); }
      .work .work-list li a:hover {
        border-bottom: 1px solid var(--link-hover); }
    .work .work-list li em {
      font-style: italic;
      font-size: 0.9375em;
      color: var(--text-muted); }

.award .award-list {
  margin-left: 0px; }
  .award .award-list li:first-child {
    font-size: 0.9375em;
    color: var(--text-muted); }

.skills .skill-list {
  margin-left: 0px; }
  .skills .skill-list li:first-child {
    font-size: 0.9375em;
    color: var(--text-muted); }

.quote {
  background: url(../img/bg.jpg);
  padding: 20px 0px;
  margin-top: 120px; }
  .quote h1 {
    margin: 100px 0px;
    padding: 40px 20px;
    border: 5px solid #fff;
    color: #fff; }

footer {
  padding: 50px 0px 40px 0px; }
  footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between; }
  footer p {
    color: var(--text-muted);
    margin: 0; }

.social li {
  display: inline;
  margin-left: 12px; }
  .social li a {
    font-size: 1.25em;
    color: var(--text-faint); }

.marker-highlight {
  position: relative;
  z-index: 0;
  display: inline-block; }
.marker-highlight:before {
  content: "";
  background-color: orange;
  width: 95%;
  height: 0.2em;
  position: absolute;
  z-index: -2;
  filter: url(#marker-shape);
  left: -0.05em;
  padding: 0 0.25em;
  bottom: 0.2em; }

.theme-toggle-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px; }

.theme-icon {
  font-size: 14px;
  color: var(--text-faint);
  transition: color 0.25s ease; }

.theme-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 46px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--toggle-track);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.25s ease; }
  .theme-toggle .theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--toggle-thumb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease; }
  .theme-toggle[aria-pressed="true"] {
    background: var(--toggle-track-active); }
  .theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
    transform: translateX(20px); }


.theme-svg {
  transition: filter 0.25s ease; /* smooth toggle, matches the rest of the theme */
}
  
:root[data-theme="dark"] .theme-svg {
  filter: invert(1);
}