/* ============================================================
   VKHUTEMAS — one-page, full-height, no-scroll
   Principals: geometry, grid, primary color, stark whitespace
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght,CRSV@100..900,0&display=swap');

:root{
  --paper:   #f2efe8;   /* warm print paper */
  --ink:     #17140f;   /* near-black */
  --red:     #d8242a;   /* bauhaus red   */
  --blue:    #1c3f9e;   /* bauhaus blue  */
  --gold:    #e6a700;   /* bauhaus yellow*/
  --hair:    1px;       /* hairline rule */

  /* Fluid spacing & type — all scale with the SMALLER viewport
     dimension (vmin) so the composition fits any aspect ratio
     without clipping, and never provokes a scrollbar.           */
  --pad:     clamp(16px, 3.6vmin, 46px);
  --pad-x:   clamp(22px, 6.4vmin, 88px);  /* generous L/R breathing room */
  --fs-logo: clamp(14px, 2.1vmin, 19px);
  --fs-meta: clamp(1vh,  1.1vw, 1.4vh);
  --fs-kick: clamp(1vh,  1.2vw, 1.4vh);
  --fs-h1:   clamp(7.5vh, 9vw, 12vh);
  --fs-lede: clamp(2vh, 1.9vw, 2.5vh);  /* one smooth curve, all sizes */
  --fs-footer: clamp(0.9vh,  1.1vw, 1.2vh);
}

*{ box-sizing:border-box; margin:0; padding:0; }

html,body{
  height:100%;
  overflow:hidden;                       /* no scrolling */
}

body{
  font-family:"Geologica",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Outer frame — the print edge ------------------------------- */
.frame{
  position:fixed; inset:clamp(8px, 1.5vmin, 14px);
  border:var(--hair) solid var(--ink);
  pointer-events:none;
  z-index:5;
}

/* Grid: header / hero / footer ------------------------------- */
.page{
  height:100%;
  display:grid;
  grid-template-rows:auto 1fr auto;
  padding:calc(var(--pad)*.62) var(--pad-x) calc(var(--pad)*.42);
  gap:clamp(8px, 1.8vmin, 18px);
}

/* Top bar ---------------------------------------------------- */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-bottom:var(--hair) solid var(--ink);
  padding-top:clamp(8px, 1.4vmin, 16px);
  padding-bottom:clamp(8px, 1.4vmin, 16px);
}

.logo{
  display:flex;
  align-items:center;
  line-height:0;                         /* no extra height around the img */
}

.logo-img{
  display:block;
  height:clamp(26px, 4vmin, 46px);       /* keep proportional height */
  width:auto;
}

.meta{
  font-size:var(--fs-meta);
  text-transform:uppercase;
  letter-spacing:.22em;
  color:var(--ink);
  opacity:.72;
  text-align:right;
  line-height:1.5;
  white-space:nowrap;
}

/* Hero — two columns on desktop: type left, artwork right.
   Collapses to a single stack on small screens. -------------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(0, .85fr);
  align-items:center;
  gap:clamp(24px, 7vmin, 96px);
  min-height:0;                          /* allow it to shrink */
  overflow:hidden;                       /* never bleed into header/footer */
}

.hero-copy{
  min-width:0;
  max-width:60vw;
}

/* The artwork is a fixed-ratio canvas, so geometry can never
   bleed into the text column. -------------------------------- */
.composition{
  position:relative;
  justify-self:end;
  width:100%;
  max-width:25vw;
  aspect-ratio:1/1;
  z-index:1;
  pointer-events:none;
}

.kicker{
  display:flex;
  align-items:center;
  gap:12px;
  text-transform:uppercase;
  letter-spacing:.3em;
  font-size:var(--fs-kick);
  margin-bottom:clamp(12px, 2.4vmin, 30px);
}
.kicker::before{
  content:"";
  width:clamp(30px, 4.4vmin, 46px); height:var(--hair);
  background:var(--ink);
  display:inline-block;
  flex:0 0 auto;
}

h1{
  font-size:var(--fs-h1);
  line-height:.92;
  font-weight:700;
  letter-spacing:-.01em;
  text-transform:uppercase;
  margin-bottom:clamp(14px, 2.8vmin, 34px);
}

h1 em{
  font-style:normal;
  color:var(--red);
}
h1 .thin{ font-weight:400; }

.lede{
  font-size:var(--fs-lede);
  font-weight:300;
  line-height:1.62;
  opacity:.9;
  max-width:60ch;
}

.lede b{ font-weight:700; color:var(--ink); }

/* Geometric artwork (PNG) — sitting to the right of the text. ------- */
.composition-img{
  display:block;
  width:100%;
  height:auto;
}

.hero-copy{ position:relative; z-index:2; }   /* text above the artwork */
.composition{ position:relative; z-index:1; } /* artwork behind the copy */

/* Footer ----------------------------------------------------- */
.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:var(--hair) solid var(--ink);
  padding-top:clamp(8px, 1.4vmin, 14px);
  padding-bottom:clamp(6px, 1.4vmin, 14px);
  font-size:var(--fs-footer);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink);
  opacity:.72;
}

.footer .c{ color:var(--red); }

.footer a{
  color:inherit;
  text-decoration:underline;
  text-decoration-style:dashed;
  text-underline-offset:0.25em;
}
.footer a:hover{ color:var(--red); }

/* -------- Breakpoints: keep composition balanced, never clip - */

/* Tablet and below: stack into a single column. The text owns the
   row height; the artwork becomes a fixed overlay BEHIND the copy
   (z-index 1 vs 2) so it can never push content into the header or
   footer and can never overflow on a short viewport. ------------- */
@media (max-width:820px){
  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .meta{ white-space:normal; text-align:left; }
  .hero{
    grid-template-columns:1fr;
    justify-content:center;
    align-content:center;
  }
  .hero-copy{ max-width:100%; text-align:left; }
  .composition{
    position:absolute;
    right:4%;
    bottom:10%;
    width:min(52vmin, 260px);
    aspect-ratio:1/1;
    z-index:1;
    opacity:.38;                         /* subtle backdrop, legible text */
  }
  .hero-copy{ z-index:2; }
}

/* Small screens: use the tall portrait space — scale the type up
   so the paragraph/headline fill the hero instead of sitting small
   in a big empty area. */
@media (max-width:560px){
  .hero-copy{ max-width:100%; text-align:left; }
  .lede{ max-width:46ch; }               /* tighter wrap, clear of artwork */
  .composition{ right:8%; bottom:12%; width:min(56vmin, 180px); opacity:.32; }
  .footer{ flex-wrap:wrap; gap:6px 16px; }
  .footer span{ margin-left:0; }
  .footer span:last-child{ margin-left:0; }  /* align 'Made with' to the left */
}

/* Very small: shrink chrome, let hero breathe */
@media (max-width:380px){
  .frame{ inset:6px; }
  h1{ line-height:.96; }
}

/* Short viewports (small phones / landscape) — tighten vertically
   so nothing is cut off despite overflow:hidden */
@media (max-height:600px){

}

/* Respect users who prefer reduced motion / less contrast noise */
@media (prefers-reduced-motion: reduce){
  .composition-img{ opacity:.4; }
}
