
:root {
  --ink:    #1a1a17;
  --paper:  #eeeae1;
  --paper-2:#e4dfd2;
  --stone:  #c9c2b3;
  --clay:   #9c5a34;
  --moss:   #5c6650;
  --line:   rgba(26, 26, 23, 0.16);
  --line-strong: rgba(26, 26, 23, 0.32);

  --font-display: "Libre Caslon Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Eyebrow / mono labels ---------- */

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 234, 225, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.01em;
  display:flex;
  align-items: center;
  gap: 12px;
}


.brand::before {
  content: "";
  display: block;
  width: auto;
  background-image: url("images/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  flex-shrink: 0;
}



.brand span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--clay);
  color: var(--clay);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero .mono-label { margin-bottom: 18px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  margin: 0 0 22px;
  max-width: 14ch;
}

.hero p {
  max-width: 46ch;
  font-size: 17px;
  color: #3a382f;
  margin: 0 0 8px;
}

.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-meta div { font-family: var(--font-mono); font-size: 12px; }
.hero-meta strong {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--ink);
}

/* ---------- Project grid ---------- */

.grid-section { padding: 72px 0 100px; }

.grid-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 14px;
}

.grid-section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
}

.sheet-card {
  position: relative;
  background: var(--paper);
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}

.sheet-card:hover { background: var(--paper-2); }

.sheet-card .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--clay);
  opacity: 0;
  transition: opacity 0.2s ease, width 0.25s ease, height 0.25s ease;
}
.sheet-card .corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.sheet-card .corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.sheet-card .corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.sheet-card .corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.sheet-card:hover .corner { opacity: 1; width: 20px; height: 20px; }

.sheet-card .sheet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sheet-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
  margin-bottom: 16px;
}

.sheet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sheet-card:hover .sheet-thumb img { transform: scale(1.045); }

.sheet-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.sheet-card p {
  font-size: 14.5px;
  color: #4a4838;
  margin: 0;
  flex-grow: 1;
}

.sheet-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 16px;
}

/* ---------- Single project page ---------- */

.project-hero {
  border-bottom: 1px solid var(--line);
  padding: 44px 0 0;
}

.project-meta-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 20px;
}

.project-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  margin: 0 0 26px;
  max-width: 20ch;
}

.project-cover {
  border: 1px solid var(--line-strong);
  background: var(--stone);
  margin-top: 8px;
}

.project-cover img { width: 100%; height: auto; }

.project-body {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

@media (max-width: 760px) {
  .project-body { grid-template-columns: 1fr; }
}

.project-body .aside {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--moss);
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
  height: fit-content;
}

.project-body .aside dt { margin-top: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.project-body .aside dd { margin: 4px 0 0; font-family: var(--font-body); color: var(--ink); font-size: 14px; }

.project-body .content {
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
  font-size: 18px;
  max-width: 62ch;
}

.project-body .content p { margin: 0 0 20px; }

.note-block {
  border-left: 2px solid var(--clay);
  padding: 4px 0 4px 18px;
  font-style: italic;
  color: #4a4838;
  margin-top: 28px;
}

.gallery {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  margin-top: 8px;
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
}

.gallery figure {
  margin: 0;
  background: var(--paper);
}

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

.project-pagination {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-strong);
  padding: 28px 0 80px;
  gap: 20px;
}

.project-pagination a {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--moss);
  max-width: 45%;
}

.project-pagination a strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: none;
  color: var(--ink);
  margin-top: 6px;
  letter-spacing: 0;
}

.project-pagination a.next { text-align: right; margin-left: auto; }

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

.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 48px 0 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer .cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moss);
  margin: 0 0 10px;
}

.site-footer a:hover { color: var(--clay); }

.site-footer .copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--moss);
}
