/* onlinefamilytree.com - the pages around the tree.
   The renderer (app/tree.html) carries its own styles; this is only the
   signup, gate and data-entry chrome. Same restraint: parchment and ink. */
:root{
  --ink:#2f2a24; --muted:#6b6256; --rule:#ded5c6; --paper:#faf7f1;
  --card:#fffdf8; --accent:#7a5c3e; --accent-soft:#f0e7d8;
  --bad:#9b3b2e; --good:#3f6b45;
  /* The home page's masthead. Its own pair, because the band has to be the
     one place on the site where the tone changes - that weight contrast is
     the whole reason it exists. */
  --band:#6f5238; --band-ink:#fdfbf6;
}
*{box-sizing:border-box}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font:16px/1.65 "Iowan Old Style","Palatino Linotype",Georgia,serif;
}
.wrap{max-width:38rem; margin:0 auto; padding:2.5rem 1.25rem 4rem}
.wide{max-width:52rem}
header.site{border-bottom:1px solid var(--rule); background:var(--card)}
header.site .wrap{padding:1rem 1.25rem; display:flex; align-items:baseline; gap:1rem}
header.site a.brand{font-size:1.05rem; font-weight:600; color:var(--ink); text-decoration:none; letter-spacing:.01em}
header.site .tag{color:var(--muted); font-size:.85rem}
h1{font-size:1.6rem; line-height:1.25; margin:0 0 .5rem}
h2{font-size:1.15rem; margin:2rem 0 .5rem}
p.lede{color:var(--muted); margin:0 0 2rem}
label{display:block; margin:1.25rem 0 .3rem; font-weight:600; font-size:.95rem}
.hint{display:block; font-weight:400; color:var(--muted); font-size:.85rem; margin-top:.15rem}
input[type=text], input[type=email], input[type=password], select, textarea{
  width:100%; padding:.6rem .7rem; font:inherit; font-size:1rem;
  border:1px solid var(--rule); border-radius:4px; background:#fff; color:var(--ink);
}
input:focus, select:focus, textarea:focus{outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent)}
.row2{display:flex; gap:1rem; flex-wrap:wrap}
.row2 > *{flex:1 1 12rem}
button, .button{
  display:inline-block; margin-top:1.75rem; padding:.6rem 1.4rem; font:inherit; font-size:1rem;
  background:var(--accent); color:#fff; border:1px solid var(--accent); border-radius:4px;
  cursor:pointer; text-decoration:none;
}
button.secondary, .button.secondary{background:transparent; color:var(--accent)}
/* Taking a person out of the tree. Not a deletion - nothing is thrown away -
   so this is a warning colour, not a red alert. */
