/* Base palette and typography mirroring the React template */
:root {
  --color-cream: #fbf8f3;
  --color-cream-dark: #f5efe6;
  --color-text: #2c2416;
  --color-text-light: #5c533f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--color-cream);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  font-family: "Georgia", serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-text-light);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: var(--color-text);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
}

p {
  font-size: 1rem;
  margin: 0;
}

/* Utility classes inspired by the Tailwind-based template */
.min-h-screen {
  min-height: 100vh;
}

.max-w-3xl {
  max-width: 48rem; /* 768px */
}

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

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

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

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

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

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

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

.mt-2 {
  margin-top: 0.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.space-y-10 > * + * {
  margin-top: 2.5rem;
}

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

.text-muted {
  color: var(--color-text-light);
}

.border-b {
  border-bottom: 1px solid transparent;
}

.border-t {
  border-top: 1px solid transparent;
}

.border {
  border: 1px solid transparent;
}

.border-l-2 {
  border-left: 2px solid transparent;
}

.border-soft {
  border-color: rgba(92, 83, 63, 0.2);
}

.border-soft-strong {
  border-color: rgba(92, 83, 63, 0.3);
}

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

.grid {
  display: grid;
}

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

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

.gap-8 {
  gap: 2rem;
}

.flex {
  display: flex;
}

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

.gap-6 {
  gap: 1.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

.sm-flex-row {
  display: flex;
}

/* Section-specific styling */
.project-block {
  border-left: 2px solid rgba(92, 83, 63, 0.3);
  padding-left: 1.5rem;
}

.project-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .project-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
  .sm-mt-0 {
    margin-top: 0 !important;
  }
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid rgba(92, 83, 63, 0.3);
  border-radius: 999px;
  color: var(--color-text-light);
}

.footer-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Responsive tweaks */
@media (max-width: 639px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
/* =============================================================================
   FONTS
   ============================================================================= */

@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/librebaskerville/librebaskerville-regular-webfont.woff2") format("woff2"),
       url("../fonts/librebaskerville/librebaskerville-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/librebaskerville/librebaskerville-bold-webfont.woff2") format("woff2"),
       url("../fonts/librebaskerville/librebaskerville-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/montserrat-regular-webfont.woff2") format("woff2"),
       url("../fonts/montserrat/montserrat-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/montserrat-semibold-webfont.woff2") format("woff2"),
       url("../fonts/montserrat/montserrat-semibold-webfont.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =============================================================================
   THEME
   ============================================================================= */

:root {
  --accent-color: #5c533f;
  --bg-cream: #fbf8f3;
  --bg-cream-dark: #f5efe6;
  --text-main: #2c2416;
  --text-muted: #5c533f;
  --card: #f5efe6;
  --border: #e5dccb;
  --shadow: 0 8px 24px rgba(44, 36, 22, 0.06);
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.7;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  opacity: 0.75;
}

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

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

@media (max-width: 640px) {
  .page {
    padding: 48px 18px 72px;
  }
}

/* =============================================================================
   HERO
   ============================================================================= */

.hero {
  margin-bottom: 48px;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 14px 0;
}

.intro {
  font-size: 1.05rem;
  margin: 0 0 18px 0;
  max-width: 720px;
  color: var(--text-muted);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dot {
  color: var(--text-muted);
  margin: 0 4px;
}

/* =============================================================================
   SECTIONS
   ============================================================================= */

.section {
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 16px 0;
}

/* =============================================================================
   INTERESTS
   ============================================================================= */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

/* =============================================================================
   PROJECT CARDS
   ============================================================================= */

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(47, 36, 25, 0.08);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0;
}

.card-year {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-desc {
  margin: 0 0 12px 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.link-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-row a {
  font-size: 0.92rem;
}

/* =============================================================================
   CONTACT
   ============================================================================= */

.links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: left;
}
