/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color-scheme: light;
  --color-page: #fafafa;
  --color-panel: #ffffff;
  --color-panel-ring: #f4f4f5;
  --color-text: #27272a;
  --color-heading: #27272a;
  --color-muted: #52525b;
  --color-soft: #a1a1aa;
  --color-border: #f4f4f5;
  --color-hover: #fafafa;
  --color-control: rgba(255, 255, 255, 0.9);
  --color-control-ring: rgba(24, 24, 27, 0.05);
  --color-teal: #14b8a6;
  --shadow-control: 0 10px 15px -3px rgba(39, 39, 42, 0.05), 0 4px 6px -4px rgba(39, 39, 42, 0.05);
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root.dark {
  color-scheme: dark;
  --color-page: #000000;
  --color-panel: #18181b;
  --color-panel-ring: rgba(212, 212, 216, 0.2);
  --color-text: #d4d4d8;
  --color-heading: #f4f4f5;
  --color-muted: #a1a1aa;
  --color-soft: #71717a;
  --color-border: rgba(63, 63, 70, 0.4);
  --color-hover: rgba(39, 39, 42, 0.5);
  --color-control: rgba(39, 39, 42, 0.9);
  --color-control-ring: rgba(255, 255, 255, 0.1);
  --color-teal: #2dd4bf;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-page);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

img,
svg {
  display: block;
}

.site-background {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.site-background__inner {
  width: 100%;
  max-width: 80rem;
  background: var(--color-panel);
  box-shadow: inset 1px 0 0 var(--color-panel-ring), inset -1px 0 0 var(--color-panel-ring);
}

.site-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.container-outer {
  padding-inline: 0;
}

.container-outer > .container-inner,
.container-inner {
  position: relative;
  padding-inline: 1rem;
}

.container-inner > * {
  max-width: 42rem;
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  flex: none;
  padding-top: 1.5rem;
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 2.5rem;
}

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

.header-side--right {
  justify-content: flex-end;
}

.home-avatar {
  margin-top: 3.25rem;
  margin-bottom: -0.75rem;
}

.avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--color-control);
  padding: 0.125rem;
  box-shadow: var(--shadow-control);
  outline: 1px solid var(--color-control-ring);
  backdrop-filter: blur(8px);
}

.avatar-link--large {
  width: 4rem;
  height: 4rem;
}

.avatar-link--small {
  width: 2.5rem;
  height: 2.5rem;
}

.avatar-image {
  border-radius: 9999px;
  background: #f4f4f5;
  object-fit: cover;
}

.avatar-image--large {
  width: 4rem;
  height: 4rem;
}

.avatar-image--small {
  width: 2.25rem;
  height: 2.25rem;
}

.desktop-nav,
.mobile-nav summary,
.theme-toggle {
  background: var(--color-control);
  color: var(--color-heading);
  box-shadow: var(--shadow-control);
  outline: 1px solid var(--color-control-ring);
  backdrop-filter: blur(8px);
}

.desktop-nav {
  display: none;
  align-items: center;
  border-radius: 9999px;
  padding-inline: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  transition: color 150ms ease;
}

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

.nav-link.is-active::after {
  position: absolute;
  right: 0.25rem;
  bottom: 0;
  left: 0.25rem;
  height: 1px;
  content: "";
  background: linear-gradient(to right, rgba(20, 184, 166, 0), rgba(20, 184, 166, 0.4), rgba(20, 184, 166, 0));
}

.mobile-nav {
  position: relative;
  justify-self: end;
}

.mobile-nav summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary svg {
  width: 0.5rem;
  height: auto;
  margin-left: 0.75rem;
  stroke: #71717a;
}

.mobile-nav-panel {
  position: fixed;
  z-index: 50;
  top: 2rem;
  right: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1.5rem;
  background: var(--color-panel);
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(24, 24, 27, 0.15), 0 8px 10px -6px rgba(24, 24, 27, 0.15);
  outline: 1px solid rgba(24, 24, 27, 0.05);
}

:root.dark .mobile-nav-panel {
  outline-color: #27272a;
}

