/* book-craft.css: the engraved-book craft on the signed-in mast and the footer strip (Josh, Nov 20, after the
   Direction A pass on #198: "too plain"). Fewer layered card effects, more character: engraved display type,
   small caps, gilt only as 1px strokes and ornament (Franco Maria Ricci). Existing tokens only; no blur, no new
   colour. Delete this file and its <link> in __root.tsx to undo it. door-craft.css and rooms-surfaces.css use
   the ornament defined here. */

/* The ornament: a gilt diamond, then a double hairline running out to the right and fading. Use it as a flex
   child (usually a heading's ::after) with background:var(--orn-ink) and mask:var(--orn-rule). */
:root{
  --orn-diamond:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 0 8 4 4 8 0 4z'/%3E%3C/svg%3E");
  --orn-rule:var(--orn-diamond) 0 50%/7px 7px no-repeat,linear-gradient(#000 0 0) 11px 1px/100% 1px no-repeat,linear-gradient(#000 0 0) 11px 5px/100% 1px no-repeat;
  --orn-ink:linear-gradient(90deg,var(--gold) 0%,color-mix(in srgb,var(--gold) 55%,transparent) 45%,transparent 100%);
}

/* The mast (the Door's and the signed-in one): one ink bar under a gilt double hairline, the wordmark as engraved display type, and the
   sections as small-caps words. The current section takes a gilt underline, not a filled pill. */
.mast-bar{border-bottom:0}
.mast-bar::after{
  content:"";position:absolute;inset:auto 0 0;height:3px;pointer-events:none;
  border-top:1px solid var(--gold);border-bottom:1px solid color-mix(in srgb,var(--gold) 35%,transparent);
}
.mast-name{letter-spacing:.01em;text-shadow:0 1px 0 rgba(0,0,0,.55)}
/* At the Door, the tagline reads as the title page's subtitle. */
.mast-tagline{font-family:var(--font-display);font-size:1.125rem;font-style:italic;color:var(--muted)}
.mast[data-entered="true"] .topnav nav{gap:0 .25rem}
.mast[data-entered="true"] .topnav :is(nav>button,nav>* button){
  min-height:44px;
  padding-inline:.6rem;
  border:0;
  border-radius:0;
  background:none;
  color:color-mix(in srgb,var(--fg) 78%,transparent);
  font-family:var(--font-display);
  font-size:1.125rem;
  font-weight:500;
  font-variant-caps:all-small-caps;
  letter-spacing:.08em;
}
.mast[data-entered="true"] .topnav :is(nav>button,nav>* button) svg{display:none}
.mast[data-entered="true"] .topnav :is(nav>button,nav>* button):hover{color:var(--fg)}
.mast[data-entered="true"] .topnav :is(nav>button,nav>* button)[aria-current]{
  color:var(--fg);
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-decoration-thickness:1px;
  text-underline-offset:.45em;
}
.mast[data-entered="true"] .topnav :is(nav>button,nav>* button):focus-visible{outline:2px solid var(--fg);outline-offset:-2px}
.mast-door{padding-inline:.75rem;border:1px solid var(--line);border-radius:6px;background:var(--color-surface);font-family:var(--font-sans);font-size:.875rem;font-weight:600;text-decoration:none}
@media (min-width:48em){
  .mast-door{padding-inline:2px;border:0;border-radius:0;background:none;font-family:var(--font-display);font-size:1.125rem;font-weight:400;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--gold) 60%,transparent);text-underline-offset:.18em}
}

/* The footer: a solid strip under a gilt hairline, with the plate credit and About / Privacy / Terms in small caps,
   like a colophon. No newsletter, no icons. */
.page-foot{
  position:relative;
  gap:0;
  padding:var(--space-2) var(--space-3);
  border-top:1px solid color-mix(in srgb,var(--gold) 55%,transparent);
  border-radius:0;
  background:var(--bg);
}
.shell .page-foot .pc-credit,
.shell .page-foot .pc-credit.pc-narrow,
.shell .page-foot .pc-credit.pc-wide{
  margin:0;
  padding:0;
  background:none;
  color:var(--muted);
  width:auto;
  max-width:100%;
  /* Small caps need air between wrapped lines; 1.05 read as cramped on a phone (Josh, Nov 27). */
  line-height:1.4;
  overflow-wrap:normal;
}
/* About, Privacy and Terms set their plate's credit the same way, in the card's footer strip. */
.shell .doc-foot .pc-credit{
  width:auto;
  max-width:100%;
  margin:0;
  padding:0;
  background:none;
  color:var(--muted);
  line-height:1.4;
  overflow-wrap:normal;
}
/* Every word in the row carries .4rem of padding for its target; the row steps back by that much, so the links
   and the credit above share one left edge, wrapped or not. */
.page-foot-row{column-gap:1.25rem;margin-inline:-.4rem}
.legal-footer nav{column-gap:.25rem}
.legal-footer a{
  padding-inline:.4rem;
  color:color-mix(in srgb,var(--fg) 82%,transparent);
  font-family:var(--font-display);
  font-size:1.0625rem;
  font-variant-caps:all-small-caps;
  letter-spacing:.08em;
  text-decoration:none;
}
.legal-footer:not(.page-foot *) a:first-child{margin-inline-start:-.4rem}
.legal-footer a:hover{color:var(--fg);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:.4em}
