/* mongelt.com landing page.
   Built from the owner's design, docs/visual-design.html (its static "Landing page" version).
   Colors: background #151514, text #E7E3DC, secondary #A29D95, labels #8C877F. */

/* Fonts are served from this site (public/fonts/), not from Google. Licenses: public/fonts/OFL-*.txt */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/LibreCaslonText-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/PublicSans.woff2') format('woff2');
}

body { margin: 0; background: #151514; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

/* Page: projects on top, portfolio banner in the bottom third */
.lp {
  height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 33.333vh;
  overflow: hidden;
  background-color: #151514;
  color: #E7E3DC;
  font-family: 'Public Sans', 'Helvetica Neue', Helvetica, sans-serif;
}

/* Projects */
.top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: clamp(48px, 9vh, 96px) 56px 44px;
  align-items: start;
  min-height: 0;
}
/* The drawn tile is wider than its column; a second tile needs a design change first. */
.tile { display: flex; flex-direction: column; gap: 22px; width: 112.5%; }
.tile:focus-visible, .banner:focus-visible { outline: 2px solid #E7E3DC; outline-offset: 6px; }
.cap-art { display: block; width: 100%; height: auto; max-height: 23.6vh; }
.flow { animation: flow 26s linear infinite; }
@keyframes flow { from { transform: translateX(0); } to { transform: translateX(-1400px); } }

.stack { display: flex; flex-direction: column; gap: 12px; }
.desc { margin: 0; font-size: 15px; line-height: 1.5; color: #A29D95; }
.tile .desc { text-wrap: pretty; }
.tile-title {
  display: block;
  margin-bottom: 2px;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  color: #E7E3DC;
}
.label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8C877F;
}
.arrow { transition: transform .25s ease; }
.tile:hover .arrow, .banner:hover .arrow { transform: translate(3px, -3px); }

/* Portfolio banner */
.banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 56px 0;
  border-top: 1px solid rgba(231, 227, 220, .09);
  overflow: hidden;
  min-height: 0;
}
.banner-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 36px;
  min-height: 0;
}
.name {
  margin: 0;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #E7E3DC;
  text-wrap: balance;
}
/* Folder tabs; the two front tabs lift on hover */
.mark { display: block; width: 100%; height: 100%; align-self: stretch; overflow: visible; }
.lift { transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform-box: fill-box; transform-origin: 50% 50%; }
.banner:hover .lift-up { transform: translateY(-12px); }
.banner:hover .lift-up-s { transform: translateY(-5px); }

/* Phones and narrow windows: one column.
   The second condition covers phones held sideways (and other short windows up to 1000px wide),
   where the full-screen desktop layout would cut off the portfolio text and can't scroll. */
@media (max-width: 820px), (max-width: 1000px) and (max-height: 540px) {
  .lp { height: auto; min-height: 100vh; grid-template-rows: auto auto; overflow: visible; }
  .top { grid-template-columns: minmax(0, 1fr); padding: 32px 20px 40px; }
  .tile { width: auto; }
  .cap-art { max-height: none; }
  .banner { grid-template-columns: minmax(0, 1fr); padding: 32px 20px 0; gap: 28px; }
  .banner-text { padding-bottom: 0; }
  .mark { height: auto; }
}

/* Visitors who ask their device for less motion: stripes stop, hover moves are instant */
@media (prefers-reduced-motion: reduce) {
  .flow { animation: none; }
  .lift, .arrow { transition: none; }
}
