/* standish.productions
   layout: the menu column (name, three headlines with counts, contact, clock) stays put on the right;
   tapping a headline shows its work on the left. on phones the menu sits on top and the work shows below it.
   one light look on purpose. */
:root {
  --paper: #ffffff;
  --ink: rgba(10, 10, 10, 0.88);
  --ink-soft: rgba(10, 10, 10, 0.52);
  --line: rgba(10, 10, 10, 0.12);
  --on: #ff1a00;          /* the open section */
  --live: #1fb35a;        /* available for work */
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --big: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);   /* name and headlines */
  --body: 1rem;
  --small: 0.8125rem;
  --pad: clamp(16px, 3vw, 3rem);
  --row: 210px;           /* photo row height */
  --gap: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* keeps the photo viewer and closed sections hidden */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--body)/1.35 var(--sans);
  text-transform: lowercase;            /* remove this line to turn off the all-lowercase look */
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:active, button:active { opacity: 0.7; }
:focus-visible { outline: 2px solid var(--on); outline-offset: 3px; }
h1, h3, p, ul, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; }
.u, .contact:hover, .sec:hover span:first-child, .handles a:hover, .mine a:hover, .feed a:hover, .ask:hover {
  text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: 1px;
}

.frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  grid-template-areas: "stage side";
  gap: calc(var(--pad) * 1.5);
  padding-block: var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

/* the menu column on the right: never moves */
.side {
  grid-area: side;
  position: sticky;
  top: var(--pad);
  align-self: start;
  height: calc(100vh - 2 * var(--pad));
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}
.name { font-size: var(--big); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.tag { margin-top: -1.85rem; font-size: var(--small); color: var(--ink-soft); }
.menu { display: grid; justify-items: start; }
.sec {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: var(--big); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em;
  text-align: left; padding-block: 0.1rem;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.count { font: 400 var(--small)/1 var(--mono); color: var(--ink-soft); letter-spacing: 0; }
.sec[aria-expanded="true"] { color: var(--on); }
.contact { font-size: var(--big); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-top: -1rem; }
.foot { margin-top: auto; display: grid; gap: 0.35rem; font-size: var(--small); color: var(--ink-soft); }
.status { display: flex; align-items: center; gap: 0.5em; color: var(--ink); }
.dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--live); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.clock time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mail { user-select: all; }

/* the work, on the left */
.stage { grid-area: stage; min-width: 0; }
.panel { display: grid; gap: 2.2rem; align-content: start; animation: fade 0.4s ease both; }
@keyframes fade { from { opacity: 0; } }
.skills { font-size: var(--big); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; max-width: 34ch; text-wrap: balance; }

/* creative director: photos in justified rows, fading in one after another */
.piece { display: grid; gap: 0.7rem; }
.piece h3 { font-size: var(--small); font-weight: 500; }
.piece h3 span { color: var(--ink-soft); font-weight: 400; font-family: var(--mono); }
.gallery { display: flex; flex-wrap: wrap; gap: var(--gap); }
.gallery::after { content: ""; flex: 10000 1 0; }
.tile {
  flex: var(--r) 1 calc(var(--r) * var(--row));
  max-width: 100%; min-width: 0; cursor: zoom-in;
  animation: rise 0.6s ease both;
  animation-delay: calc(var(--i) * 45ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; background: #f4f4f4; transition: opacity 0.25s ease; }
.gallery:hover .tile img { opacity: 0.82; }
.gallery .tile:hover img { opacity: 1; }

/* management */
.handles { list-style: none; padding: 0; display: grid; gap: 0.2rem; font-size: var(--big); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.ask { font-size: var(--body); color: var(--ink-soft); justify-self: start; }

/* socials: live instagram grids */
.feeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem var(--pad); }
.feed { display: grid; gap: 0.5rem; }
.feed figcaption { font-size: var(--small); font-weight: 500; }
.feed iframe { width: 100%; height: 34rem; border: 1px solid var(--line); background: #fff; display: block; }
.mine { font-size: var(--big); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.mine span { font: 400 var(--small)/1 var(--mono); color: var(--ink-soft); letter-spacing: 0; margin-right: 0.8rem; }

/* full screen photo viewer */
.viewer {
  position: fixed; inset: 0; z-index: 20;
  background: var(--paper);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  padding: calc(var(--pad) + env(safe-area-inset-top, 0px)) max(var(--pad), env(safe-area-inset-right, 0px))
           calc(var(--pad) + env(safe-area-inset-bottom, 0px)) max(var(--pad), env(safe-area-inset-left, 0px));
  animation: fade 0.25s ease both;
}
.v-fig { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.75rem; justify-items: center; }
.v-fig img { max-width: 100%; max-height: 100%; object-fit: contain; align-self: center; }
.v-fig figcaption { font-size: var(--small); color: var(--ink-soft); }
.v-prev, .v-next { font-size: var(--big); padding: 1rem; }
.v-close { position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: max(1rem, env(safe-area-inset-right, 0px)); font-size: var(--small); }

/* phones: menu on top, the work below it */
@media (max-width: 760px) {
  :root { --row: 120px; --gap: 5px; }
  .frame { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "stage"; gap: 2.5rem; }
  .side { position: static; height: auto; gap: 1.6rem; }
  .tag { margin-top: -1.3rem; }
  .contact { margin-top: -0.6rem; }
  .foot { margin-top: 0; }
  .feed iframe { height: 30rem; }
  .viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding-top: calc(3rem + env(safe-area-inset-top, 0px)); }
  .v-fig { grid-column: 1; grid-row: 1; }
  .v-prev, .v-next { grid-row: 2; position: static; padding: 0.5rem 1rem; }
  .v-prev { justify-self: start; grid-column: 1; }
  .v-next { justify-self: end; grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dot, .panel, .tile, .viewer { animation: none; }
  .tile img { transition: none; }
}
