:root {
  --page-bg: #ffffff;
  --text: #111111;
  --muted: #777777;
  --line: rgba(17, 17, 17, 0.11);
  --surface: #ffffff;
  --frame-ratio: 1986 / 1146;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Avenir Next", "Avenir", "Neue Haas Grotesk Text Pro",
    "Helvetica Neue", sans-serif;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

.site {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 4rem;
}

.sidebar {
  position: sticky;
  top: 1.5rem;
  height: max-content;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-secondary {
  margin-top: 0.9rem;
}

.site-title {
  text-decoration: none;
  font-family: "DIN Condensed", "Avenir Next Condensed",
    "Helvetica Neue Condensed Bold", "Arial Narrow", sans-serif;
  font-size: 2.184rem;
  letter-spacing: 0.015em;
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 700;
}

.section-copy,
.footer {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
}

.nav-label,
.section-label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.year-nav,
.section-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.year-link,
.section-nav a {
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
}

.year-link.is-active,
.year-link.is-current,
.year-link:hover,
.section-nav a.is-current,
.section-nav a:hover {
  color: var(--text);
}

.sidebar .nav-label,
.sidebar .year-link,
.sidebar .section-nav a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.62rem 0.5rem;
  background: #d9d9d4;
  color: #111111;
  line-height: 1.2;
}

.sidebar .nav-label {
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
  color: #111111;
}

.sidebar .year-link {
  font-size: 0.94rem;
  color: #111111;
}

.sidebar .section-nav a {
  font-size: 0.94rem;
  color: #111111;
}

.sidebar .year-link.is-active,
.sidebar .year-link.is-current,
.sidebar .year-link:hover,
.sidebar .section-nav a.is-current,
.sidebar .section-nav a:hover {
  background: #c7c7c2;
  color: #111111;
}

.content {
  min-width: 0;
}

.works {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-item[hidden] {
  display: none;
}

.work-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  background-color: var(--surface);
  border: 1px solid var(--line);
  max-width: 64rem;
}

.screen {
  aspect-ratio: var(--frame-ratio);
}

.square {
  aspect-ratio: 1 / 1;
  max-width: 42rem;
}

.insta-frame {
  aspect-ratio: 1 / 1;
  max-width: none;
  border: 1px solid #dbdbdb;
  border-radius: 0.3rem;
  background: #ffffff;
}

.media-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #f7f7f7;
}

.media-align-left {
  object-position: left center;
}

.is-video {
  background: #f4f4f4;
}

.work-meta {
  display: none;
}

.works.is-computer-roughs {
  gap: 2.5rem;
}

.rough-post {
  gap: 0;
}

.rough-post-shell {
  width: min(100%, 29.5rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.rough-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rough-post-account {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.rough-post-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2c2c2c, #808080);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  filter: blur(0.24rem);
}

.rough-post-byline,
.rough-post-copy {
  display: flex;
  flex-direction: column;
}

.rough-post-byline {
  gap: 0.05rem;
}

.rough-post-byline,
.rough-post-copy {
  filter: blur(0.24rem);
}

.rough-post-name,
.rough-post-subtitle,
.rough-post-likes,
.rough-post-caption {
  margin: 0;
}

.rough-post-name,
.rough-post-name-inline,
.rough-post-likes {
  font-weight: 700;
}

.rough-post-name,
.rough-post-subtitle,
.rough-post-caption,
.rough-post-likes {
  font-size: 0.96rem;
  line-height: 1.35;
}

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

.rough-post-more {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  filter: blur(0.24rem);
}

.rough-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  filter: blur(0.24rem);
}

.rough-post-action-group {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.rough-post-icon {
  width: 1.55rem;
  height: 1.55rem;
  flex: none;
}

.rough-post-copy {
  gap: 0.3rem;
}

.footer p {
  margin: 0;
  font-family: "DIN Condensed", "Avenir Next Condensed",
    "Helvetica Neue Condensed Bold", "Arial Narrow", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
}

.text-section {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 2rem;
}

.detail-section {
  margin-top: 0;
}

.section-copy {
  max-width: 38rem;
}

.cv-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-copy p {
  margin: 0;
}

.section-copy a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site {
    width: min(100% - 1.5rem, 48rem);
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    position: static;
    gap: 1.5rem;
  }

  .year-nav,
  .section-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .text-section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
