:root {
  --page: #fff;
  --ink: #111;
  --muted: #666;
  --faint: #e8e8e8;
  --soft: #f6f6f6;
  --max: 1520px;
  --article: 760px;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }

.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 1000; background: #fff; color: #000; padding: .75rem 1rem; border: 1px solid #000; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

.site-header { border-bottom: 1px solid #111; background: #fff; }
.masthead { max-width: var(--max); margin: 0 auto; padding: 22px 20px 18px; text-align: center; }
.brand { display: inline-block; font-family: var(--serif); font-size: 32px; line-height: .86; letter-spacing: 0.05em; font-weight: 300; text-transform: uppercase; }
.brand:hover {
    text-decoration: none;
}
.tagline-strip { margin: 12px 0 0; color: var(--muted); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.nav { border-top: 1px solid var(--faint); }
.nav-list { max-width: var(--max); margin: 0 auto; padding: 0 20px; list-style: none; display: flex; justify-content: center; align-items: center; gap: 0; overflow-x: auto; }
.nav-list a { display: block; padding: 14px 18px; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #111; }
.nav-list a[aria-current="page"] { font-weight: 700; }

.container, .wide-container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { padding-top: 28px; }

.eyebrow, .kicker, .category { margin: 0 0 10px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #111; }
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.35; color: #222; }
.meta, .caption, .byline { color: var(--muted); font-size: .85rem; }

.mobile-profile { display: none; }
.profile-card { border: 1px solid #111; padding: 22px; text-align: center; margin: 0 0 32px; background: #fff; }
.profile-card .logo { width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; }
.profile-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h1 { margin: 0 0 8px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.profile-card .tagline { margin: 0 auto 18px; max-width: 32ch; color: var(--muted); }
.links { display: grid; gap: 8px; }
.link { display: block; padding: 12px 14px; border: 1px solid #111; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.link.feature { background: #111; color: #fff; }

.home-hero { padding: 52px 10px; text-align: center; border-bottom: 1px solid #111; }
.home-hero h1 { max-width: 1050px; margin: 0 auto 16px; font-family: var(--serif); font-size: 62px; font-weight: 300; letter-spacing: 0.05em; line-height: 1em; }
.home-hero .lede { max-width: 760px; margin: 0 auto; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 36px 0 18px; padding-bottom: 10px; border-bottom: 1px solid #111; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 300; letter-spacing: 0.05em; line-height: 1em; text-transform: uppercase; }
.section-heading a { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }

.editorial-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-bottom:72px; align-items: start; }
.story-card { border-bottom: 1px solid var(--faint); padding-bottom: 18px; }
.story-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--soft); margin-bottom: 12px; }
.story-card.featured img { aspect-ratio: 3/2; }
.story-card h2, .story-card h3 { margin: 15px 0 10px; font-family: var(--serif); font-weight: 300; letter-spacing: 0.05em; }
.story-card h2 { font-size: 42px; line-height: 1em; }
.story-card h3 { font-size: 32px; line-height: 1.3em; }
.story-card p { margin: 0; color: var(--muted); }
.story-card p:not(:last-child) {
    margin-bottom:10px;
}
.story-card a,.story-card a p {transition:color 500ms;}
.story-card a:hover {
    text-decoration:none;
    color: var(--faint);
}

.story-card a:hover p {
    color: var(--faint);
}

.image-feed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feed-item { margin: 0; }
.feed-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--soft); }
.feed-item figcaption { margin-top: 8px; font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.empty-state { background: var(--soft); padding: 32px; text-align: center; color: var(--muted); }

.page-title { max-width: 980px; margin: 0 auto 38px; text-align: center; }
.page-title h1 { margin: 0 0 14px; font-family: var(--serif); font-size: 52px; font-weight: 300; letter-spacing: 0.05em; line-height: 1em; }
.page-title .lede { margin: 0 auto; max-width: 760px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.post-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--soft); margin-bottom: 12px; }
.post-card h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 42px; font-weight: 300; line-height: 1em; letter-spacing: 0.05em; }
.post-card p { margin: 0 0 8px; color: var(--muted); }
.rating { color: #111 !important; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.breadcrumbs { padding: 10px 0; margin: 0 0 52px; max-width: 100%;  border-bottom: 1px solid var(--faint); text-align:center;}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; color: var(--muted); font-size: .8rem;justify-content:center; }
.breadcrumbs li:not(:first-child)::before {content: '-'; margin: 0 10px; color: var(--muted);}

.article-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, var(--article)) 240px; gap: 64px; align-items: start; }
.article { min-width: 0; }
.article .eyebrow { margin-top: 6px; }
.article h1 { margin: 0 0 14px; font-family: var(--serif); font-size: 52px; line-height: 1em; letter-spacing: 0.05em; font-weight: 300; }
.article .lede { margin: 0 0 18px; }
.article .hero-image { margin: 28px 0 10px; }
.article .hero-image.completed-hero-image {margin-top: 0;}
.article .hero-image img { width: 100%; background: var(--soft); }
.article h2 { margin: 42px 0 12px; font-family: var(--serif); font-size: 42px; font-weight: 300; letter-spacing: 0.05em; line-height: 1em; }
.article p, .article li { font-family: var(--serif); font-size: 1.12rem; color: #222; }
.article p { margin: 0 0 20px; }
.article ul { padding-left: 1.2rem; }
.article-sidebar { position: sticky; top: 24px; border-top: 1px solid #111; padding-top: 14px; }
.article-sidebar dl { margin: 0; }
.article-sidebar div { padding: 12px 0; border-bottom: 1px solid var(--faint); }
.article-sidebar dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.article-sidebar dd { margin: 4px 0 0; color: var(--muted); }
.article-sidebar figure {width: 100%;aspect-ratio:1/1;margin: 0 0 20px;}
.article-sidebar figure img {
    width:100%;object-fit:cover;
}
.gallery-block { margin: 42px 0; }
.gallery-item { margin: 0 0 34px; }
.gallery-item img { width: 100%; background: var(--soft); }
.gallery-item .count { margin: 10px 0 8px; font-size: .8rem; color: var(--muted); }
.gallery-item h2 { margin-top: 0; }

.about-intro { max-width: var(--article); margin: 0 auto; }
.about-intro p { font-family: var(--serif); font-size: 1.15rem; color: #222; }
.about-list { margin-top: 34px; border-top: 1px solid #111; }
.about-list section { padding: 24px 0; border-bottom: 1px solid var(--faint); }
.about-list h2 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 400; letter-spacing: -.04em; }
.about-list p { margin: 0; }


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.book-filter {
  margin: -28px 0 42px;
  padding: 22px 0 24px;
  border-bottom: 1px solid #111;
  text-align: center;
}

.book-filter h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1em;
  text-transform: uppercase;
}

.book-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.book-filter__button {
  appearance: none;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  cursor: pointer;
  padding: 10px 14px;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background 200ms, color 200ms;
}

.book-filter__button:hover,
.book-filter__button.is-active {
  background: #111;
  color: #fff;
}

.book-filter__status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

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

.site-footer { margin-top: 64px; border-top: 1px solid #111; padding: 28px 20px; text-align: center; color: var(--muted); font-size: .82rem; }

@media (max-width: 980px) {
  .brand { font-size: 28px }
  .mobile-profile { display: block; margin-top:20px; }
  .editorial-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .story-card.featured { grid-column: 1 / -1; }
  .image-feed { grid-template-columns: repeat(2, 1fr); }
  .article-layout { display: block; max-width: var(--article); }
  .article-sidebar { position: static; margin-top: 36px; }
}

@media (max-width: 640px) {
  .masthead { padding: 18px 14px 14px; }
  .container, .wide-container { padding: 0 14px; }
  main { padding-top: 18px; }
  .nav-list { padding: 10px; }
  .nav-list a { padding: 12px 10px; font-size: .68rem; }
  .tagline-strip { font-size: .62rem; letter-spacing: .12em; }
  .home-hero h1 { font-size: 28px }
  .home-hero .lede { font-size: 1.15rem; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .section-heading h2 {font-size: 20px;}
  .editorial-grid, .post-grid { grid-template-columns: 1fr; gap: 24px; }
  .book-filter { margin-top: -24px; padding: 18px 0 20px; }
  .book-filter h2 { font-size: 20px; }
  .book-filter__buttons { display: grid; grid-template-columns: 1fr; }
  .book-filter__button { width: 100%; }
  .page-title { text-align: left; }
  .page-title h1, .article h1 { font-size: clamp(3rem, 16vw, 5.5rem); }
  .article p, .article li, .about-intro p { font-size: 1.06rem; }
}

.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    position: relative;
    z-index: 100;
  }

  .nav {
    min-height: 49px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--faint);
    position: relative;
  }

  .nav-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .nav-toggle:hover {
    text-decoration: underline;
    text-underline-offset: .18em;
  }

  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    display: block;
    width: 18px;
    height: 1px;
    background: #111;
    transition: transform 240ms ease, opacity 180ms ease;
  }

  .nav-toggle__icon {
    position: relative;
  }

  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .nav-toggle__icon::before {
    top: -6px;
  }

  .nav-toggle__icon::after {
    top: 6px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
    transform: rotate(90deg) translateX(-6px);
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 340px);
    max-width: 100%;
    margin: 0;
    padding: 84px 22px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-left: 1px solid #111;
    box-shadow: -18px 0 48px rgba(0, 0, 0, .14);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 260ms ease, visibility 260ms ease;
    z-index: 101;
  }

  body.nav-open .nav-list {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list li {
    border-bottom: 1px solid var(--faint);
  }

  .nav-list a {
    padding: 16px 0;
    font-size: .78rem;
    white-space: normal;
  }

  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .28);
    z-index: 99;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-list,
  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    transition: none;
  }
}



