/* ==========================================================================
   FLOD Creative — Opening Soon
   A gallery wall-label for an exhibition that hasn't opened yet.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-subset.woff2") format("woff2");
  font-weight: 100 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces Accent";
  src: url("../fonts/fraunces-italic-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* color — bone / ink / a single whisper of bronze */
  --bone: #efe9dc;
  --bone-dim: #e6debd;
  --ink: #1a1712;
  --ink-85: rgba(26, 23, 18, 0.85);
  --ink-70: rgba(26, 23, 18, 0.66);
  --ink-55: rgba(26, 23, 18, 0.62); /* tuned for 4.5:1 AA on bone at small sizes */
  --ink-30: rgba(26, 23, 18, 0.26);
  --ink-15: rgba(26, 23, 18, 0.14);
  --ink-08: rgba(26, 23, 18, 0.07);
  --bronze: #a3814e; /* decorative only — underline stroke, never text */
  --bronze-ink: #7d6038; /* tuned for 4.5:1 AA on bone — used for text/focus */

  /* type */
  --font-sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Fraunces Accent", ui-serif, Georgia, serif;

  /* rhythm */
  --frame-inset: clamp(14px, 3vw, 40px);
  --ease-out: cubic-bezier(0.16, 0.8, 0.24, 1);
}

/* ---- reset --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

/* subtle warm paper texture — static, not animated */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* visible, deliberate focus ring (never remove) */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--bronze-ink);
  outline-offset: 4px;
  border-radius: 1px;
}

/* ---- frame ----------------------------------------------------------- */

.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - (var(--frame-inset) * 2));
  margin: var(--frame-inset);
  border: 1px solid var(--ink-15);
  padding: clamp(18px, 3vw, 30px) clamp(18px, 4vw, 44px) clamp(20px, 3vw, 34px);
}

/* ---- corners ----------------------------------------------------------- */

.corners {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.corner {
  margin: 0;
  min-width: 0;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* ---- stage (the piece on the wall) ------------------------------------- */

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 7vh, 64px);
  padding-block: clamp(16px, 5vh, 40px);
  text-align: center;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vh, 28px);
}

.mark {
  width: clamp(150px, min(20vw, 26vh), 280px);
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(26, 23, 18, 0.1));
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

/* ---- label (the wall text beside the piece) ---------------------------- */

.label {
  width: 100%;
  max-width: 360px;
  text-align: left;
  align-self: center;
}

.label__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.label__desc {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-70);
}

.label__desc em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--ink);
}

.label__rule {
  width: 44px;
  height: 1px;
  margin: 18px 0;
  background: var(--ink-30);
}

.label__contact {
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--ink-55);
}

.label__contact .field {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--ink-55);
  margin-right: 4px;
}

.label__contact a {
  color: var(--ink-85);
  text-decoration: none;
  background-image: linear-gradient(var(--bronze), var(--bronze));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.35s var(--ease-out), color 0.35s var(--ease-out);
  padding-bottom: 1px;
}

.label__contact a:hover,
.label__contact a:focus-visible {
  color: var(--bronze-ink);
  background-size: 100% 1px;
}

/* ---- footer -------------------------------------------------------------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-width: 0;
  padding-top: clamp(14px, 3vh, 22px);
  margin-top: clamp(10px, 2vh, 18px);
  border-top: 1px solid var(--ink-08);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.foot span {
  min-width: 0;
}

/* ---- entrance sequence ----------------------------------------------------
   room, then piece, then label — a single considered reveal, once.
   ---------------------------------------------------------------------- */

.corners,
.mark,
.eyebrow,
.label,
.foot {
  opacity: 0;
  animation: rise 900ms var(--ease-out) forwards;
}

.corners { animation-delay: 0ms; }
.mark    { animation-delay: 160ms; }
.eyebrow { animation-delay: 460ms; }
.label   { animation-delay: 620ms; }
.foot    { animation-delay: 780ms; }

.label__rule {
  transform: scaleX(0);
  transform-origin: left;
  animation: unrule 700ms var(--ease-out) forwards;
  animation-delay: 900ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes unrule {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .corners, .mark, .eyebrow, .label, .foot {
    animation: none;
    opacity: 1;
  }
  .label__rule {
    animation: none;
    transform: scaleX(1);
  }
}

/* ---- layout: roomier desktop composition -------------------------------- */

@media (min-width: 760px) {
  .content {
    align-items: center;
  }

  .label {
    align-self: flex-start;
    margin-left: clamp(0px, 8vw, 96px);
    text-align: left;
  }
}

@media (min-width: 1400px) {
  .mark {
    width: clamp(220px, 16vw, 320px);
  }
}

/* ---- small screens --------------------------------------------------- */

@media (max-width: 380px) {
  .corner {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }
}