button.danger, .button.danger{background:var(--bad); color:var(--card)}
button:hover, .button:hover{filter:brightness(1.08)}
.card{background:var(--card); border:1px solid var(--rule); border-radius:6px; padding:1.25rem 1.4rem; margin:1.5rem 0}
.error{background:#fdf1ef; border:1px solid #e6c4bd; color:var(--bad); padding:.7rem .9rem; border-radius:4px; margin:1rem 0}
.note{background:var(--accent-soft); border:1px solid var(--rule); padding:.7rem .9rem; border-radius:4px; margin:1rem 0; font-size:.92rem}
.pw{font:600 1.25rem/1.4 ui-monospace,"SF Mono",Menlo,Consolas,monospace; letter-spacing:.06em; color:var(--accent)}
.slugline{display:flex; align-items:center; gap:.35rem; flex-wrap:wrap}
.slugline .domain{color:var(--muted); font-size:.95rem; white-space:nowrap}
.slugline input{flex:1 1 10rem; width:auto}
footer.site{border-top:1px solid var(--rule); margin-top:3rem; color:var(--muted); font-size:.85rem}
footer.site .wrap{padding:1.25rem}
a{color:var(--accent)}
ul.plain{padding-left:1.1rem} ul.plain li{margin:.35rem 0}
table.log{width:100%; border-collapse:collapse; font-size:.9rem; margin-top:.5rem}
table.log td{border-top:1px solid var(--rule); padding:.35rem .5rem; vertical-align:top}
table.log td.when{color:var(--muted); white-space:nowrap}
@media (prefers-color-scheme: dark){
  :root{--ink:#eae4d9; --muted:#a79c8b; --rule:#3a342c; --paper:#17150f; --card:#1e1b15;
        --accent:#c9a46a; --accent-soft:#2a2419; --bad:#e08b7c; --good:#8fbf96;
        /* On a dark page the band goes the other way - lighter than the
           paper, not darker - or it is no band at all. */
        --band:#2b2419; --band-ink:#f0e7d8;}
  input, select, textarea{background:#14120d; color:var(--ink)}
  button, .button{color:#17150f}
  .error{background:#2a1a16; border-color:#5c332a}
}
.buttons{display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; margin:0}
.buttons .button{margin-top:1.75rem}
header.site a.brand{display:inline-flex; align-items:center; gap:.5rem}
.brand-mark{width:1.35em; height:1.35em; display:block; flex:none}

/* ------------------------------------------- the home page's living tree */
/* The real renderer in a frame, reading the seven-person taster tree. It
   breaks out past the 38rem reading column on a wide screen, because a tree
   is a diagram and not a paragraph - the column is right for prose and makes
   a diagram look like an afterthought. */
.taster{margin:2rem 0 1rem; padding:0}
.taster iframe{
  display:block; width:100%; height:380px; border:1px solid var(--rule);
  border-radius:6px; background:var(--card);
}
/* Sits after the "Look at the full tree" button, not against the frame, so
   it is a note on the page rather than a caption on a figure. */
.taster-note{margin:.4rem 0 1.25rem; color:var(--muted); font-size:.92rem}
.taster-note strong{color:var(--ink)}
@media (min-width:62rem){
  .taster{width:min(52rem, calc(100vw - 3rem)); margin-left:50%; transform:translateX(-50%)}
  .taster iframe{height:460px}
}
@media (max-width:30rem){
  .taster iframe{height:340px}
}

/* The key beside it. The line grammar is specific and nobody arrives knowing
   it, so the markers are drawn with the same strokes the renderer uses. */
.key{list-style:none; padding:0; margin:0 0 1.75rem; font-size:.9rem; color:var(--muted)}
.key li{display:flex; align-items:flex-start; gap:.6rem; margin:.45rem 0}
/* The chevron is the renderer's own SVG, so it needs sizing, not drawing. */
/* 26px wide to match the line markers, so both items' text starts at the
   same place; the viewBox keeps the chevron's own proportions inside it. */
.key svg.key-chev{flex:none; width:26px; height:20px; color:var(--accent); margin-top:.1rem}
.key span{flex:none; width:26px; height:12px; position:relative; margin-top:.45rem}
.key span::before{
  content:""; position:absolute; left:0; right:0; top:5px;
  border-top:2px solid var(--accent);
}
.key .key-dotted::before{border-top-style:dotted; border-top-width:3px}

/* ------------------------------------------------- the home page masthead */
/* The page had no change of weight anywhere: thin bar, cream, serif, one
   column, all the way down, so the eye had nowhere to land before it was
   asked to read. This band is the one place the tone changes. */
.band{position:relative; overflow:hidden; background:var(--band); color:var(--band-ink)}
/* The motif behind it: the logo's own grammar - two circles joined, a line
   falling to a third - repeated across the band. The product's shapes rather
   than a photograph of somebody else's family. */
.band-art{position:absolute; inset:0; width:100%; height:100%; color:#fff; opacity:.075}
.band-inner{position:relative; padding-top:2.4rem; padding-bottom:2.6rem}
.band-brand{display:flex; align-items:center; gap:.75rem; margin:0 0 1.5rem; flex-wrap:wrap}
/* tree-mark.svg carries its own colours, because an <img> cannot inherit the
   page's - so on the band it is knocked back to white rather than kept as a
   third copy of the drawing to hold in step. */
.band-mark{width:46px; height:46px; flex:none; filter:brightness(0) invert(1); opacity:.9}
.band-name{font-size:1.4rem; font-weight:600; letter-spacing:.01em}
.band-domain{color:var(--band-ink); opacity:.6; font-size:.88rem}
.band h1{color:var(--band-ink); margin:0 0 1.5rem; font-size:1.9rem; text-wrap:balance}
.band .buttons{margin:0}
.band .buttons .button{margin-top:0}
.band .button{background:var(--band-ink); color:var(--band); border:0}
.band .button.secondary{background:transparent; color:var(--band-ink);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.band .button:hover{filter:brightness(1.04)}
@media (min-width:48rem){
  .band-inner{padding-top:3.2rem; padding-bottom:3.4rem}
  .band h1{font-size:2.05rem}
  .band-mark{width:54px; height:54px}
}
