/* Shared look: type, paper, borders, buttons, forms, cards. Colors, fonts and art come from the
   theme's vars.css (made from its theme.json); nothing here names a color. */
:root{
  --line:rgba(var(--ink-rgb),.38);   /* every thin rule and card edge */
  /* every drawer from the bottom (the board's ⋯ menu, the alerts sheet, the TV remote): one soft shadow cast up
     from its top edge, in the theme's ink; the dashboard's and editor's use brand.css --brand-drawer-up */
  --drawer-up:0 -1px 0 rgba(var(--ink-rgb),.08), 0 -10px 24px -6px rgba(var(--ink-rgb),.26), 0 -26px 60px -14px rgba(var(--ink-rgb),.30);
  --drawer-box:0 22px 60px -18px rgba(var(--ink-rgb),.45);   /* the same drawer as a box in the middle of a laptop */
  color-scheme:light;
}
*{box-sizing:border-box}
:root{padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px)}
body{margin:0}
img{max-width:100%}
/* A host can make any line as long as its cap with one long word; it wraps instead of pushing the page sideways. */
body{overflow-wrap:anywhere}
th, td{overflow-wrap:normal}   /* table columns size to their words */
select, input, textarea{max-width:100%}
[hidden]{display:none!important}
/* the party's own photos (marked data-photo), in black and white when the site says so */
html[data-photos=bw] [data-photo]{filter:grayscale(1) contrast(1.06)}
html{background:var(--paper)}
body{
  background:var(--paper) var(--art-paper) repeat; background-size:480px;
  color:var(--ink); font:400 18px/1.55 var(--f-body);
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
.stripes{height:30px; background:var(--art-border) repeat-x 0 0 / auto 30px; position:relative; z-index:2}
.stripes.foot{transform:scaleY(-1)}

a{color:var(--ink)}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:4px}
.caps{font-family:var(--f-caps); font-weight:600; letter-spacing:.2em; text-transform:uppercase; font-size:14px; line-height:1.6}
.script{font-family:var(--f-script); font-weight:400; line-height:1}
h1,h2,h3{margin:0; font-weight:400; text-wrap:balance}


/* ---------- page column ---------- */
main{position:relative; z-index:2; padding-left:max(26px, env(safe-area-inset-left,0px) + 12px); padding-right:max(26px, env(safe-area-inset-right,0px) + 12px)}  /* clears the side borders */
.col{max-width:600px; margin:0 auto}
section{padding-block:44px 8px; scroll-margin-top:12px}
/* every themed page ends in a footer (the party page's, or a page's way back), which each theme dresses */
footer{text-align:center; padding:40px 0 18px; position:relative; z-index:2}
footer p{margin:6px 0}
/* The footer's last lines: the quiet links (Contact, Host, the TV, alerts) in small capitals, readable and a full tap
   tall but never shouting; then our mark over "Made at", the page's very last thing. */
.foot-quiet{display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:0 4px; margin:16px 0 0}
.host-link, .foot-link{display:inline-flex; align-items:center; min-height:44px; padding:0 10px; font:600 12px/1.2 var(--f-caps); letter-spacing:.18em; text-transform:uppercase; color:var(--ink); text-decoration:none; background:none; border:0; cursor:pointer}
.made{margin:20px 0 0}
.made a{display:inline-flex; flex-direction:column; align-items:center; gap:2px; min-height:44px; padding:6px 12px; font:400 17px/1.35 var(--f-body); color:var(--ink); text-decoration:none}
.made-name{font-weight:600}
.made a::before{content:""; width:36px; height:36px; margin-bottom:4px; background:currentColor; -webkit-mask:url(/brand/mark-script.svg) center/contain no-repeat; mask:url(/brand/mark-script.svg) center/contain no-repeat}
.card{position:relative; padding:34px max(20px, 5vw) 34px; text-align:center}
.card::before{content:""; position:absolute; inset:0; border:1.5px solid var(--line); border-radius:2px; pointer-events:none}
.sec-title{font:400 clamp(48px, 13vw, 66px)/.9 var(--f-script); margin:0 0 6px}
.lede{max-width:34ch; margin:6px auto 22px; color:var(--soft)}

