/* A bottle's page (/b/<id>, site/tools/pages.py): the app's own bottle page on the web. The plant's saturated wall, the
   cream arch with the bottle standing in it, the plant's drawing beside it, the talavera band under them (ios/Agavist/
   Views/ResultView.swift, ArchBackdrop: the same colours), then the name and the few facts on white. The wall's colour
   and the colour of the words on it come in on the body (--wall, --on-wall). styles.css gives the type and the footer. */

body { min-height: 100svh; display: flex; flex-direction: column; background: #fff; }
.page { display: grid; }

.wallcol { position: relative; display: flex; flex-direction: column; background: var(--wall); color: var(--on-wall); padding-top: .6rem; }
.wallcol .top { padding-inline: var(--gutter); padding-block: .4rem; }
.wallcol .brand, .wallcol .brand:hover { color: var(--on-wall); }
.wallcol .mark { width: 2.4rem; height: 2.4rem; color: var(--on-wall); --gap: var(--wall); }
.wallcol .word { font-size: 1.9rem; color: var(--on-wall); }

/* the stage spans the panel; the arch, bottle and drawing are placed from its middle, everything in em, so a wide screen
   scales the scene at once. The drawing runs off the panel's right edge (the panel clips it). */
.wallcol { overflow: hidden; }
.stage { --ax: calc(50% - 11em); position: relative; width: 100%; height: 25em; margin: 1.2rem 0 0; font-size: 1rem; }
.stage.solo { --ax: calc(50% - 7.5em); }
.arch { position: absolute; left: var(--ax); bottom: 0; width: 15em; height: 23.4em; border-radius: 7.5em 7.5em 0 0; background: var(--window); }
.bottle-box { position: absolute; left: calc(var(--ax) + 7.5em); bottom: .3em; translate: -50% 0; height: var(--h); overflow: visible; }
.bottle-box img { position: absolute; max-width: none; height: auto; filter: drop-shadow(0 .5em .5em rgba(58, 46, 26, .3)); }
.plant { position: absolute; right: -3.2em; bottom: 0; width: 14.5em; height: auto; }

/* the talavera band, cream dots every 20 px, as the app draws it */
.band { height: 16px; background: radial-gradient(circle at 9px 50%, var(--window) 3.5px, transparent 4.2px) 0 0 / 20px 100% repeat-x, var(--talavera); }

.content { display: grid; align-content: center; justify-items: start; gap: .7rem; min-width: 0; padding: 1.8rem var(--gutter) 2.6rem; }
.kind { font: 600 .95rem/1.2 var(--display); color: var(--green); }
.content h1 { font: 700 clamp(2.4rem, 10vw, 3.5rem)/1 var(--display); letter-spacing: -.04em; word-spacing: .02em; text-wrap: balance; overflow-wrap: anywhere; }
.content ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .2rem; }
.content li { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); line-height: 1.4; color: var(--soft); }
.content li b { font-weight: 600; color: var(--ink); }
.content li .latin { margin-left: .3rem; font-weight: 400; color: var(--cap); }
/* the taste line is the second headline: about 60% of the name's size */
.taste { font: 600 clamp(1.5rem, 6vw, 2.1rem)/1.12 var(--display); letter-spacing: -.025em; color: var(--wall); text-wrap: balance; }
.content .ask-cta { margin-top: 1rem; display: grid; justify-items: start; gap: .6rem; }
.content .btn { min-height: 3.75rem; padding-inline: 2.2rem; font-size: 1.2rem; font-weight: 650; background: var(--wall); color: var(--on-wall); box-shadow: 0 .5rem 1.4rem -.6rem rgba(23,20,16,.45); }
.content .btn::after { content: "\2192"; margin-left: .6rem; }
.btn[hidden] { display: none; }
.soon { font: 400 .9rem/1.2 var(--sans); color: var(--cap); }
.credit { font-size: .85rem; line-height: 1.3; color: var(--cap); }
.credit a { color: inherit; }

/* the footer is plain: no paper */
.foot { margin-top: auto; background: #fff; border-top: 1px solid rgba(23, 20, 16, .1); }
.foot, .foot-notes, .foot-notes a, .foot-mail { color: var(--ink); }
.foot-sky a, .foot-notes p { text-shadow: none; }

@media (min-width: 52rem) {
  /* the colour panel fills the first screen; the stage grows with its height and stands on the band, centred in the panel */
  .page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: max(36rem, calc(100svh - 3rem)); max-height: 60rem; }
  .wallcol { justify-content: flex-end; padding-top: 0; }
  .wallcol .top { position: absolute; left: 0; top: .8rem; }
  .stage { font-size: clamp(1rem, calc((100svh - 9.4rem) / 25), 1.6rem); margin: 0; }
  .content { padding-inline: clamp(2.4rem, 6vw, 5rem); max-width: 40rem; }
}

