/* ------------------------------------------------
   Reset & Base
   ------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-text: #1a1a1a;
  --color-text-muted: #777777;
  --color-bg: #fff;
  --color-border: #e0e0e0;
  --font-serif: 'Hedvig Letters Serif', serif;
  --font-sans: 'Inclusive Sans', sans-serif;
  --section-padding: 120px;
  --container-width: 720px;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------
   Typography
   ------------------------------------------------ */
h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
}

h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
}

p {
  font-size: 18px;
  line-height: 1.6;
}

.extra-small {
  font-size: 16px;
}

/* ------------------------------------------------
   Layout
   ------------------------------------------------ */
.site-header {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
}

main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------
   Navigation
   ------------------------------------------------ */
.nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-serif);
  color: var(--color-text-muted);
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open .hamburger-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.hamburger.open .hamburger-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */
.hero {
  padding-top: 80px;
  padding-bottom: var(--section-padding);
}

.hero h1 {
  margin-bottom: 16px;
}

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

/* ------------------------------------------------
   Work History
   ------------------------------------------------ */
.work-history {
  padding-bottom: var(--section-padding);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.work-entry {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.work-logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-logo-icon {
  max-height: 40px;
  width: auto;
}

.stashaway-logo {
  background-color: #072340;
}

.homage-logo {
  background-color: #32BDC7;
}

.sia-logo {
  background-color: #002870;
}

.work-details {
  flex: 1;
  min-width: 0;
}

.work-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.work-header h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
}

.work-date {
  font-size: 14px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.work-details p {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ------------------------------------------------
   Belief
   ------------------------------------------------ */
.belief {
  padding-bottom: var(--section-padding);
}

.belief h3 {
  font-family: var(--font-serif);
  color: var(--color-text);
}

/* ------------------------------------------------
   Say Hello
   ------------------------------------------------ */
.say-hello {
  padding-bottom: var(--section-padding);
}

.hello-link {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.hello-link:hover {
  opacity: 0.5;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.site-footer {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ------------------------------------------------
   Placeholder Pages
   ------------------------------------------------ */
.placeholder {
  padding-top: 80px;
  padding-bottom: var(--section-padding);
}

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

/* ------------------------------------------------
   Mobile Navigation Overlay
   ------------------------------------------------ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-nav-links a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--color-text);
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 640px) {
  :root {
    --section-padding: 80px;
  }

  html {
    font-size: 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 100;
  }

  .hero {
    padding-top: 40px;
  }

  .work-entry {
    flex-direction: column;
    gap: 16px;
  }

  .hello-link {
    font-size: 36px;
  }

  .subtitle {
    font-size: 26px;
  }
}