/* buttons */
.btns{display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:18px 0 0}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:10px 18px 9px;
  font:600 14px/1.1 var(--f-caps); letter-spacing:.16em; text-transform:uppercase; text-decoration:none;
  color:var(--ink); background:transparent; border:1.5px solid var(--ink); border-radius:999px; cursor:pointer;
  transition:background .2s, color .2s, transform .1s;
}
.btn:hover{background:rgba(var(--wash-rgb),.28)}
/* pressed: every button (and the bar's stops, the page's tabs) gives a little under the finger, shrinking a touch and
   darkening; `scale` and `filter`, so a theme's own transform (a tilt) is kept; with reduce motion it only darkens */
:is(button, .btn, [role="button"], .tb-tab):not(:disabled, [aria-disabled="true"]):active{scale:.97; filter:brightness(.92)}
@media (prefers-reduced-motion:reduce){:is(button, .btn, [role="button"], .tb-tab):active{scale:none}}
.btn.solid{background:var(--ink); color:var(--paper); min-width:min(100%, 250px)}
.btn.solid:hover{background:var(--ink-deep)}
.btn[disabled], .btn.off{opacity:.45; cursor:not-allowed; pointer-events:none}
.btn svg{width:16px; height:16px; flex:none}

/* forms */
.field{display:grid; gap:6px; text-align:left; margin:0 0 14px}
.field label, .lbl{font:600 12px/1.3 var(--f-caps); letter-spacing:.2em; text-transform:uppercase; color:var(--soft)}
input[type=text], input[type=date], input[type=search], select, textarea{
  width:100%; min-width:0; font:400 18px/1.3 var(--f-body); color:var(--ink);
  background:rgba(var(--field-rgb),.55); border:1px solid var(--line); border-radius:4px; padding:11px 12px;
}
/* a search box ("Find a name") looks like the page's other boxes, full width (bridal blind test P8), not the browser's own */
input[type=search]{-webkit-appearance:none; appearance:none; min-height:48px}
textarea{min-height:110px; resize:vertical; line-height:1.45}
/* a mailing address: street, unit, city, then state and ZIP side by side */
.postal-set, .rsvp-mail{border:0; margin:0 0 14px; padding:0; min-width:0}
.postal-set legend, .rsvp-mail legend{padding:0; margin:0 0 6px}
.rsvp-mail > .rsvp-hint{display:block; margin:0 0 12px}
.postal-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.postal-row .field{min-width:0}
/* a box's hint is read like any other line: the theme's soft ink, not its paler hint color (blind test, Pat) */
input::placeholder, textarea::placeholder{color:var(--soft); opacity:1; font-style:italic}
.row{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px}
.form-msg{min-height:1.4em; margin:8px 0 0; font-style:italic; color:var(--soft); font-size:17px}
.form-msg.err{color:var(--accent); font-style:normal; font-weight:700}
.form-msg.err.again{animation:form-msg-again .35s ease-out}
@keyframes form-msg-again{0%{opacity:.2}100%{opacity:1}}
@media (prefers-reduced-motion:reduce){.form-msg.err.again{animation:none}}
input[aria-invalid="true"]{outline:2px solid var(--accent); outline-offset:1px}
/* an address's country line under its boxes ("Address in Canada. Change"; engine/postal-box.js) */
.country-line{margin:-4px 0 12px; color:var(--soft); font:400 17px/1.4 var(--f-body)}
.country-line .field{margin:4px 0 0}
.plain-link{font:inherit; color:var(--ink); background:none; border:0; padding:6px 2px; min-height:44px; text-decoration:underline; text-underline-offset:3px; cursor:pointer}

/* The guest of honor's own link (and her partner's): the guest jobs that aren't theirs step aside (engine/who.js,
   section.json `honoree.notHers`; bridal blind C2). */
[data-not-theirs]{display:none !important}
