:root {
  color-scheme: light;
  --paper: #f3f0eb;
  --ink: #342b26;
  --accent: #005AF4;
  --accent-soft: #e5eeff;
  --line: #ded8d0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: #fff; }

.site-header {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 112px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; }
.tagline { font-size: 12px; line-height: 1.2; letter-spacing: .08em; color: var(--accent); }

.wordmark {
  display: inline-block;
  font-size: 49px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.075em;
  padding-right: .075em;
}

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 112px 24px;
}

.moodboard-link {
  min-height: 58px;
  width: 256px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 27px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.moodboard-link svg { width: 21px; height: 21px; transition: transform .2s; }
@media (hover: hover) {
  .moodboard-link:hover { background: transparent; color: var(--accent); }
  .moodboard-link:hover svg { transform: translateX(3px); }
}

.board { padding: 112px 32px 64px; }
.board-heading {
  position: relative;
  max-width: 1320px;
  height: 78px;
  margin: 0 auto 38px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.board-heading h1 {
  margin: 0;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 400;
}
.board-heading h1:focus { outline: none; }
.back-link {
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--accent);
}
.back-link:hover { background: var(--accent-soft); }
.pins {
  max-width: 668px;
  margin: 0 auto;
  columns: 2;
  column-gap: 24px;
}
.pins.is-expanded { max-width: 1280px; columns: 4; }
.pin {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 24px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #e2ded7;
  break-inside: avoid;
  cursor: zoom-in;
  isolation: isolate;
}
.pin img { display: block; width: 100%; height: auto; transition: transform .35s; }
.pin-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.pin-zoom svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .pin:hover img { transform: scale(1.025); }
  .pin:hover .pin-zoom, .pin:focus-visible .pin-zoom { opacity: 1; }
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 40px 72px;
  background: #f3f0ebf7;
  color: var(--ink);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #342b2633; }
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  cursor: pointer;
}
.lightbox-close:hover { background: var(--accent-soft); border-color: var(--accent); }
body:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 760px) {
  .pins.is-expanded { columns: 2; }
}
@media (max-width: 480px) {
  .site-header { height: 96px; padding: 0 20px; }
  .wordmark { font-size: 43px; }
  .home { padding: 96px 20px; }
  .moodboard-link { width: 240px; min-height: 56px; }
  .board { padding: 96px 16px 32px; }
  .board-heading { height: 70px; margin-bottom: 20px; }
  .pins { column-gap: 12px; }
  .pin { border-radius: 12px; margin-bottom: 12px; }
  .lightbox { padding: 72px 16px 32px; }
  .lightbox-image { max-height: calc(100dvh - 104px); }
  .lightbox-close { top: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
