/* The engraved almanac shares its paper, brass rules and green ink with the cards. */
html:root:root {
  --background:#f7f3e9; --foreground:#193e38; --ink:#193e38; --ink-soft:#526459;
  --surface:#fffaf0; --surface-2:#ede9db; --gold:#275449; --gold-soft:#8f76381c;
  --border:#b8ac8a; --input:#a79e81; --atlas-rule:#c0ad7f; --atlas-coral:#91472f;
  --text:#314940; --line:#cdc2a5; --accent:#275449; --paper:#fffbf1;
}
html body {background: radial-gradient(ellipse at top right,#f0e6cf,transparent 52rem),var(--background); color:var(--ink)}
::selection {background:#dad8b9;color:#163830}
html body :focus-visible {outline-color:#22715c}
header a:has(> img[src*="icon"]),.mast .brand {color:#244a40}
header label:has(select),header nav a[href*="gift"] {border-color:#b9a479; background-color:#fffbf2}
main:has(> .atlas-home-grid)::after,.atlas-journey::after {height:6px; bottom:1.25rem;width:min(90%,76rem); background:none; border-block:1px solid #b39d67; mask-image:none;opacity:.8}
.atlas-home-grid::before {display:none}
.atlas-home-grid h1, :is(html:lang(zh),html:lang(ja)) .atlas-home-grid h1,
:is(html:lang(zh),html:lang(ja)) .atlas-journey main h1 {
  font-family:var(--atlas-title);font-style:normal;letter-spacing:-.035em;color:#183f36;
}
main:has(> .atlas-home-grid){padding-block-end:clamp(3rem,7vw,6rem)}
.atlas-home-grid aside .preview-cert,.preview-cert {background:#fffaeb;border-color:#a99562;box-shadow:0 16px 32px -22px #4d472c,0 0 0 4px #e9dfc8}
.preview-cert::before {border-color:#a38b4c}.preview-cert::after {border-color:#d6c79d}
.preview-cert-inner {background-image:url('/classic/atlas/armillary-plate.webp');background-position:right top;background-size:190px auto;background-repeat:no-repeat;background-blend-mode:multiply}
.preview-cert-eyebrow,.preview-cert-label {color:#586448}
.preview-cert-footer {border-color:#b7a97b}
.atlas-home-grid input,.atlas-home-grid select,.atlas-home-grid button.border,
main form input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.bg-transparent),
main form textarea {background-color:#fffdf5; border-color:#b7aa8d; color:#26473b}
button.bg-gold,a.bg-gold,.studio-help>button {background:#28584b;color:white}
button.bg-gold:hover:not(:disabled),a.bg-gold:hover {background:#1e493d}
.atlas-journey {background:radial-gradient(ellipse at 50% 45%,#ede8cf,transparent 70%),#f7f3e9}
.atlas-journey form [data-line] {background:#fffdf5!important;border-color:#af9d71!important}
#history-gallery {width:100%;max-width:84rem}
.history-mobile, .history-picker {min-width:0}
.history-home .history-head {
  position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;
  align-items:start;justify-content:center;gap:6px;margin:0 0 1.25rem;min-height:138px;
  padding:1.4rem clamp(18px,3.5vw,48px);color:#1b4036;background:#fbf0d7;
  border-block:1px solid #b6a175;
}
.history-home .history-head::before {content:"";position:absolute;inset:0;z-index:-1;background:url('/classic/atlas/armillary-plate.webp') right 53% / auto 185% no-repeat;mix-blend-mode:multiply;pointer-events:none}
.history-home .history-head h2 {color:#21463a;font-family:Georgia,"Songti SC","Hiragino Mincho ProN",serif;letter-spacing:.025em}
.history-home .history-head time {color:#5d614b;font-size:.9rem}
.history-picker, main form > .rounded-2xl:has(.grid),.classic-actions a,.classic-actions button {background:#fffbf1;border-color:#b7a77e}
header:has(+ .classic-actions) {background:linear-gradient(130deg,#fff8e8,#e9e2cc)}
.deck-detail {color:#314940}
.deck-detail a {color:#28594c}
.deck-detail nav,.deck-detail blockquote {border-color:#bba97a}
footer {background-color:#eee9db}
@media(max-width:650px){
  .history-home .history-head {min-height:100px;margin-bottom:.65rem}
  .history-home .history-head::before {background-size:auto 116%;opacity:.8}
  .history-mobile{background:#f7f3e9}
}
.preview-cert-inner {position:relative; isolation:isolate; background-image:none}
.preview-cert-inner::before {content:""; position:absolute; inset:0 0 auto auto; width:190px; height:126px; z-index:-1; pointer-events:none; background:url('/classic/atlas/armillary-plate.webp') right top / contain no-repeat; mix-blend-mode:multiply; mask-image:linear-gradient(to right,transparent,#000 46%),linear-gradient(to top,transparent,#000 24%); mask-composite:intersect}
.history-home .history-head::before {mask-image:linear-gradient(to left,#000 0 125px,transparent 370px)}
@media(max-width:650px) {.history-home .history-head::before {mask-image:linear-gradient(to left,#000,transparent 155px)}}
