/* The 2014-2016 phhhoto.com (web-static.phhhoto.com/stylesheets/main.css, from the Wayback
   Machine), but on a black page to match the nav: black nav, hyper green #6FC for anything you can tap, uppercase DIN
   with wide letter spacing. Barlow stands in for DIN Round. Loops are 3:4. */

:root {
  --green: #66ffcc;
  --green-dim: #3f8b72;
  --page: #000;
  --panel: #1a1a1a;
  --gray: #808080;
  --nav: 50px;
}
@media (min-width: 768px) { :root { --nav: 70px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Barlow, "DIN Round", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #fff;
  background: var(--page);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .1em;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }

.text_link { color: var(--green); }
.text_link:hover { color: var(--green-dim); }
.text_link:active { color: #fff; }

/* Nav: black, the wordmark in the middle, links either side. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: var(--nav);
  background: #000;
  color: var(--gray);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 8px;
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
}
.nav--section { display: flex; }
.nav--section.-right { justify-content: flex-end; }
.nav--link { text-transform: uppercase; padding: 12px; }
.nav--link.-primary { color: var(--green); }
.nav--link.-primary:hover { color: var(--green-dim); }
.nav--link.-primary.-active { color: #fff; }
.nav--link.-secondary { color: var(--gray); }
/* Phones have OPEN APP in the share bar, and the nav is too narrow for it. */
@media (max-width: 767px) { .nav--section.-right .nav--link { display: none; } }
.nav--logo {
  color: var(--green);
  font-size: 22px; letter-spacing: .18em; font-weight: 500;
  padding: 0 12px;
}
@media (min-width: 768px) { .nav--logo { font-size: 30px; } .nav { padding: 0 28px; } }

.content { padding-top: calc(var(--nav) + env(safe-area-inset-top)); min-height: calc(100vh - 74px); }

/* A loop: the strip slides up a frame at a time (steps), as the original's jpeg-strip did. */
.phhhoto { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #262626; display: block; }
.phhhoto--strip {
  position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block;
  animation: strip calc(var(--n) * var(--ms)) steps(var(--n)) infinite;
}
@keyframes strip { to { transform: translateY(-100%); } }
.phhhoto--strip.-still { animation: none; }
.phhhoto.-empty { background: #262626; }
.phhhoto--owner {
  position: absolute; right: 10px; bottom: 10px;
  background: #fff; color: #333;
  font-size: 10.5px; line-height: 1; letter-spacing: .05em; text-transform: uppercase;
  padding: 8px 9px; border-radius: 2px;
}
.phhhoto--fade { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }

/* Grids: two across in a 480px column (profiles), wider on big screens (home). */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid > :nth-child(4n+1) { background: #212121; }
.grid > :nth-child(4n+2) { background: #2b2b2b; }
.grid > :nth-child(4n+3) { background: #1a1a1a; }
.grid.-skinny { max-width: 480px; margin: 0 auto; }
.grid--item.-large { grid-column: 1 / -1; }
@media (min-width: 768px) { .grid:not(.-skinny) { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .grid:not(.-skinny) { grid-template-columns: repeat(6, 1fr); } }

/* PEOPLE: profile loops, the name and post count along the bottom. */
.person { position: relative; display: block; }
.person .phhhoto::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.person--name { position: absolute; left: 12px; right: 12px; bottom: 30px; text-transform: uppercase; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.person--name img { image-rendering: pixelated; width: 15px; }
.person--count { position: absolute; left: 12px; bottom: 12px; text-transform: uppercase; font-size: 11px; color: var(--green); }

.page_header { text-align: center; text-transform: uppercase; padding: 34px 20px 28px; }
.page_header--title { font-size: 24px; }
.page_header--sub { color: var(--gray); font-size: 12px; margin-top: 10px; line-height: 1.5; }

/* Profile: the profile loop faded, the name and bio over it, the counts along the bottom. */
.bio { position: relative; }
.bio--text { position: absolute; left: 0; right: 0; top: 34%; text-align: center; padding: 0 20px; }
.bio--username { font-size: 24px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.bio--username img { image-rendering: pixelated; width: 20px; height: auto; }
.bio--real_name { color: #ccc; text-transform: uppercase; margin-top: 8px; font-size: 12px; }
.bio--bio { margin-top: 10px; font-size: 12px; word-break: break-word; }
.bio--info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; padding: 16px 0; }
.bio--info--data { flex: 1; text-align: center; text-transform: uppercase; }
.bio--info--data .value { font-size: 19px; }
.bio--info--data .label { font-size: 11px; color: var(--green); margin-top: 4px; }
.bio--follow { text-align: center; padding: 14px 0; background: #000; }

.button {
  display: inline-block;
  background: var(--green); color: #000;
  text-transform: uppercase; font-size: 12px; line-height: 1.2;
  border-radius: 5px; padding: 12px 20px;
}
.button.-gray { background: #333; color: var(--green); font-weight: 400; }
.button.-outline { background: transparent; color: var(--green); border: 1px solid var(--green); }
.button.-small { padding: 8px 14px; font-size: 10px; }

/* Post page: the loop, then the dark toolbox. Side by side on wide screens. */
.detail { max-width: 480px; margin: 0 auto; }
@media (min-width: 900px) {
  .detail { max-width: 900px; display: grid; grid-template-columns: 480px 1fr; background: var(--panel); }
}
.detail--photo { background: #000; }
.detail--toolbox { background: var(--panel); color: var(--gray); font-size: 14px; }
.detail--section { padding: 20px; }
.detail--section + .detail--section { border-top: 1px solid #262626; }
.detail--header { text-transform: uppercase; color: #fff; font-size: 16px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.detail--header img { width: 15px; height: auto; }
.detail--meta { display: flex; gap: 20px; }
.detail--meta--thumbnail { width: 90px; flex: none; }
.detail--meta--line { text-transform: uppercase; display: block; overflow: hidden; text-overflow: ellipsis; }
.detail--meta--line.-username { font-size: 24px; line-height: 1.29; color: #fff; margin-top: .2em; display: flex; align-items: center; gap: 8px; }
.detail--meta--line.-username img { image-rendering: pixelated; width: 18px; }
.detail--meta--line.-caption { margin-top: .5em; text-transform: none; color: #ccc; word-break: break-word; }
.detail--likes--photos { display: flex; flex-wrap: wrap; gap: 0; }
.detail--likes--photos > * { width: 60px; max-width: 20%; }
.detail--likes--names { margin-top: 1em; color: #fff; text-transform: uppercase; line-height: 1.5; }
.detail--comment { margin: 0 0 12px; line-height: 1.4; }
.detail--comment .name { color: #fff; text-transform: uppercase; margin-right: 6px; }
.detail--comment .age { color: #555; font-size: 11px; margin-left: 6px; }
.detail--see_more { display: block; text-align: center; text-transform: uppercase; background: #000; padding: 22px 20px; line-height: 23px; }

.message { text-align: center; text-transform: uppercase; color: #666; padding: 120px 20px; font-size: 16px; line-height: 1.6; }

/* The phone share bar, as share_bar: Share and Open App along the bottom. */
.share_bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; gap: 10px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(0, 0, 0, .85), #000);
}
.share_bar[hidden] { display: none; }
.share_bar--button { flex: 1; text-align: center; height: 40px; padding: 14px 12px; letter-spacing: .05em; }
@media (min-width: 768px) { .share_bar { display: none; } }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 28px 20px calc(80px + env(safe-area-inset-bottom));
  color: var(--gray); text-transform: uppercase; font-size: 11px; background: var(--page);
}
@media (min-width: 768px) { .footer { padding-bottom: 28px; } }
.footer--quiet { color: #555; }

.toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%);
  background: var(--green); color: #000; text-transform: uppercase; font-size: 12px;
  padding: 10px 16px; border-radius: 3px; z-index: 20;
}
