@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;400;600&display=swap');

/* =========================================================
   Arklinea static website
   Main stylesheet
   ========================================================= */

/* -----------------------------
   Variables
   ----------------------------- */

:root {
  --bg: #FFFFFF;
  --text: #111;
  --muted: #6f6b64;

  --left: 200px;
  --right: 290px;
  --pad: 34px;

  --mobile-header: 86px;
  --mobile-side: 72px;
  --project-info-h: 152px;
}


/* -----------------------------
   Base
   ----------------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
}

body {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}


/* -----------------------------
   Desktop shell / fixed sidebars
   ----------------------------- */

.site-shell {
  display: grid;
  grid-template-columns: var(--left) minmax(0, 1fr) var(--right);
  height: 100vh;
}

.left-sidebar,
.right-sidebar {
  height: 100vh;
  padding: var(--pad);
  background: var(--bg);
  z-index: 20;
}

.left-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.right-sidebar {
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.right-sidebar > a,
.right-sidebar .project-info {
  pointer-events: auto;
}

.right-sidebar > a {
  display: inline-block;
  height: max-content;
}


/* -----------------------------
   Desktop navigation
   ----------------------------- */

.desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 21px;
  line-height: 1.08;
}

.desktop-nav a:hover,
.desktop-nav a.active,
body.home .desktop-nav a {
  font-weight: 600;
}

.sidebar-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-link {
  display: inline-flex;
  width: 21px;
  height: 21px;
}

.icon-link svg {
  width: 100%;
  height: 100%;
}


/* -----------------------------
   Logos
   ----------------------------- */

.logo-wordmark {
  width: min(210px, 100%);
}

.logo-mark {
  width: 38px;
}

.sidebar-square-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--left) - (var(--pad) * 2));
  transform: translate(-50%, -50%);
}

.sidebar-square-logo img {
  width: 100%;
  height: auto;
}


/* -----------------------------
   Scrollable content area
   ----------------------------- */

.content-scroll {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: var(--pad) 0 0;
  scrollbar-width: none;
}

