@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --black: #101010;
  --yellow: #fffc00;
  --white: #f9f9f7;
  --muted: #c3c3ba;
  --line: #383833;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --folder: polygon(0 0, 40% 0, 52% 19%, 100% 19%, 100% 100%, 0 100%);
  --spark: polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
  color-scheme: dark;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: 1.5rem; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  translate: 0 -200%;
  padding: .75rem 1rem;
  color: var(--black);
  background: var(--yellow);
}

.skip-link:focus { translate: 0; }

.shell {
  width: min(100% - clamp(2.5rem, 9vw, 8.5rem), 81rem);
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  min-height: 5.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: .63rem;
  font-size: 1.64rem;
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 2.05rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: .55rem;
  background: var(--yellow);
}

.brand-mark::before {
  width: 61%;
  height: 46%;
  border-radius: .16rem;
  clip-path: var(--folder);
  background: var(--black);
  content: "";
}

.header-nav, .footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.5rem);
  font-size: .9375rem;
  font-weight: 650;
}

.header-nav a, .footer-nav a { padding-block: .55rem; }
.header-nav a:hover, .footer-nav a:hover { color: var(--yellow); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  min-height: 3.5rem;
  padding: .85rem 1.55rem;
  border: 2px solid var(--yellow);
  border-radius: 100vmax;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover { background: var(--white); border-color: var(--white); }
.button:active { transform: translateY(2px); }

.button-small {
  justify-self: end;
  min-height: 2.75rem;
  padding: .55rem 1.15rem;
  font-size: .9rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4.7vw, 4.5rem);
  padding-block: clamp(2rem, 4.1vw, 4rem) clamp(3.75rem, 6vw, 6rem);
}

.hero-copy { min-width: 0; }

.kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  color: var(--yellow);
  font-weight: 800;
  font-size: .875rem;
  letter-spacing: .115em;
  line-height: 1.35;
  text-transform: uppercase;
}

.kicker::before {
  flex: none;
  width: 1.55rem;
  height: 2px;
  background: currentColor;
  content: "";
}

h1, h2 {
  font-family: var(--heading);
  font-weight: 800;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.85rem, 7.9vw, 8.1rem);
  line-height: .85;
}

h1 span { display: block; }

h1 em {
  color: var(--yellow);
  font-style: italic;
}

.hero-description {
  max-width: 27rem;
  margin-block: 1.65rem 1.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1.54;
}

.hero-art {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  aspect-ratio: 1.06;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 0 0 1px #242421;
}

.art-orbit {
  position: absolute;
  z-index: -1;
  width: 116%;
  height: 53%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .46;
  rotate: -31deg;
}

.art-spark {
  position: absolute;
  z-index: -1;
  top: 11%;
  right: 10%;
  width: 8%;
  aspect-ratio: 1;
  clip-path: var(--spark);
  background: currentColor;
  rotate: 15deg;
}

.library-preview {
  width: 78%;
  padding: clamp(.65rem, 1.6vw, 1.15rem);
  border: 1px solid var(--black);
  border-radius: .95rem;
  background: var(--white);
  box-shadow: .6rem .7rem 0 var(--black);
  rotate: -5deg;
}

.library-toolbar {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-bottom: .65rem;
  font-size: clamp(.875rem, 1.6vw, 1.14rem);
  font-weight: 800;
}

.library-toolbar .brand-mark { width: 1.65rem; border-radius: .37rem; }

.library-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  margin-bottom: .65rem;
}

.library-tags span {
  padding: .19rem .46rem;
  border: 1px solid #d7d8d5;
  border-radius: 100vmax;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
}

.library-tags span:first-child {
  border-color: var(--yellow);
  background: var(--yellow);
}

.library-preview img {
  height: auto;
  border-radius: .5rem;
}

.backup-sticker {
  position: absolute;
  right: 6%;
  bottom: 11%;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .88rem .55rem .55rem;
  border: 1px solid var(--black);
  border-radius: 100vmax;
  background: var(--white);
  box-shadow: .22rem .25rem 0 var(--black);
  font-size: .875rem;
  font-weight: 800;
  rotate: 7deg;
}

.backup-sticker span {
  display: grid;
  width: 1.55rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
}

.features {
  padding-block: clamp(3rem, 5.5vw, 5rem);
  border-block: 1px solid var(--line);
  background: #171715;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(3rem, 5.6vw, 5.9rem);
  line-height: .91;
}