.nav-close {
    display: none;
}

@media (max-width: 768px) {
    .nav-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: 0;
        color: #fff;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        z-index: 1001;
    }
}



.nav-close-item {
    display: none;
}

@media (max-width: 768px) {
    .nav-close-item {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .nav-close {
        background: none;
        border: 0;
        color: #000;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
    }
}


@media (max-width: 768px) {
    .nav-list .nav-close-item {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-list .nav-close {
        color: #000;
    }
}


@media (max-width: 768px) {
    body.nav-active .nav-list,
    .nav.nav-open .nav-list {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }
}


/* Completed page detail pages */
.feed-item__image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.feed-item__image-link img {
  transition: transform 220ms ease, filter 220ms ease;
}

.feed-item__image-link:hover img,
.feed-item__image-link:focus-visible img {
  transform: translateY(-2px);
  filter: brightness(.96);
}

.completed-page-detail .home-hero {
  margin-bottom: 0;
}

.completed-page-detail .home-hero .eyebrow {
  margin-bottom: 12px;
}

.completed-hero-image img,
.completed-gallery img {
  border: 0;
  box-shadow: none;
}

.completed-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  margin: 0 0 28px;
  padding: 10px 0 0 !important;
  list-style: none;
  border-top: 1px solid #111;
}

.completed-tools-list li {
  padding: 8px;
  background-color: var(--faint);
  font-family: var(--serif);
  font-size: 12px;
  color: #222;
  transition: all 500ms;
}

.completed-tools-list li:hover {
    background-color: #000;
    color: #fff;
}

.completed-tools-list a {
    display: block;
  text-decoration: none;
}

.swatch-table-wrap {
  margin: 18px 0 32px;
  overflow-x: auto;
  border-top: 1px solid #111;
}

.swatch-table {
  width: 100%;
  border-collapse: collapse;
}

.swatch-table th,
.swatch-table td {
  border-bottom: 1px solid var(--faint);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.swatch-table th {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.swatch-table td {
  font-family: var(--serif);
  color: #222;
}

.colour-swatch {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, .16);
  background: var(--swatch-colour);
  border-radius: 999px;
}

.completed-back-link {
  margin-top: 42px;
  border-top: 1px solid #111;
  padding-top: 16px;
}

.completed-back-link p {
  font-family: var(--sans);
  font-size: .9rem;
}

.completed-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 10px;
  margin: 12px 0 34px;
}

.completed-thumbnail {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.completed-thumbnail img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--soft);
  opacity: .72;
  transition: opacity 180ms ease, transform 180ms ease;
}

.completed-thumbnail:hover img,
.completed-thumbnail:focus-visible img,
.completed-thumbnail.is-active img {
  opacity: 1;
  transform: translateY(-2px);
}

.completed-thumbnail.is-active {
  border-bottom: 2px solid #111;
  padding-bottom: 6px;
}
