:root {
  --bg: #f7f8f6;
  --paper: #fff;
  --ink: #171918;
  --muted: #866;
  --muted-darker: #755;
  --muted-lighter: #cbb;
  --line: #d8ddd8;
  /* --accent: #91bf3f; */
  --accent: #b96746;
  --max: 1200px;
  --body-font: 'DM Sans', sans-serif;
  /* --body-font: "Inder", sans-serif; */
  --header-font: 'DM Sans', sans-serif;
  /* --header-font: 'Space Grotesk', sans-serif; */
  /* --header-font: 'Indie Flower', cursive; */
  --mono-font: 'Lekton', monospace;
  /* --mono-font: 'DM Mono', monospace; */
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
}

a {
  color: inherit;
  text-decoration: none
}

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: auto
}

h1 {
  font-family: var(--body-font);
  font-size: clamp(54px, 8vw, 102px);
  line-height: .9;
  letter-spacing: -.065em;
  margin: 0;
  max-width: 8ch;
  font-weight: 600
}

h2 {
  font-family: var(--header-font);
}

h3 {
  font-family: var(--header-font);
}

footer {
  padding: 40px 0;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px
}

.external-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.external-link::after {
  content: " ↗";
  display: inline-block;
  width: 1ch;
  padding-left: 0.5ch;
  transition: all 0.3s ease;
  font-size: 16px;
  margin-top: -1em;
  margin-bottom: -1em;
}

.external-link:hover {
  transition: all 0.3s ease;
  color: var(--accent);
  border-color: var(--accent);
}

.external-link:hover::after {
  transform: translate(3px, -2px);
  color: var(--accent);
}





/*
 * Site navigation bar
 */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 246, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line)
}

.nav {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.03em;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  /* color: #505550; */
  color: var(--muted);
}

nav a.is-active {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

nav a:hover {
  color: var(--accent)
}


/*
 * Hero banner
 */

.hero {
  padding: 80px 0;
  display: flex;
  justify-content: space-between;
  align-items: end
}

.hero h1 {
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.9;
  letter-spacing: -.08em;
  margin: 0;
  font-weight: 500;
  max-width: 7ch;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

/* .hero h1 span:after {
  content: "";
  position: absolute;
  left: 4%;
  right: -3%;
  height: 9px;
  bottom: 3px;
  background: var(--accent);
  z-index: -1;
  border-radius: 99px
} */

.hero-copy {
  max-width: 320px;
  margin-left: auto;
}

.hero-copy p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: var(--muted-darker);
}

.hero-copy-label {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

.hero-links {
  display: flex;
  gap: 20px;
  font-size: 14px
}

.hero-links a {
  border-bottom: 1px solid var(--muted-lighter);
  padding-bottom: 4px
}

.hero-links a:hover {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.hero-rule {
  height: 1px;
  background: var(--line);
  position: relative
}

.hero-rule:before {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--accent);
  left: 0px;
  top: -1px;
  border-radius: 3px
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted)
}

.back-link:hover {
  color: var(--accent)
}



/*
 * Page navigation bar
 */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 30px;
  padding: 20px 0 0 20px
}

.page-nav-label {
  /* font: 12px var(--mono-font); */
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-right: 4px;
  font-weight: 700;
}

.page-nav a {
  /* font: 13px var(--mono-font); */
  color: var(--ink);
  border-bottom: 1px solid var(--muted-lighter);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}

.page-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}



/*
 * Sections
 */

section {
  padding: 80px 0 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px
}

.section-head h2 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -.05em;
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
  /* color: var(--accent); */
}


.section-external-link {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.section-external-link::after {
  content: " ↗";
  display: inline-block;
  width: 1ch;
  font-size: 16px;
  margin-top: -1em;
  margin-bottom: -1em;
  padding-left: 0.5ch;
}

.section-external-link:hover {
  transition: all 0.3s ease;
  color: var(--accent);
}

.section-external-link:hover::after {
  transition: all 0.3s ease;
  transform: translate(3px, -2px);
}



/*
 * Small format 'featured' project grid
 */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px
}

.project-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 340px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.project-tile:hover {
  box-shadow: 0 18px 44px rgba(20, 23, 22, .1);
  border-color: var(--accent);
}

.project-external-link {
  display: inline-block;
}

.project-external-link::after {
  content: " ↗";
  display: inline-block;
  width: 1ch;
  font-size: 15px;
  margin-top: -1em;
  margin-bottom: -1em;
  padding-left: 0.5ch;
}

.project-tile:hover .project-external-link {
  transition: all 0.3s ease;
  color: var(--accent);
}

.project-tile:hover .project-external-link::after {
  transition: all 0.3s ease;
  transform: translate(3px, -2px);
  color: var(--accent);
}

.visual {
  height: 145px;
  background: #f0edeb;
  position: relative;
  overflow: hidden
}

.project-grid h3 {
  margin: 24px 0 7px;
  font-size: 32px;
  letter-spacing: -.05em;
  font-weight: 500;
}

.project-grid p {
  margin: 0;
  color: var(--muted-darker);
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.55
}

.tile-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  /* padding-top: 13px; */
  /* border-top: 1px solid var(--line); */
  font: 11px var(--mono-font);
  color: var(--muted)
}

.tags span {
  font: 11px var(--mono-font);
  color: var(--muted-darker);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}



/*
 * Large format 'featured' project list
 */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.feature-tile {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feature-image {
  min-height: 330px;
  background: linear-gradient(135deg, #e7ece7, #ccd7cf);
  position: relative;
  overflow: hidden
}

.feature-image:before {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 25, 24, .28);
  border-radius: 50%;
  left: 15%;
  top: 12%
}

.feature-image:after {
  content: "";
  position: absolute;
  width: 70%;
  height: 1px;
  background: rgba(23, 25, 24, .28);
  left: 15%;
  top: 50%;
  transform: rotate(-18deg)
}

.feature-copy {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-left: 30px;
}

.feature-copy h3 {
  margin: 0 0 12px;
  font-size: 36px;
  letter-spacing: -.05em;
  font-weight: 500;
}

.feature-copy p {
  color: var(--muted-darker);
  line-height: 1.6;
  max-width: 48ch
}



/*
 * Compact list of project blog posts
 */

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-list li {
  border-bottom: 1px solid var(--line)
}

.project-list li:last-child {
  border-bottom: none;
}

.project-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  padding: 20px 0;
  align-items: center;
}

.project-row:not(:has(.row-pre)) {
  grid-template-columns: 1fr auto;
}

.project-row .row-pre {
  display: flex;
  gap: 20px;
  font: 12px var(--mono-font);
  color: var(--muted-darker);
}

.project-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
  transition: all 0.2s ease;
}

.project-row:hover .row-title {
  color: var(--accent)
}

.project-row p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.project-row .row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0
}

.project-row .row-meta span {
  font-size: 12px;
  background: var(--paper);
}

.project-row .row-meta::after {
  content: "→";
  font-size: 18px;
  display: inline-block;
  color: var(--muted);
  transition: all 0.2s ease;
}

.project-row:hover .row-meta::after {
  color: var(--accent);
  transform: translateX(3px)
}



/*
 * Responsive adjustments
 */

@media(max-width:820px) {
  .wrap {
    width: min(var(--max), calc(100% - 40px))
  }

  .hero-copy {
    max-width: 260px;
  }

  .projects,
  .project-grid,
  .feature-grid,
  .feature-tile,
  .recipes {
    grid-template-columns: 1fr
  }
}