.section-intro > p {
  max-width: 24rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.075rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.feature-card {
  padding: clamp(1.25rem, 2.75vw, 2.35rem);
  border-radius: .85rem;
  background: var(--white);
  color: var(--black);
}

.feature-icon {
  display: grid;
  width: 3.1rem;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 1.3rem;
  border-radius: .64rem;
  background: var(--yellow);
}

.cloud-icon {
  position: relative;
  width: 1.65rem;
  height: .75rem;
  margin-top: .48rem;
  border-radius: 1rem;
  background: currentColor;
}

.cloud-icon::before, .cloud-icon::after {
  position: absolute;
  bottom: .25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.cloud-icon::before { left: .24rem; width: .85rem; }
.cloud-icon::after { right: .18rem; width: .62rem; }

.folder-icon {
  width: 1.55rem;
  height: 1.14rem;
  border-radius: .14rem;
  clip-path: var(--folder);
  background: currentColor;
}

.link-icon {
  position: relative;
  width: 1.7rem;
  height: .72rem;
  rotate: -42deg;
}

.link-icon::before, .link-icon::after {
  position: absolute;
  width: 59%;
  height: 100%;
  border: 2px solid currentColor;
  border-radius: 1rem;
  content: "";
}

.link-icon::before { left: 0; }
.link-icon::after { right: 0; }

.feature-card h3 {
  margin-bottom: .55rem;
  font-size: clamp(1.25rem, 1.8vw, 1.61rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.1;
}

.feature-card p { color: #343432; line-height: 1.55; }

.faq {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2rem 3rem;
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem .25rem;
  cursor: pointer;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background:
    linear-gradient(var(--yellow), var(--yellow)) center / 100% 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) center / 2px 100% no-repeat;
  content: "";
}

.faq-list details[open] summary::after { background-size: 100% 2px, 0 0; }
.faq-list summary:hover { color: var(--yellow); }

.faq-list details p {
  max-width: 34rem;
  padding: 0 1.75rem 1.15rem .25rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq-list p a { color: var(--yellow); text-decoration: underline; text-underline-offset: .2em; }

.sharing { margin-bottom: clamp(3rem, 5vw, 5rem); }

.sharing-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: clamp(15rem, 25vw, 22rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  border-radius: 1rem;
  background: var(--yellow);
  color: var(--black);
}

.sharing-copy { max-width: 63%; }

.sharing-copy > p {
  max-width: 26rem;
  margin-block: 1.1rem 1.3rem;
  font-size: clamp(1rem, 1.65vw, 1.2rem);
  line-height: 1.5;
}

.button-dark {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.button-dark:hover { background: var(--white); border-color: var(--black); color: var(--black); }
.button-dark:focus-visible { outline-color: var(--black); }

.sharing-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 3.5%;
  width: 35%;
  aspect-ratio: 1.3;
  transform: translateY(-50%);
}

.orbit {
  position: absolute;
  inset: 18% 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: rotate(-30deg);
}

.sharing-spark {
  position: absolute;
  top: 3%;
  left: 22%;
  width: 52%;
  aspect-ratio: 1;
  clip-path: var(--spark);
  background: currentColor;
  transform: rotate(13deg);
}

.spark-small { top: 64%; left: 67%; width: 18%; transform: rotate(-7deg); }
.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  min-height: 6.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 1.25rem;
}

.footer-inner p { color: var(--muted); font-size: .9375rem; }

.header-shared { grid-template-columns: 1fr auto; }

.shared-photo {
  max-width: 57rem;
  margin-block: clamp(1.8rem, 5vw, 4rem);
  padding: clamp(1.15rem, 4vw, 2.75rem);
  border: 1px solid #d9dcdd;
  border-radius: 1rem;
  background: #eef0f1;
  color: var(--black);
}

.shared-photo h1 {
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  font-size: clamp(2.5rem, 5.7vw, 4.5rem);
  text-wrap: balance;
}

.shared-photo img { height: auto; border-radius: .55rem; }

.photo-details {
  margin-top: clamp(1.15rem, 3vw, 1.8rem);
  padding-top: clamp(1rem, 2.2vw, 1.45rem);
  border-top: 1px solid #cdd1d3;
}

.photo-details h2 {
  font: 800 1.2rem/1.15 var(--body);
  letter-spacing: -.035em;
  text-transform: none;
}

.photo-metadata {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: .85rem 0 0;
  line-height: 1.45;
}

.photo-metadata dt { color: #50565a; font-size: .875rem; }
.photo-metadata dd { margin: .15rem 0 0; font-weight: 700; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.back-link {
  padding-block: .75rem;
  font-weight: 700;
  font-size: .9375rem;
}

.back-link:hover { color: var(--yellow); }

.signup-layout {
  display: grid;
  max-width: 71rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2rem, 7vw, 6rem);
}

.signup-intro { padding-top: clamp(0rem, 2vw, 1.75rem); }
.signup-intro h1 { font-size: clamp(3.4rem, 7.1vw, 7rem); }

.signup-intro p {
  max-width: 24rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.55;
}

.signup-card {
  padding: clamp(1.15rem, 4vw, 2.25rem);
  border-radius: 1rem;
  background: #eef0f1;
  color: var(--black);
  color-scheme: light;
}

.signup-card h2 {
  font: 800 1.6rem/1.15 var(--body);
  letter-spacing: -.04em;
  text-transform: none;
}

.signup-note {
  margin-top: .5rem;
  color: #43484b;
  line-height: 1.5;
}

.signup-card fieldset {
  min-width: 0;
  margin: 1.4rem 0 0;
  padding: 0;
  border: 0;
}

.signup-field { margin-bottom: 1.2rem; }
.signup-field label { display: block; margin-bottom: .35rem; font-weight: 750; }
.signup-field p { margin-top: .35rem; color: #43484b; font-size: .875rem; }

.signup-field input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: .65rem .8rem;
  border: 1px solid #939b9f;
  border-radius: .45rem;
  background: #fff;
  color: var(--black);
  font: inherit;
}

.password-field { position: relative; }
.password-field input { padding-right: 4.25rem; }

.password-field button {
  display: grid;
  place-items: center;
  position: absolute;
  inset: .2rem .25rem .2rem auto;
  min-width: 3.4rem;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.password-field button svg { width: 1.35rem; height: 1.35rem; }
.password-field button[aria-pressed="false"] .eye-slash { display: none; }
.password-field button:hover { background: #e9ebeb; }
.signup-card :focus-visible { outline-color: var(--black); outline-offset: 2px; }
.signup-card .button { width: 100%; font-family: inherit; font-size: 1rem; cursor: pointer; }
.signup-card :disabled { cursor: default; }
.signup-card .button:disabled { opacity: .55; }

.signup-status:not(:empty) {
  margin-top: 1rem;
  padding: .75rem .9rem;
  border-left: .2rem solid #276643;
  background: #dceee3;
  line-height: 1.45;
}

@media (max-width: 64rem) {
  .hero { gap: 1.6rem; }
  h1 { font-size: clamp(3.65rem, 8.9vw, 6.3rem); }
}

@media (max-width: 48rem) {
  .header-inner { min-height: 4.5rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  h1 { font-size: clamp(3.85rem, 12.1vw, 6.8rem); }
  .hero-description { margin-block: 1.25rem 1.4rem; }
  .hero-art { aspect-ratio: 1.12; }
  .section-intro { display: grid; }
  .feature-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .photo-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-layout { grid-template-columns: 1fr; max-width: 32rem; }
}

@media (max-width: 36rem) {
  .header-inner { grid-template-columns: 1fr auto; gap: .75rem; }
  .header-nav { display: none; }
  .wordmark { font-size: 1.5rem; }
  .brand-mark { width: 1.85rem; }
  .header-home { gap: .5rem; }
  .header-home .wordmark { gap: .4rem; font-size: clamp(1.2rem, 6vw, 1.5rem); }
  .header-home .brand-mark { width: clamp(1.45rem, 7vw, 1.85rem); }
  .header-home .button-small { padding-inline: .65rem; font-size: .875rem; }
  .sharing-art { top: auto; bottom: .95rem; right: 1.1rem; width: clamp(2.5rem, 12vw, 4.2rem); transform: none; }
  .sharing-copy { max-width: 100%; }
  .sharing-copy .button { max-width: 100%; }
  .backup-sticker { right: 7%; bottom: 5%; padding: .4rem .65rem .4rem .4rem; }
  .footer-inner p { order: 1; flex-basis: 100%; }
}

@media (max-width: 24rem) {
  h1 { font-size: clamp(3.3rem, 13.6vw, 3.85rem); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
