/* Layout measured from the downloaded supreme.com styles.
   Wordmark, copy, and links are this portfolio. */

:root {
  --ink: #000;
  --paper: #fff;
  --red: #ff0000;
  --grey: #999;
  --light: #ccc;
  --track: #f2f2f2;
  --mono: "Courier New", Courier, monospace;
}

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

html {
  height: 100%;
}

html::-webkit-scrollbar,
.stage-text::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

html::-webkit-scrollbar-track,
.stage-text::-webkit-scrollbar-track,
html::-webkit-scrollbar-corner,
.stage-text::-webkit-scrollbar-corner {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
.stage-text::-webkit-scrollbar-thumb {
  background: var(--ink);
}

html:has(body.home)::-webkit-scrollbar-thumb {
  background: var(--paper);
}

html::-webkit-scrollbar-thumb:hover,
.stage-text::-webkit-scrollbar-thumb:hover,
html:has(body.home)::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

html::-webkit-scrollbar-button,
.stage-text::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

@supports not selector(::-webkit-scrollbar) {
  html,
  .stage-text {
    scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent;
  }

  html:has(body.home) {
    scrollbar-color: var(--paper) transparent;
  }
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.08;
  letter-spacing: -0.3px;
  color-scheme: light;
}

body.home {
  background: var(--ink);
  color: var(--paper);
  color-scheme: dark;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a:has(> .sr) {
  position: relative;
}

button,
input,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

:focus-visible {
  outline: 1px dotted #e0e0e0;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  background: var(--paper);
  color: var(--ink);
}

.skip:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 2px;
  left: 5px;
  top: 5px;
  z-index: 2000;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
}

.home .shell {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: flex-start;
}

body:has(.stage-text) .shell {
  height: 100dvh;
  overflow: hidden;
}

/* Header: centered box, clock under it. */

.site-head {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
  text-align: center;
  z-index: 2;
}

.home .site-head {
  flex: 0 0 100%;
  margin-top: 24px;
}

.logo {
  display: block;
  line-height: 0;
  text-align: center;
}

.logo img {
  display: inline-block;
  width: 90px;
  height: auto;
  vertical-align: top;
}

.clock {
  flex: 0 0 auto;
  width: 100%;
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

/* Home column. Narrow, left-aligned, centered on the page. */

.home main {
  display: flex;
  flex: 0 0 100%;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 450px;
}

.home-spacer {
  flex: 0 0 100%;
  height: 0;
}

.home-col {
  width: 50%;
  padding: 0 16px;
}

.menu {
  margin-top: 60px;
}

.menu li,
.social li {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.menu li + li {
  margin-top: 16px;
}

.menu a,
.social a,
.home-legal a,
.foot-primary a,
.foot-secondary a {
  padding: 0 2px;
}

.social {
  display: flex;
  margin-top: 24px;
}

.social li + li {
  margin-left: 16px;
}

.home-legal {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0;
}

.home-legal li + li {
  margin-left: 16px;
}

.menu a:hover,
.menu a:focus-visible,
.social a:hover,
.social a:focus-visible,
.home-legal a:hover,
.home-legal a:focus-visible,
.foot-primary a:hover,
.foot-primary a:focus-visible,
.foot-secondary a:hover,
.foot-secondary a:focus-visible {
  background: var(--red);
  color: var(--paper);
}

[aria-current="page"] {
  font-weight: 700;
}

/* Inner pages. */

.stage {
  display: block;
  width: min(700px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 0 0 36px;
}

.stage-text {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 24px;
}

.stage-full {
  flex: 0 0 auto;
  width: min(874px, calc(100% - 32px));
  overflow: visible;
}

.col {
  width: 100%;
}

.stage-full .col {
  max-width: 874px;
}

.col h1,
.col h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.col h2 {
  margin-top: 16px;
}

.col p,
.col .plain {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: -0.3px;
  line-height: 1.08;
}

.col a:hover,
.col a:focus-visible {
  background: var(--red);
  color: var(--paper);
}

.entry {
  margin-top: 16px;
}

.entry h2 {
  margin-top: 0;
}

.entry img {
  width: auto;
  max-width: 100%;
  max-height: 360px;
  margin-top: 8px;
  object-fit: contain;
}

.frame {
  margin: 16px 0 0;
}

.frame figcaption {
  margin-top: 8px;
}

.stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 8px;
  margin: 16px 0 0;
}

.stack li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stack img {
  width: 32px;
  height: 32px;
}

.stack span {
  font-size: 11px;
  line-height: 1.08;
}

/* Footer. Three link columns. */

.site-foot {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  width: min(880px, calc(100% - 48px));
  margin: 16px auto 0;
  padding: 0 0 28px;
}

.foot-primary,
.foot-secondary ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.foot-primary {
  width: 100%;
  font-size: 13px;
  letter-spacing: 0;
}

.foot-primary li + li {
  margin-left: 9px;
}

.foot-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 9px;
  width: 100%;
  margin-top: 40px;
}

.foot-secondary ul {
  justify-content: flex-start;
}

.foot-secondary li + li {
  margin-left: 9px;
}

.foot-secondary a {
  font-size: 11px;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .site-head {
    margin-top: 50px;
  }

  .home .site-head {
    margin-top: 50px;
  }

  .home-col {
    width: max-content;
    min-width: 16.25%;
    max-width: 100%;
    padding: 0;
  }

  .home .menu,
  .home .home-legal {
    width: max-content;
    max-width: 100%;
  }

  .menu {
    margin-top: 0;
  }

  .home-spacer {
    height: 48px;
    margin-top: 8px;
  }

  .social {
    margin-top: 40px;
  }

  .social li + li,
  .home-legal li + li {
    margin-left: 24px;
  }

  .home-legal {
    margin-top: 40px;
  }

  .stage {
    margin-top: 32px;
    padding-bottom: 16px;
  }

  .col h1,
  .col h2 {
    font-size: 11px;
  }

  .site-foot {
    margin-top: 8px;
    padding-bottom: 28px;
  }

  .foot-secondary {
    justify-content: space-between;
    margin-top: 48px;
    gap: 0;
  }

  .foot-secondary ul {
    display: block;
    flex: 1 1 0;
  }

  .foot-secondary li + li {
    margin: 16px 0 0;
  }

  .foot-secondary ul:last-child {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .stage {
    margin-top: 24px;
  }
}

@media (min-width: 768px) and (min-height: 960px) {
  .site-head {
    margin-top: 12vh;
  }

  .home .site-head {
    margin-top: 12vh;
  }
}

@media (min-width: 1728px) and (min-height: 800px) {
  .home main {
    min-height: 600px;
  }
}

@media (min-width: 1728px) {
  .stage {
    width: min(874px, calc(100% - 32px));
  }

  .site-foot {
    width: min(880px, calc(100% - 48px));
  }
}

/* Lookbook. Main frame, thumb grid, pager, caption bar. */

.look {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.look-view {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
}

.look-stage {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  padding: 0 16px;
}

.look-open,
.look-thumb,
.look-arrow,
.look-full-nav,
.look-full-close {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
}

.look-open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  cursor: zoom-in;
}

.look-open img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.look-thumbs {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  align-content: flex-start;
  justify-content: flex-end;
  height: 0;
}

.look-thumb {
  position: relative;
  display: none;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s linear;
}

.look-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.look-thumb:hover,
.look-thumb:focus-visible,
.look-thumb[aria-current="true"] {
  border-color: var(--red);
}

.look-pager {
  position: absolute;
  top: 100%;
  right: 16px;
  display: flex;
  margin-top: 8px;
  align-items: center;
  justify-content: flex-end;
  font-size: 11px;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: right;
}

.look-arrow {
  display: inline-flex;
  align-items: flex-end;
  width: 9px;
  height: 8px;
  color: var(--grey);
  cursor: pointer;
}

.look-arrow:disabled {
  visibility: hidden;
}

.look-prev {
  margin-right: 6px;
  transform: rotate(180deg);
}

.look-next {
  margin-left: 6px;
}

.look-bar {
  display: flex;
  flex: 0 0 100%;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 28px auto 0;
  padding: 0 16px 36px;
}

.look-bar .logo {
  flex: 0 0 auto;
  margin-right: 16px;
}

.look-title,
#look-caption {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.look-title {
  font-weight: 700;
}

#look-caption {
  margin-top: 2px;
}

html:has(.look-full[open]) {
  overflow: hidden;
}

.look-full {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  overflow: hidden;
}

.look-full::backdrop {
  background: var(--paper);
}

.look-full[open] {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.look-full-close {
  position: relative;
  width: min(calc(100vw - 32px), calc((100dvh - 48px) * 2 / 3));
  aspect-ratio: 2 / 3;
  cursor: zoom-out;
}

.look-full-close img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.look-full-nav {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 40%;
  height: 85%;
}

.look-full-nav:disabled {
  pointer-events: none;
}

.look-full-prev {
  left: -60px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8'%3E%3Cg transform='translate(9 0) scale(-1 1)'%3E%3Cpath fill='%23999' d='M4.06.22c.29-.29.77-.29 1.06 0l2.92 2.92c.29.29.29.77 0 1.06L5.12 7.21a.75.75 0 0 1-1.06-1.06l1.67-1.68H.75a.75.75 0 0 1 0-1.5h5L4.06 1.28a.75.75 0 0 1 0-1.06z'/%3E%3C/g%3E%3C/svg%3E") 4 4, w-resize;
}

.look-full-next {
  right: -60px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8'%3E%3Cpath fill='%23999' d='M4.06.22c.29-.29.77-.29 1.06 0l2.92 2.92c.29.29.29.77 0 1.06L5.12 7.21a.75.75 0 0 1-1.06-1.06l1.67-1.68H.75a.75.75 0 0 1 0-1.5h5L4.06 1.28a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") 4 4, e-resize;
}

@media (min-width: 768px) {
  .look {
    --photo: min(355px, calc(100vw - 460px));
    --gap: 32px;
    --thumbs: 168px;
  }

  .look-view {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
    margin-top: 36px;
    margin-left: 0;
  }

  .look-stage {
    flex: 0 0 var(--photo);
    width: var(--photo);
    padding: 0;
  }

  .look-thumbs {
    position: absolute;
    top: 0;
    left: calc(50% + (var(--photo) / 2) + var(--gap));
    display: grid;
    flex: none;
    width: var(--thumbs);
    height: auto;
    margin-left: 0;
  }

  .look-thumb {
    display: block;
  }

  .look-pager {
    position: static;
    grid-column: 1 / -1;
    margin-top: 12px;
  }

  .look-bar {
    display: grid;
    grid-template-columns: 1fr var(--photo) 1fr;
    align-items: center;
    width: 100%;
    max-width: none;
    margin-top: 36px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .look-bar .logo {
    justify-self: end;
    margin-right: 40px;
  }

  .look-meta {
    width: var(--photo);
  }
}

@media (min-width: 1024px) {
  .look {
    --photo: 355px;
    --gap: 70px;
    --thumbs: 224px;
  }

  .look-view {
    margin-top: 50px;
    margin-left: 0;
  }

  .look-bar {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width: 768px) and (min-height: 960px) {
  .look-view {
    margin-top: 12vh;
  }
}

@media (min-width: 1728px) and (min-height: 800px) {
  .look-bar {
    margin-top: 88px;
  }
}

/* Keep the lookbook inside the screen so the footer stays fully visible. */

.lookbook {
  --frame: min(355px, calc((100dvh - 300px) * 2 / 3), calc(100vw - 32px));
}

.lookbook,
.lookbook .shell {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.lookbook main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.lookbook .look {
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

.lookbook .look-view {
  flex: 0 0 auto;
  align-items: center;
  width: 100%;
  margin-top: 16px;
}

.lookbook .look-stage {
  flex: 0 0 auto;
  width: var(--frame);
  max-width: calc(100% - 32px);
  height: calc(var(--frame) * 3 / 2);
  padding: 0;
}

.lookbook .look-open {
  width: 100%;
  height: 100%;
}

.lookbook .look-bar {
  flex: 0 0 auto;
  margin-top: 16px;
  padding-bottom: 8px;
}

.lookbook .site-foot {
  margin-top: 0;
}

@media (max-width: 767px) {
  .lookbook {
    --frame: min(calc(100vw - 32px), calc((100dvh - 280px) * 2 / 3));
  }
}

@media (min-width: 768px) {
  .lookbook .look {
    --photo: var(--frame);
  }

  .lookbook .look-view {
    margin-top: 16px;
  }

  .lookbook .look-bar {
    margin-top: 16px;
  }
}