.content-scroll::-webkit-scrollbar {
  display: none;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.page-main {
  flex: 1;
}


/* -----------------------------
   Homepage
   ----------------------------- */

.hero-image {
  width: 100%;
  height: calc(100vh - 96px);
  min-height: 520px;
  object-fit: cover;
  background: #d6d2c8;
}

.hero-text {
  
  padding: 42px 0 90px;
  font-size: 20px;
  line-height: 1.28;
}


/* -----------------------------
   Simple text pages
   ----------------------------- */

.simple-page {
  max-width: 900px;
  padding: 180px 0 140px;
  font-size: 28px;
  line-height: 1.18;
}

.simple-page h1 {
  margin: 0 0 42px;
  font-size: inherit;
  font-weight: 500;
}

.simple-page p {
  margin: 0 0 22px;
}

.simple-page small {
  color: var(--muted);
  font-size: 16px;
}


/* -----------------------------
   Project overview
   ----------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 22px;
  padding-bottom: 80px;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  margin-bottom: 8px;
  object-fit: cover;
  background: #ddd8ce;
}

.project-card span {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.project-card:hover span {
  font-weight: 600;
}


/* -----------------------------
   Project detail
   ----------------------------- */

.project-detail {
  padding-bottom: 80px;
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.project-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd8ce;
}

.project-info {
  position: fixed;
  right: var(--pad);
  bottom: var(--pad);
  z-index: 30;
  width: calc(var(--right) - var(--pad) * 2);
  font-size: 18px;
  line-height: 1.12;
}

.project-info h1 {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 600;
}

.info-row {
  display: block;
  margin-bottom: 22px;
}

.info-row dt,
.info-row dd {
  margin: 0;
}

.info-row dt {
  color: var(--text);
  font-weight: 600;
}

.info-row dd {
  font-weight: 400;
}


/* -----------------------------
   Team page
   ----------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px 24px;
  padding-bottom: 90px;
}

.team-member {
  min-width: 0;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1.34;
  margin: 0 0 12px;
  object-fit: cover;
  background: #ddd8ce;
}

.team-copy {
  font-size: 14px;
  line-height: 1.18;
  font-weight: 400;
}

.team-copy h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.08;
}

.team-copy p {
  margin: 0 0 11px;
}

.team-copy strong {
  font-weight: 600;
}


/* -----------------------------
   Footer
   ----------------------------- */

.site-footer {
  display: block;
  margin-top: auto;
  padding: 32px 0 38px;
  border-top: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 200;
}

.footer-line {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 24px;
  white-space: nowrap;
}

.footer-line strong,
.footer-legal-link {
  font-weight: 600;
}


/* -----------------------------
   Legal page
   ----------------------------- */

.legal-page {
  max-width: 900px;
  padding: 120px 0 140px;
  font-size: 20px;
  line-height: 1.28;
}

.legal-section {
  margin-bottom: 84px;
}

.legal-section h1 {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}

.legal-section p {
  max-width: 760px;
  margin: 0 0 22px;
}


/* -----------------------------
   Mobile layout
   ----------------------------- */

.mobile-topbar,
.mobile-rail,
.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --pad: 18px;
    --mobile-side: 62px;
    --mobile-header: 116px;
    --project-info-h: 170px;
  }

  .site-shell {
    display: block;
    height: 100dvh;
    padding-top: var(--mobile-header);
    padding-left: var(--mobile-side);
  }

  .left-sidebar {
    display: none;
  }

  .right-sidebar {
    position: static;
    display: block;
    height: 0;
    padding: 0;
    background: transparent;
  }

  .right-sidebar > a {
    display: none;
  }

  .content-scroll {
    height: calc(100dvh - var(--mobile-header));
    overflow-y: auto;
    padding: 0 18px 0 0;
  }

  .mobile-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--mobile-side);
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    height: var(--mobile-header);
    padding: 18px;
    background: var(--bg);
  }

  .mobile-topbar .logo-wordmark {
    width: 150px;
  }

  .mobile-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--mobile-side);
    padding-top: var(--mobile-header);
    background: var(--bg);
  }

  .mobile-rail .logo-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .mobile-rail-icons {
    position: absolute;
    bottom: 24px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    transform: translateX(-50%);
  }

  .mobile-rail-icons .icon-link {
    width: 24px;
    height: 24px;
  }

  .burger {
    z-index: 80;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
  }

  .burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111;
    transition: 0.2s;
  }

  body.menu-open .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.menu-open .burger span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    top: 116px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* width: min(64vw, 260px); */
    padding: 0 26px 28px calc(var(--mobile-side) + 20px);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.menu-open .mobile-menu {
    transform: translateX(0);
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 31px;
    line-height: 1.04;
    margin-top: -8px;
  }

  .mobile-menu nav a.active,
  body.home .mobile-menu nav a {
    font-weight: 600;
  }

  .mobile-menu .sidebar-square-logo,
  .mobile-menu .sidebar-icons {
    display: none;
  }

  .hero-image {
    height: auto;
    min-height: 0;
  }

  .home .hero-image {
    height: calc((100dvh - var(--mobile-header)) * 0.5);
    min-height: 0;
  }

  .home .hero-text {
    
    min-height: calc((100dvh - var(--mobile-header)) * 0.5);
  }

  .hero-text {
    padding: 30px 0 70px;
    font-size: 18px;
    line-height: 1.24;
  }

  .simple-page {
    padding: 110px 0;
    font-size: 24px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    padding-bottom: 70px;
  }

  .project-card img {
    aspect-ratio: 1.4 / 1;
  }

  .project-card span {
    font-size: 15px;
  }

  .project-detail {
    padding-bottom: 0;
  }

  .project-images {
    display: block;
    padding-bottom: calc(var(--project-info-h) + 42px);
  }

  .project-images img {
    aspect-ratio: auto;
    margin-bottom: 18px;
  }

  .project-info {
    position: fixed;
    right: 18px;
    bottom: 0;
    left: var(--mobile-side);
    z-index: 45;
    width: auto;
    min-height: var(--project-info-h);
    padding: 14px 0 18px;
    border-top: 0;
    background: var(--bg);
    font-size: 16px;
    line-height: 1.15;
  }

  .project-info h1 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
  }

  .info-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1px;
  }

  .info-row dt {
    color: var(--text);
    font-weight: 600;
    flex: 35%;
  }

  .info-row dd {
    font-weight: 400;
    flex: 65%;
  }

  .team .content-scroll {
    padding-top: 0;
  }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 10px;
    padding-bottom: 70px;
  }

  .team-member {
    display: block;
    margin: 0;
  }

  .team-photo {
    height: auto;
    aspect-ratio: 1 / 1.05;
    margin: 0 0 8px;
    object-fit: cover;
  }

  .team-copy {
    padding: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.16;
  }

  .team-copy h2 {
    margin: 0 0 8px;
    font-size: 14px;
  }

  .team-copy p {
    margin: 0 0 6px;
  }

  .site-footer {
    display: block;
    padding: 32px 0 54px;
    font-size: 14px;
  }

  .footer-line {
    display: block;
    white-space: normal;
  }

  .footer-line span {
    display: block;
    margin-bottom: 10px;
  }

  .legal-page {
    padding: 70px 0 90px;
    font-size: 18px;
  }

  .legal-section h1 {
    font-size: 28px;
  }

  body.project-detail-page .site-footer,
  body.detail .site-footer {
    padding-bottom: calc(var(--project-info-h) + 42px);
  }
}


/* -----------------------------
   Footer breakpoint
   ----------------------------- */

@media (max-width: 1200px) {
  .footer-line {
    gap: 16px;
    font-size: 14px;
  }
}
