/* Araucaria — stylesheet for the holding page.
   The look is derived from the logo: a monochrome print on paper,
   faceted geometry, grain, wide letterspacing. */

:root {
  --paper:      #faf9f6;
  --paper-deep: #f2f0ea;
  --ink:        #101012;
  --ink-soft:   #4b4b50;
  --ink-mute:   #6d6d73;
  --rule:       rgba(16, 16, 18, 0.13);
  --rule-soft:  rgba(16, 16, 18, 0.07);

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
           "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --max:    68rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain — the same "print" texture as the logo. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.34;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

/* The background lives on .shell rather than body: .shell creates a stacking
   context, so the logo's mix-blend-mode has something to blend against. */
.shell {
  position: relative;
  z-index: 1;
  background: var(--paper);
  /* A soft vignette — the paper darkens slightly towards the edges. */
  background-image: radial-gradient(120% 90% at 50% 22%, var(--paper) 38%, var(--paper-deep) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- stage */

.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) 0 clamp(3rem, 8vh, 6rem);
}

.mark {
  margin: 0 0 clamp(0.5rem, 2vh, 1.75rem);
  line-height: 0;
}

.mark img {
  display: block;
  width: min(78vw, 46vh, 480px);
  height: auto;
  /* The PNG's white background melts into the paper. */
  mix-blend-mode: multiply;
  /* The file carries a few-pixel, slightly blue border right at its edge
     (rgb 253,254,255) — multiplied, it would draw a visible rectangle. */
  clip-path: inset(1.2%);
}

/* A slow breath — the only movement on the page. */
.pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  animation: breathe 3.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.2;  transform: scale(0.82); }
  50%      { opacity: 0.95; transform: scale(1); }
}

.sub {
  margin: 0 auto;
  max-width: 46ch;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ------------------------------------------------------- first project */

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 22rem;
  margin: clamp(2.75rem, 7vh, 4.5rem) auto 0;
  padding-top: clamp(2.25rem, 5vh, 3.25rem);
  border-top: 1px solid var(--rule);
}

.project__h {
  margin: 0 0 clamp(1.5rem, 3.5vh, 2.25rem);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* The source PNG is a fully opaque square — its rounded corners are only
   painted on. We clip it to the real app-icon silhouette; drop-shadow then
   follows that clipped alpha instead of the square box. */
.project__icon {
  display: block;
  width: clamp(4.5rem, 14vw, 5.5rem);
  height: auto;
  border-radius: 22.5%;
  filter: drop-shadow(0 6px 18px rgba(16, 16, 18, 0.18));
}

.project__name {
  margin: clamp(1.1rem, 2.5vh, 1.5rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.625rem);
  letter-spacing: 0.01em;
}

.project__status {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin: 0.85rem 0 0;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

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

.foot {
  flex: 0 0 auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.25rem) 0 clamp(1.75rem, 4vh, 2.5rem);
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.foot__col p { margin: 0 0 0.75rem; }
.foot__col p:last-child { margin-bottom: 0; }

.foot__h {
  margin: 0 0 0.9rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

.foot__fine {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--ink-mute);
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.foot__bar {
  margin-top: clamp(2rem, 4vh, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
}

.foot__bar--flush {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.foot__bar p { margin: 0 0 0.6rem; }
.foot__bar p:last-child { margin-bottom: 0; }
.foot__bar .foot__fine { max-width: 78ch; }

/* --------------------------------------------------------- text pages */

.legal {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem);
}

.legal__back {
  display: inline-block;
  margin-bottom: clamp(2rem, 5vh, 3rem);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal__back:hover,
.legal__back:focus-visible { color: var(--ink); }

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.legal__meta {
  margin: 0 0 clamp(2rem, 5vh, 3rem);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.legal h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.legal li { margin-bottom: 0.35rem; }
.legal li::marker { color: var(--ink-mute); }

.legal a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s ease;
}

.legal a:hover,
.legal a:focus-visible { border-bottom-color: var(--ink); }

/* --------------------------------------------------------------- details */

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* Entrance — calm, staggered. */
.reveal {
  animation: rise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.reveal--1 { animation-delay: 0.14s; }
.reveal--2 { animation-delay: 0.24s; }
.reveal--3 { animation-delay: 0.34s; }
.reveal--4 { animation-delay: 0.44s; }
.reveal--5 { animation-delay: 0.58s; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .pulse  { animation: none; opacity: 0.6; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 34rem) {
  .foot__bar { margin-top: 2rem; }
}

@media print {
  .grain, .pulse { display: none; }
  body { background: #fff; }
  .reveal { animation: none; }
}

/* the project's name is a link now that transitsignals.com is live (2 November 2026) */
.project__name a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.project__name a:hover { opacity: .75; }
