*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ── */

:root {
  --bg:         #f5f3f0;
  --text:       #1c1c1a;
  --muted:      #6e6760;
  --faint:      #b0a99f;
  --link:       #9a6506;
  --link-hover: #c08828;
  --rule:       #dbd6ce;
  --serif:      Georgia, serif;
  --sans:       Verdana, sans-serif;
  --mono:       'Courier New', monospace;
}

/* ── Base ── */

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-weight: normal;
  line-height: 1.75;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

/* ── Index page ── */

.index-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.index-logo {
  margin-bottom: 4rem;
}

.index-logo img {
  width: min(400px, 65vw);
  height: auto;
  display: block;
}

.index-slides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1000px;
}

.index-slide {
  display: block;
  text-decoration: none;
}

.index-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.index-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1000px;
  margin-top: 0.75rem;
}

.index-signature img {
  height: min(64px, 8vw);
  width: auto;
  display: block;
}

.index-year {
  display: flex;
  justify-content: flex-end;
}

.index-year img {
  height: min(64px, 8vw);
  width: auto;
  display: block;
}

/* ── Info page ── */

.info-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.info-title {
  margin-bottom: 3rem;
}

.info-title img {
  height: min(8rem, 14vw);
  width: auto;
  display: block;
}

.info-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.info-link {
  display: block;
  text-decoration: none;
}

.info-link img {
  height: min(6rem, 10vw);
  width: auto;
  display: block;
}

.info-back {
  margin-top: 3rem;
}

/* ── Inner page layout ── */

.site-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem 7rem;
}

/* ── Header ── */

.site-header {
  padding-bottom: 1rem;
  border-bottom: 0.5px solid var(--rule);
  margin-bottom: 3.5rem;
}

.site-header a {
  text-decoration: none;
}

.page-title {
  height: min(7rem, 12vw);
  width: auto;
  display: block;
}

.home-img {
  height: 5rem;
  width: auto;
  display: block;
}

/* ── Typography ── */

.body-text {
  font-family: var(--mono);
  font-weight: normal;
  font-size: clamp(0.78rem, 2vw, 0.85rem);
  color: var(--text);
  margin-bottom: 1.7rem;
  line-height: 1.9;
}

.body-text-italic {
  font-family: var(--mono);
  font-style: italic;
  font-weight: normal;
  font-size: clamp(0.78rem, 2vw, 0.85rem);
  color: var(--muted);
  margin-bottom: 1.7rem;
  line-height: 1.9;
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.mono a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mono a:hover { color: var(--link-hover); }

/* ── Spacing ── */

.gap-md  { margin-top: 1.6rem; }
.gap-top { margin-top: 2.5rem; }

/* ── Sections ── */

.section-heading {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.section-rule {
  border: none;
  border-top: 0.5px solid var(--rule);
  margin: 3.5rem 0;
}

/* ── Contents rows ── */

.cl-section { margin-bottom: 3rem; }

.cl-heading {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.cl-row {
  display: flex;
  align-items: baseline;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--text);
}

.cl-row:hover .cl-title { opacity: 0.55; }

.cl-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: normal;
  flex-shrink: 0;
}

.cl-leader {
  flex-grow: 1;
  border-bottom: 1px dotted var(--rule);
  margin: 0 0.6rem 0.2rem;
}

.cl-ref {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  flex-shrink: 0;
  font-style: italic;
}

/* ── Sketchbook grid ── */

.mm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 1rem;
}

.mm-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.mm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Work page ── */

.project-image {
  width: 100%;
  margin-bottom: 2.5rem;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.work-title {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.work-record {
  border-top: 0.5px solid var(--rule);
  margin-bottom: 2rem;
}

.work-record-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 0.5px solid var(--rule);
}

.work-record-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding-top: 0.15rem;
}

.work-record-value {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Enquire button ── */

.enquire-btn {
  display: block;
  text-decoration: none;
  margin-bottom: 2.5rem;
  line-height: 0;
}

.enquire-btn img {
  border: none;
  outline: none;
  display: block;
}

.enquire-img {
  height: min(8rem, 16vw);
  width: auto;
  display: block;
}

/* ── Notes & process ── */

.note {
  border-left: 0.5px solid var(--rule);
  padding-left: 1.4rem;
  margin-bottom: 2rem;
}

.note-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.project-sketch { margin-bottom: 2rem; }

.project-sketch img {
  width: 100%;
  height: auto;
  display: block;
}

.project-sketch .note-date { margin-top: 0.5rem; }

/* ── Notebook ── */

/* ── Archive ── */

/* ── Utility ── */

.center-text { text-align: center; }
.no-margin { margin: 0; }
.mb-record { margin-bottom: 2rem; }

/* ── Responsive ── */

@media (max-width: 560px) {
  html { font-size: 16px; }
  .site-wrap { padding: 2.5rem 1.2rem 5rem; }
  
  .mm-grid { grid-template-columns: repeat(2, 1fr); }
  .index-page { padding: 1.2rem; }
  .index-slides {
    grid-template-columns: 1fr;
    max-width: 280px;
    gap: 1rem;
  }
  .index-bottom {
    grid-template-columns: 1fr 1fr;
    max-width: 280px;
  }
  .index-bottom > div:nth-child(2) { display: none; }
  .info-link img { height: min(5rem, 15vw); }
}
