@import url("https://fonts.googleapis.com/css2?family=Alegreya:wght@400;500;700&family=IM+Fell+English:ital@0;1&display=swap");

/* Color variables */
:root {
  --blue: #e68b34;
  --green: #c56731;
  --dark: #120d0a;
  --darker: #504235;
  --gray-300: #d5c9c6;
  --gray-400: #b7a8a5;
  --white: #ffffff;
  --black: #000000;
  --text: #d5c9c6;
  --links: #e68b34;
  --buttons: #c56731;
  --buttons-hover: #e68b34;
  --border: #504235;

  --parchment: #120d0a;
  --parchment-dark: #504235;
  --parchment-darker: #8d7f7d;
  --parchment-darkest: #c56731;
}

.border-gold {
  border-style: solid;
  border-width: 4px;
  border-color: navajowhite;
}

.border-rounded-large {
  border-radius: 12px;
}

.parchment {
  background-color: var(--parchment);
}

.parchment-dark {
  background-color: var(--parchment-dark);
}

.parchment-darker {
  background-color: var(--parchment-darker);
} 

.parchment-darkest {
  background-color: var(--parchment-darkest);
}

/* Text colors */
.text-blue {
  color: var(--blue);
}
.text-green {
  color: var(--green);
}

.text-white {
  color: var(--white);
}

.text-gray-300 {
  color: var(--gray-300);
}

.text-gray-400 {
  color: var(--gray-400);
}

.text-dark {
  color: var(--text);
}

/* Background colors */
.bg-blue {
  background-color: var(--blue);
}

.bg-green {
  background-color: var(--green);
}

.bg-darker {
  background-color: var(--darker);
}

.bg-dark {
  background-color: var(--dark);
}

/* Additional background utility for cohesion */
.bg-parchment {
  background-color: var(--parchment);
}

/* Opacity variants */
[class*="bg-darker/80"] {
  background-color: rgba(26, 26, 26, 0.8);
}

[class*="bg-blue/10"] {
  background-color: rgba(230, 139, 52, 0.1);
}

[class*="bg-blue/20"] {
  background-color: rgba(230, 139, 52, 0.2);
}

[class*="bg-blue/30"] {
  background-color: rgba(230, 139, 52, 0.3);
}

[class*="bg-blue/90"] {
  background-color: rgba(230, 139, 52, 0.9);
}

[class*="bg-darker/50"] {
  background-color: rgba(26, 26, 26, 0.5);
}

[class*="text-blue/80"] {
  color: rgba(230, 139, 52, 0.8);
}

[class*="text-blue/10"] {
  color: rgba(230, 139, 52, 0.1);
}

[class*="border-blue/10"] {
  border-color: rgba(230, 139, 52, 0.1);
}

[class*="border-blue/20"] {
  border-color: rgba(230, 139, 52, 0.2);
}

[class*="border-blue/40"] {
  border-color: rgba(230, 139, 52, 0.4);
}

[class*="hover:bg-blue/10"]:hover {
  background-color: rgba(230, 139, 52, 0.1);
}

[class*="hover:bg-blue/90"]:hover {
  background-color: rgba(230, 139, 52, 0.9);
}

[class*="hover:text-blue"]:hover {
  color: var(--blue);
}

[class*="hover:text-blue/80"]:hover {
  color: rgba(230, 139, 52, 0.8);
}

[class*="hover:scale-105"]:hover {
  transform: scale(1.05);
}

.border-b-2 {
  border-bottom-width: 2px;
}

.border-color-blue {
  border-color: var(--blue);
}

/* Cohesive border utility used in templates */
.border-blue {
  border-color: var(--blue);
}

.a:visited {
  color: var(--gray-300);
}

body {
  font-family: "Alegreya", serif;
  background-color: var(--parchment);
  color: var(--gray-300);
  scroll-behavior: smooth;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--parchment-darkest);
}

