/* The front door's additions to the docs site's armarius.css. */

/* A faint parchment grain on the page, from the covers' paper tone. */
[data-md-color-scheme="default"] body {
  background-image: radial-gradient(ellipse at top, #f8f1e7 0%, #f4ebe1 55%, #ece0cf 100%);
  background-attachment: fixed;
}

.md-header__button.md-logo img { height: 1.6rem; border-radius: 2px; }

/* The home page's opening: an open book, text left and a picture right. */
.hero { margin: 2rem auto 1.5rem; }
.hero.hero-b { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: center; text-align: left; }
.md-typeset .hero-b h1 { font-size: 2.1rem; line-height: 1.2; border: 0; margin: 0.3rem 0 0.6rem; padding: 0; }
.hero-kicker { font-family: "Cinzel", var(--md-text-font); font-size: 0.75rem; letter-spacing: .08em; color: var(--arm-link); margin: 0; }
.hero .incipit { text-align: left; font-size: 1.05rem; }
.hero-note { font-size: 0.8rem; color: var(--md-default-fg-color--light); margin-top: 0.8rem; }
.md-typeset .hero .md-button { margin: 0.3rem 0.25rem; font-family: "Cinzel", var(--md-text-font); font-size: 0.75rem; }
.hero-b .hero-pic img { transform: rotate(-1deg); }
@media screen and (max-width: 60em) {
  .hero.hero-b { grid-template-columns: 1fr; }
}
@media screen and (max-width: 44.9375em) {
  .md-typeset .hero-b h1 { font-size: 2.4rem; }
}

/* Buttons: never underlined; readable in both schemes. */
.md-typeset .md-button, .md-typeset .md-button:hover { text-decoration: none !important; }
.md-typeset .md-button { color: var(--arm-heading); border-color: var(--arm-heading); }
.md-typeset .md-button--primary { background: var(--arm-heading); border-color: var(--arm-heading); color: #fff8ec; }
.md-typeset .md-button:hover { background: var(--arm-gilt); border-color: var(--arm-gilt); color: #1a1208; }
[data-md-color-scheme="slate"] .md-typeset .md-button { color: var(--arm-gilt); border-color: var(--arm-gilt); background: transparent; }
[data-md-color-scheme="slate"] .md-typeset .md-button--primary { background: var(--arm-gilt); color: #15171c; }
[data-md-color-scheme="slate"] .md-typeset .md-button:hover { background: var(--arm-heading); border-color: var(--arm-heading); color: #15171c; }

/* Cards: parchment leaves with a gilt edge that warms on hover. */
.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--arm-rule); border-radius: 3px;
  background: color-mix(in srgb, var(--md-default-bg-color) 85%, #fff 15%);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li { background: #1b1e24; }
.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--arm-gilt); box-shadow: 0 0.3rem 0.9rem rgba(30,15,0,.18); transform: translateY(-2px);
}
.md-typeset .features .twemoji, .md-typeset .features svg { color: var(--arm-heading); fill: currentColor; }
.md-typeset .grid.cards.features strong { font-variant: small-caps; color: var(--arm-heading); font-size: 1.05em; }
.pill { white-space: nowrap; display: inline-block; font-size: 0.65em; font-variant: small-caps; border: 1px solid var(--arm-gilt); border-radius: 1em; padding: 0 0.5em; color: var(--md-default-fg-color--light); vertical-align: middle; }

/* The guides as covers. */
.md-typeset .grid.cards.guides, .md-typeset .grid.cards.guides > ul { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.md-typeset .grid.cards.guides img.cover { width: 100%; display: block; border: 1px solid var(--arm-rule); }
.md-typeset .grid.cards.guides p { margin: 0.4em 0; font-size: 0.82em; }
.guide-no { font-family: "Cinzel", var(--md-text-font); font-size: 0.65rem; letter-spacing: .08em; color: var(--arm-link); display: block; margin-top: .4em; }

/* Screenshots, two across, framed and captioned. */
.md-typeset .grid.shots { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.md-typeset figure { margin: 0.8em auto; }
.md-typeset figcaption { font-style: italic; color: var(--md-default-fg-color--light); font-size: 0.85em; max-width: 36rem; }
.md-typeset figure.shot img { border: 1px solid var(--arm-gilt); box-shadow: 0 0.2rem 0.6rem rgba(30,15,0,.25); cursor: zoom-in; }
.md-typeset figure img.screenshot { cursor: zoom-in; }

/* The rule box: the guides' signature, red small capitals over a gilt edge. */
.md-typeset .admonition.rule {
  border: 0; border-left: 3px solid var(--arm-heading); border-radius: 0;
  background: var(--md-admonition-bg-color); box-shadow: none; font-size: 0.88em;
}
.md-typeset .admonition.rule > .admonition-title {
  background: transparent; color: var(--arm-heading); font-variant: small-caps;
  font-weight: 700; letter-spacing: .03em; padding-left: 0.8rem; border: 0;
}
.md-typeset .admonition.rule > .admonition-title::before { display: none; }

/* Follow along: a gilt box at the top of a guide. */
.md-typeset .admonition.follow { border-color: var(--arm-gilt); }
.md-typeset .admonition.follow > .admonition-title { background: var(--md-accent-fg-color--transparent); font-variant: small-caps; }
.md-typeset .admonition.follow > .admonition-title::before {
  background-color: var(--arm-gilt);
  -webkit-mask-image: var(--md-admonition-icon--tip); mask-image: var(--md-admonition-icon--tip);
}
.md-typeset .admonition.follow .md-button { font-size: 0.75rem; padding: 0.3em 0.9em; margin: 0.2em 0.3em 0.2em 0; }

/* Tooltips on DE and the rules' terms: a dotted gilt underline. */
.md-typeset abbr { text-decoration: underline dotted var(--arm-gilt); text-underline-offset: .2em; cursor: help; }

/* Search hits: readable ink with a gilt underline, not gilt text on white. */
.md-search-result mark { color: var(--arm-link); text-decoration: underline 2px var(--arm-gilt); }
[data-md-color-scheme="slate"] .md-search-result mark { color: var(--arm-heading); }

/* Content tabs in the page's colours. */
.md-typeset .tabbed-labels > label { font-variant: small-caps; font-size: 0.8rem; }
.md-typeset .tabbed-labels > label > a, .md-typeset .tabbed-labels > label { text-decoration: none !important; }
.md-typeset .tabbed-set { border-top: 1px solid var(--arm-rule); }
