/* The try-it page. Altalogy's Garden from shared/kit, restyled under .try. The kit stays as it is. */

body.try { margin: 0; background: var(--garden); }
.try-noscript { position: relative; z-index: 100; max-width: 520px; margin: 40px auto; padding: 20px; background: var(--win-paper); color: #1d1d1f; font: 400 15px/1.5 var(--sans); }

/* The desktop */
.try .gk-nav-menu { display: none; }
.try-proto { margin-left: -20px; padding: 4px 8px 3px; border: 1.5px solid #262626; background: #f6f0d8; color: #1d1d1f; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; }
.try .try-proto + .gk-nav-links { margin-left: auto; }
.try .gk-sub { font-size: 16px; max-width: 520px; text-shadow: 0 1px 2px rgba(20, 40, 20, .55); }
.try .gk-credits-dim { opacity: .62; }
.try-bird img { display: block; width: 42px; height: 57px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.try .try-bird { height: 57px; opacity: 1; }

/* Altalogy's grain is stronger than the kit's: fine white speckle over a deeper green. Their spread is wider in red and
   blue than in green, by the ratio white speckle gives. Tuned against their 28 Oct Garden screen (mean 89/134/89, spread 17/12/17). */
.try-fine { position: absolute; inset: 0; background-size: 180px 180px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='1' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0.9 0 0 0 -0.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.try .gk-watermark span { color: rgb(89, 134, 89); text-shadow: -1px -1px 0 rgba(0, 0, 0, .34), 1px 1px 0 rgba(255, 255, 255, .16); }
.try .gk-grain, .try .gk-grain-lite { opacity: .3; }
/* The watermark's second row would run through the intro text */
.try .gk-watermark span:nth-child(10), .try .gk-watermark span:nth-child(11), .try .gk-watermark span:nth-child(12) { visibility: hidden; }

@media (min-width: 721px) {
  .try .gk-hero { top: 7%; }
  /* A soft shade behind the words, so the small text stays readable on the grain */
  .try .gk-hero::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 30%; width: 980px; height: 400px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(24, 48, 28, .3), rgba(24, 48, 28, 0)); pointer-events: none; }
}

/* The windows */
.try-body { padding: 22px 26px 18px; font: 400 15px/1.5 var(--sans); color: #1d1d1f; }
.try-body p { margin: 0; }
.try-lead { text-align: center; }
.try-now { margin: 0; font: 500 22px/1.2 var(--sans); letter-spacing: -.015em; text-align: center; }
.try-hint { margin: 6px 0 14px !important; color: #3c3e50; font-size: 14px; text-align: center; }

/* The one button: System 7's default button, with its ring, in agent blue */
.try-go { display: block; width: 100%; margin: 18px 0 0; padding: 15px 18px; border: 1.5px solid #262626; border-radius: 6px;
  background: var(--agent-blue); color: #fff; font: 600 17px/1 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 2.5px var(--why-lavender), 0 0 0 4.5px #262626; transition: background .12s; }
.try-go:hover { background: #1639d1; }
.try-go:active { background: #102ba3; }
.try-go:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }

.try-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; margin-top: 16px; font-size: 14px; }
.try-link { padding: 6px 2px; border: 0; background: none; color: #1d1d1f; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.try-link:hover { color: var(--agent-blue); }
.try-link:focus-visible { outline: 2px solid var(--agent-blue); outline-offset: 2px; }

.try-need { margin-top: 8px !important; color: #3c3e50; font-size: 13.5px; text-align: center; text-wrap: balance; }
.try-warn { margin-top: 14px !important; padding: 9px 12px; border: 1.5px solid #262626; background: #f6f0d8; font-size: 14px; }
.try-said { margin-top: 6px !important; color: #173ad0; font-size: 13.5px; text-align: center; }
.try-said:empty { display: none; }

.try-steps { margin: 0; padding: 0 0 0 24px; }
.try-steps li { margin: 0 0 9px; padding-left: 3px; }
.try-steps li::marker { font: 500 13px var(--mono); }
.try-steps b { font-weight: 600; }

.try-list { margin: 10px 0 12px; padding: 0 0 0 18px; }
.try-list li { margin: 0 0 6px; }
.try-note { padding: 18px 20px; font-size: 14.5px; }
.try-note p + p { margin-top: 10px; }

.try-example { padding: 0; }
.try-example img { display: block; width: 100%; height: auto; }
.try-example p { padding: 12px 16px 14px; font-size: 14px; }
.try-example .try-typed { padding: 14px 16px; font: 500 15.5px/1.35 var(--sans); letter-spacing: -.005em; }
.try-example .try-link { padding: 0; white-space: nowrap; }

/* The ground: props on the bottom edge. They stay out of the file icons' grid on a phone. */
.try .try-prop { position: absolute; top: auto; left: auto; transform: none; padding: 0; }
.try .try-prop .gk-icon-art { min-height: 0; }
.try .try-can { left: 5%; bottom: 62px; }
.try .try-sprout { left: 15%; bottom: 62px; pointer-events: none; }
.try .try-bed { position: absolute; left: 20%; bottom: 62px; width: 1px; height: 1px; }
.try .try-toolbox { right: 13.5%; bottom: 62px; pointer-events: none; }
.try .try-plant { right: 6%; bottom: 62px; pointer-events: none; }
.try .gk-flower-cap { color: var(--ink); }

/* A phone: the hero and the window. The files move under them, and the window stays in the page. */
@media (max-width: 720px) {
  .try .try-prop, .try .try-bed { display: none; }
  .try .gk-wordmark { margin-right: 0; }
  .try-proto { margin: 0 auto 0 -8px; }
  .try .gk-hero { margin-top: 64px; }
  .try .try-bird { height: 36px; }
  .try-bird img { width: 27px; height: 36px; }
  .try .gk-sub { font-size: 15px; }
  .try .gk-credits { display: none; }
  .try .gk-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 2px; margin: 20px 8px 0; }
  .try .gk-icon { gap: 6px; }
  .try .gk-icon-art { min-height: 0; }
  .try .gk-icon-label { font-size: 9.5px; }
  .try-body { padding: 18px 20px 14px; }
  .try-link { padding: 12px 4px; }
  .try-go { padding: 17px 18px; }
}

/* A real phone screen, once the browser's bars take their share: the bird gives its room to the files */
@media (max-width: 720px) and (max-height: 760px) {
  .try .try-bird { display: none; }
  .try .gk-sub { margin-top: 8px; font-size: 14.5px; }
  .try .gk-icons { margin-top: 12px; }
}

/* A short laptop screen: pull everything up a little */
@media (max-height: 760px) and (min-width: 721px) {
  .try .gk-hero { top: 5%; }
  .try .gk-hero-art { display: none; }
  .try .gk-headline { font-size: clamp(32px, 3.4vw, 48px); }
  .try .gk-sub { margin-top: 14px; }
  /* The example window needs this corner */
  .try .try-toolbox, .try .try-plant { display: none; }
}