.gradient-text {
  background: linear-gradient(90deg, #c56731, #e68b34);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s;
}

.skill-pill:hover {
  transform: scale(1.05);
}

.flex {
  display: flex;
  gap: 1rem;
}

.bg-darker {
  background-color: #504235;
}

.bg-darker {
  background-color: #504235;
}

/* Focus */
.focus\:outline-none:focus {
  outline: none;
}

/* Layout */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.items-start {
  align-items: flex-start;
}

.items-baseline {
  align-items: baseline;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-3 {
  gap: 0.75rem;
}

.space-x-8>*+* {
  margin-left: 2rem;
}

.space-x-4>*+* {
  margin-left: 1rem;
}

.space-x-2>*+* {
  margin-left: 0.5rem;
}

.space-y-1>*+* {
  margin-top: 0.25rem;
}

.space-y-6>*+* {
  margin-top: 1.5rem;
}

/* Sizing */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.w-64 {
  width: 16rem;
}

.h-64 {
  height: 16rem;
}

.w-80 {
  width: 20rem;
}

.h-80 {
  height: 20rem;
}

.w-56 {
  width: 14rem;
}

.h-56 {
  height: 14rem;
}

.w-72 {
  width: 18rem;
}

.h-72 {
  height: 18rem;
}

.w-48 {
  width: 12rem;
}

.h-48 {
  height: 12rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-3 {
  width: 0.75rem;
}

.h-3 {
  height: 0.75rem;
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.h-16 {
  height: 4rem;
}

.h-48 {
  height: 12rem;
}

/* Spacing */
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-16 {
  margin-top: 4rem;
}

.ml-10 {
  margin-left: 2.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-4 {
  margin-left: 1rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-3 {
  padding: 0.75rem;
}

.pr-10 {
  padding-right: 2.5rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.my-10 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

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

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

.font-medium {
  font-weight: 500;
}

.text-center {
  text-align: center;
}

/* Borders */
.border {
  border-width: 1px;
}

.border-box {
  box-sizing: border-box;
}


.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-l-2 {
  border-left-width: 2px;
}

.border-2 {
  border-width: 2px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded {
  border-radius: 0.25rem;
}

/* Effects */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.transform {
  transform: var(--tw-transform);
}

/* Positioning */
.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.z-50 {
  z-index: 50;
}

.-bottom-5 {
  bottom: -1.25rem;
}

.-right-5 {
  right: -1.25rem;
}

/* Display */
.block {
  display: block;
}

.hidden {
  display: none;
}

.inline-flex {
  display: inline-flex;
}

.overflow-hidden {
  overflow: hidden;
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

.object-fill {
  object-fit: fill;
}

.object-center {
  object-position: center;
}

.min-h-screen {
  min-height: 100vh;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }

  .md\:hidden {
    display: none;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:w-1\/2 {
    width: 50%;
  }

  .md\:mb-0 {
    margin-bottom: 0;
  }

  .md\:pr-10 {
    padding-right: 2.5rem;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .md\:w-80 {
    width: 20rem;
  }

  .md\:h-80 {
    height: 20rem;
  }

  .md\:w-72 {
    width: 18rem;
  }

  .md\:h-72 {
    height: 18rem;
  }

  .md\:w-64 {
    width: 12rem;
  }

  .md\:h-64 {
    height: 12rem;
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:items-end {
    align-items: flex-end;
  }

  .md\:mb-0 {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.decoration-none {
  text-decoration: none;
}

/* Rustic layout */
.rustic-body {
  background:
    radial-gradient(circle at 15% 10%, rgba(230, 139, 52, 0.16), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(141, 127, 125, 0.18), transparent 40%),
    linear-gradient(160deg, #120d0a 0%, #221812 40%, #120d0a 100%);
}

.rustic-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 70;
  border: 1px solid rgba(230, 139, 52, 0.4);
  border-radius: 9999px;
  background-color: rgba(18, 13, 10, 0.86);
  color: #e68b34;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rustic-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 13, 10, 0.55);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.rustic-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 265px;
  height: 100vh;
  z-index: 60;
  box-sizing: border-box;
  border-right: 1px solid rgba(230, 139, 52, 0.35);
  background:
    linear-gradient(180deg, rgba(80, 66, 53, 0.7) 0%, rgba(18, 13, 10, 0.92) 100%),
    repeating-linear-gradient(45deg, rgba(141, 127, 125, 0.08) 0, rgba(141, 127, 125, 0.08) 8px, transparent 8px, transparent 16px);
  padding: 4.75rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(0);
  transition: transform 240ms ease;
}

.rustic-main {
  margin-left: 265px;
  padding: 2rem;
  transition: margin-left 240ms ease;
}

.sidebar-collapsed .rustic-sidebar {
  transform: translateX(-100%);
}

.sidebar-collapsed .rustic-main {
  margin-left: 0;
}

.sidebar-collapsed .rustic-overlay {
  opacity: 0;
  pointer-events: none;
}

.rustic-brand {
  margin: 0;
  color: #d5c9c6;
  font-family: "IM Fell English", serif;
  font-size: 2rem;
  line-height: 1.1;
}

.rustic-brand span {
  color: #e68b34;
}

.rustic-subtitle {
  color: #b7a8a5;
  margin: 0.8rem 0 0.2rem;
}

.rustic-small {
  color: #b7a8a5;
  line-height: 1.55;
}

.rustic-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.rustic-nav-link {
  color: #d5c9c6;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding: 0.5rem 0.7rem;
  transition: all 180ms ease;
}

.rustic-nav-link:hover {
  color: #e68b34;
  border-left-color: #e68b34;
  background-color: rgba(230, 139, 52, 0.08);
}

.rustic-sidebar-footer {
  border-top: 1px dashed rgba(141, 127, 125, 0.45);
  padding-top: 1rem;
}

.rustic-panel {
  background:
    linear-gradient(150deg, rgba(80, 66, 53, 0.4), rgba(18, 13, 10, 0.55));
  border: 1px solid rgba(230, 139, 52, 0.25);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.rustic-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
}

.rustic-kicker {
  color: #c56731;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.82rem;
}

.rustic-hero-title {
  font-family: "IM Fell English", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin: 0.5rem 0 1rem;
}

.rustic-intro {
  max-width: 48ch;
  color: #d5c9c6;
}

.rustic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.rustic-button {
  text-decoration: none;
  padding: 0.62rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #c56731;
  background-color: #c56731;
  color: #120d0a;
  font-weight: 700;
}

.rustic-button:hover {
  background-color: #e68b34;
  border-color: #e68b34;
}

.rustic-button-ghost {
  background-color: transparent;
  color: #d5c9c6;
}

.rustic-button-ghost:hover {
  color: #120d0a;
}

.rustic-avatar-wrap {
  display: flex;
  justify-content: center;
}

.rustic-avatar-frame {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 3px solid rgba(230, 139, 52, 0.6);
  padding: 0.35rem;
  background: radial-gradient(circle at 30% 20%, rgba(230, 139, 52, 0.28), rgba(80, 66, 53, 0.6));
}

.rustic-avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.rustic-section-head {
  margin-bottom: 1.2rem;
}

.rustic-section-title {
  font-family: "IM Fell English", serif;
  font-size: 2rem;
  margin: 0;
}

.rustic-card {
  background: linear-gradient(160deg, rgba(18, 13, 10, 0.6), rgba(80, 66, 53, 0.45));
  border: 1px solid rgba(141, 127, 125, 0.4);
  border-radius: 12px;
  overflow: hidden;
}

.rustic-card-media {
  display: block;
  height: 12rem;
}

.rustic-tech {
  color: #e68b34;
  font-size: 0.88rem;
}

.rustic-link {
  color: #e68b34;
  text-decoration: none;
}

.rustic-link:hover {
  color: #c56731;
}

.rustic-icon-link {
  color: #d5c9c6;
  text-decoration: none;
  font-size: 0.9rem;
}

.rustic-icon-link:hover {
  color: #e68b34;
}

.rustic-body-copy {
  color: #d5c9c6;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.rustic-chip {
  border: 1px solid rgba(230, 139, 52, 0.4);
  background-color: rgba(80, 66, 53, 0.55);
  color: #d5c9c6;
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
}

.rustic-timeline-item {
  border-left: 2px solid #c56731;
  padding-left: 0.8rem;
}

.rustic-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #b7a8a5;
  padding: 1rem 0.3rem 0.1rem;
}

@media (max-width: 960px) {
  .rustic-main {
    margin-left: 0;
    padding: 4.2rem 1rem 1rem;
  }

  .rustic-sidebar {
    transform: translateX(-100%);
  }

  body:not(.sidebar-collapsed) .rustic-sidebar {
    transform: translateX(0);
  }

  .rustic-hero {
    grid-template-columns: 1fr;
  }

  .sidebar-collapsed .rustic-overlay {
    opacity: 0;
    pointer-events: none;
  }

  body:not(.sidebar-collapsed) .rustic-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}