.mobile-nav-header {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-nav-close {
  border: 0;
  background: transparent;
  color: var(--color-soft);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-nav-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav-panel > a {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  color: var(--color-heading);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 2.5rem;
  cursor: pointer;
  border: 0;
  border-radius: 9999px;
  transition: outline-color 150ms ease;
}

.theme-toggle:hover {
  outline-color: rgba(24, 24, 27, 0.1);
}

.theme-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.theme-icon--sun {
  fill: #f4f4f5;
  stroke: #71717a;
}

.theme-icon--moon {
  display: none;
  fill: #3f3f46;
  stroke: #71717a;
}

:root.dark .theme-icon--sun {
  display: none;
}

:root.dark .theme-icon--moon {
  display: block;
}

.home-hero {
  margin-top: 2.25rem;
}

.hero-copy {
  margin-inline: 0;
}

.hero-copy h1,
.simple-layout-header h1 {
  margin: 0;
  color: var(--color-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy p,
.simple-layout-header p {
  margin: 1.5rem 0 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline-offset: 2px;
  transition: background-color 150ms ease, color 150ms ease;
}

.button--primary {
  margin-top: 1rem;
  background: #27272a;
  color: #f4f4f5;
  font-weight: 600;
}

.button--primary:hover {
  background: #3f3f46;
}

:root.dark .button--primary {
  background: #3f3f46;
}

:root.dark .button--primary:hover {
  background: #52525b;
}

.button--secondary {
  background: #fafafa;
  color: #18181b;
  font-weight: 500;
}

.button--secondary:hover {
  background: #f4f4f5;
}

:root.dark .button--secondary {
  background: rgba(39, 39, 42, 0.5);
  color: #d4d4d8;
}

:root.dark .button--secondary:hover {
  background: #27272a;
  color: #fafafa;
}

.button--full {
  width: 100%;
}

.button svg {
  width: 1rem;
  height: 1rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  margin: -0.25rem;
  padding: 0.25rem;
}

.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: #71717a;
  transition: fill 150ms ease;
}

.social-link:hover svg {
  fill: #52525b;
}

:root.dark .social-link svg {
  fill: #a1a1aa;
}

:root.dark .social-link:hover svg {
  fill: #d4d4d8;
}

.photo-strip {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  overflow: hidden;
  margin-top: 4rem;
  padding-block: 1rem;
}

.photo-frame {
  position: relative;
  flex: none;
  width: 11rem;
  aspect-ratio: 9 / 10;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f4f4f5;
}

:root.dark .photo-frame {
  background: #27272a;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tilt-right {
  transform: rotate(2deg);
}

.tilt-left {
  transform: rotate(-2deg);
}

.home-work {
  margin-top: 0;
}

.home-work .container-inner {
  padding-top: 0;
}

.work-card {
  width: 100%;
  margin-top: 5rem;
  margin-inline: auto;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.work-card h2 {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--color-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.work-card h2 svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  fill: rgba(244, 244, 245, 0.1);
  stroke: #a1a1aa;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.role-item {
  display: flex;
  gap: 1rem;
}

.role-logo,
.project-logo {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(39, 39, 42, 0.05), 0 2px 4px -2px rgba(39, 39, 42, 0.05);
  outline: 1px solid rgba(24, 24, 27, 0.05);
}

:root.dark .role-logo,
:root.dark .project-logo {
  border: 1px solid rgba(63, 63, 70, 0.5);
  background: #27272a;
  outline: 0;
}

.role-logo {
  width: 3rem;
  height: 3rem;
  padding: 0.5rem;
}

.role-logo img,
.project-logo img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.role-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 0.5rem;
}

.role-company {
  width: 100%;
  flex: none;
  color: var(--color-heading);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: 100%;
  color: #71717a;
  font-size: 0.75rem;
  line-height: 1.4;
}

.role-meta time:first-of-type {
  margin-left: auto;
}

.work-card .button {
  margin-top: 1.5rem;
}

.site-footer {
  flex: none;
  margin-top: 8rem;
}

.footer-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-block: 2.5rem 4rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  color: var(--color-heading);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-nav a {
  transition: color 150ms ease;
}

.footer-nav a:hover {
  color: var(--color-teal);
}

.footer-panel p {
  margin: 0;
  color: var(--color-soft);
  font-size: 0.875rem;
}

.simple-layout {
  margin-top: 4rem;
}

.simple-layout-header {
  margin-inline: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem 3rem;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card-hover {
  position: absolute;
  z-index: 0;
  inset: -1.5rem -1rem;
  scale: 0.95;
  border-radius: 1rem;
  background: var(--color-hover);
  opacity: 0;
  transition: opacity 150ms ease, scale 150ms ease;
}

.project-card:hover .project-card-hover {
  scale: 1;
  opacity: 1;
}

.project-logo {
  width: 6rem;
  height: 6rem;
  padding: 0.5rem;
}

.project-title,
.project-description,
.project-link-label,
.project-acquired {
  position: relative;
  z-index: 1;
}

.project-title {
  margin: 1.5rem 0 0;
  color: var(--color-soft);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.project-card:hover .project-title,
.project-card:hover .project-link-label {
  color: var(--color-teal);
}

.project-card h2 {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 0;
  color: var(--color-heading);
  font-size: 1rem;
  font-weight: 600;
}

.project-description {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.project-link-label {
  display: flex;
  align-items: center;
  margin: 1.5rem 0 0;
  color: var(--color-soft);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.project-link-label svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.project-link-label span {
  margin-left: 0.5rem;
}

.project-acquired {
  margin: 1.5rem 0 0;
  color: var(--color-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.articles-shell {
  margin-top: 4rem;
  border-left: 1px solid var(--color-border);
  padding-left: 1.5rem;
}

.articles-list {
  display: flex;
  max-width: 48rem;
  flex-direction: column;
  gap: 4rem;
}

.article-card {
  position: relative;
  display: grid;
  gap: 1rem;
}

.article-card h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: 1rem;
  font-weight: 600;
}

.article-card time {
  display: block;
  margin-top: 0.75rem;
  color: var(--color-soft);
  font-size: 0.875rem;
}

.article-card p {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.article-card span {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--color-teal);
  font-size: 0.875rem;
  font-weight: 500;
}

.not-found {
  display: flex;
  align-items: center;
  min-height: 34rem;
  padding-top: 4rem;
}

.not-found-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.not-found-panel p {
  margin: 0;
  color: var(--color-soft);
  font-size: 1rem;
  font-weight: 600;
}

.not-found-panel h1 {
  margin: 1rem 0 0;
  color: var(--color-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.not-found-panel span {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.not-found-panel .button {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .site-background {
    padding-inline: 2rem;
  }

  .container-outer {
    padding-inline: 2rem;
  }

  .container-outer > .container-inner,
  .container-inner {
    padding-inline: 2rem;
  }

  .hero-copy h1,
  .simple-layout-header h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .photo-strip {
    gap: 2rem;
    margin-top: 5rem;
  }

  .photo-frame {
    width: 18rem;
    border-radius: 1rem;
  }

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

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

  .not-found-panel h1 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-background__inner,
  .container-outer > .container-inner {
    max-width: 80rem;
  }

  .container-outer {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 2rem;
  }

  .container-inner {
    max-width: 64rem;
    margin-inline: auto;
    padding-inline: 3rem;
  }

  .container-inner > * {
    max-width: none;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .work-card {
    max-width: 42rem;
  }

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