:root {
  color-scheme: light;
  --paper: #f2efe7;
  --paper-deep: #e5dfd1;
  --card: #fffdf7;
  --ink: #1e2a25;
  --muted: #65706a;
  --line: #c9c2b4;
  --leaf: #237b59;
  --leaf-dark: #15523d;
  --coral: #d96b4b;
  --yellow: #e4b94f;
  --shadow: 0 16px 36px rgb(41 49 44 / 10%);
  font-family: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.wordmark-leaf {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 58% 42% 54% 46%;
  background: var(--leaf);
  color: #fff;
  transform: rotate(-4deg);
}

.site-header nav {
  display: flex;
  gap: clamp(0.8rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--leaf-dark);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.workbench {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(450px, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding: 72px 0 64px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--leaf);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.28;
}

.search-panel h1 {
  max-width: 14em;
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  letter-spacing: 0.04em;
}

.search-form {
  position: relative;
  max-width: 510px;
}

.search-form label {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.search-slot {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 62px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--card);
  box-shadow: 7px 7px 0 var(--paper-deep);
}

.search-slot input {
  min-width: 0;
  border: 0;
  padding: 0 1rem;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search-slot input:focus {
  outline: 0;
}

.search-slot button {
  min-width: 94px;
  border: 0;
  border-left: 2px solid var(--ink);
  background: var(--leaf);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.search-slot button:hover {
  background: var(--leaf-dark);
}

.search-slot button i {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  margin-left: 0.45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.search-slot button[disabled] i {
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid rgb(255 255 255 / 45%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: turn 0.7s linear infinite;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.search-status {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.dictionary-stage {
  position: relative;
  min-height: 410px;
}

.dictionary-glyph {
  position: relative;
  width: 190px;
  height: 126px;
  filter: drop-shadow(0 12px 15px rgb(34 50 42 / 12%));
}

.dictionary-stage > .dictionary-glyph {
  position: absolute;
  left: 5%;
  top: 10px;
  transform: rotate(-5deg);
}

.glyph-page {
  position: absolute;
  top: 9px;
  width: 94px;
  height: 112px;
  border: 2px solid var(--ink);
  background: var(--card);
}

.left-page {
  left: 1px;
  border-radius: 8px 2px 2px 11px;
  transform: skewY(-2deg);
}

.right-page {
  right: 1px;
  border-radius: 2px 8px 11px 2px;
  transform: skewY(2deg);
}

.glyph-spine {
  position: absolute;
  left: 92px;
  top: 12px;
  z-index: 3;
  width: 6px;
  height: 107px;
  border-left: 2px solid var(--ink);
  border-right: 1px solid var(--line);
}

.glyph-page i {
  display: block;
  width: 65%;
  height: 2px;
  margin: 16px auto -8px;
  background: var(--line);
}

.right-page b,
.right-page small {
  display: block;
  margin-left: 17px;
}

.right-page b {
  margin-top: 17px;
  font-family: "Yu Mincho", serif;
  font-size: 1.2rem;
}

.right-page small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.58rem;
}

.glyph-tab {
  position: absolute;
  right: -9px;
  width: 18px;
  height: 28px;
  border: 2px solid var(--ink);
  border-left: 0;
  border-radius: 0 4px 4px 0;
}

.tab-one {
  top: 31px;
  background: var(--coral);
}

.tab-two {
  top: 68px;
  background: var(--yellow);
}

.entry-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.sample-card {
  position: absolute;
  top: 94px;
  left: 21%;
  z-index: 2;
  width: min(430px, 74%);
  transform: rotate(1.4deg);
}

.entry-card-index {
  display: grid;
  min-height: 100%;
  place-items: start center;
  padding-top: 1.25rem;
  border-right: 1px solid var(--line);
  background: var(--leaf);
  color: #fff;
  font-family: "Yu Mincho", serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.entry-card-body {
  min-width: 0;
  padding: 1.25rem 1.35rem 1.15rem;
}

.entry-card-body h1,
.entry-card-body h2 {
  margin: 0.12rem 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.reading-line,
.alternative-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.alternative-line {
  margin: -0.35rem 0 0.8rem;
  line-height: 1.6;
}

.sense-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: senses;
}

.sense-list > li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.45rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: #34423c;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  line-height: 1.45;
}

.sample-card .sense-list li {
  display: list-item;
  margin-left: 1.2rem;
  padding: 0.38rem 0;
  list-style: decimal;
}

.sense-list p {
  margin: 0;
}

.sense-number {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.63rem;
}

.sense-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.sense-tags span {
  padding: 0.18rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.62rem;
}

.card-notch {
  position: absolute;
  right: -10px;
  top: 22px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.saved-preview {
  position: relative;
  width: 148px;
  height: 118px;
}

.dictionary-stage > .saved-preview {
  position: absolute;
  right: 1%;
  bottom: 7px;
  z-index: 1;
  transform: rotate(4deg);
}

.saved-card {
  position: absolute;
  width: 104px;
  height: 76px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--card);
  box-shadow: 4px 5px 0 rgb(30 42 37 / 10%);
}

.saved-card span {
  display: grid;
  width: 31px;
  height: 100%;
  place-items: center;
  background: var(--coral);
  color: #fff;
  font-family: "Yu Mincho", serif;
  font-weight: 800;
}

.saved-card.back {
  left: 7px;
  top: 4px;
  transform: rotate(-11deg);
}

.saved-card.middle {
  left: 24px;
  top: 18px;
  transform: rotate(-3deg);
}

.saved-card.front {
  left: 38px;
  top: 35px;
  transform: rotate(5deg);
}

.saved-card.front i {
  display: block;
  width: 47px;
  height: 2px;
  margin: 21px 0 -14px 43px;
  background: var(--line);
}

.results-section,
.deck-section {
  padding: 58px 0 68px;
  border-top: 1px solid var(--line);
}

.section-heading,
.deck-rail {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.deck-rail h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.section-heading > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.results-grid,
.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.results-grid .entry-card {
  grid-template-columns: 40px 1fr;
}

.results-grid .entry-card-body {
  padding: 1rem 1.1rem;
}

.results-grid .entry-card-body h2 {
  font-size: 1.45rem;
}

.results-grid .sense-list > li:nth-child(n + 4) {
  display: none;
}

.card-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.1rem 1rem;
}

.card-actions button,
.card-actions a,
.quiet-button,
.primary {
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.card-actions .save-entry,
.primary {
  background: var(--leaf);
  color: #fff;
}

.card-actions button:hover,
.card-actions a:hover,
.quiet-button:hover {
  box-shadow: 3px 3px 0 var(--paper-deep);
}

.save-entry[data-saved="true"] {
  background: var(--paper-deep);
  color: var(--muted);
}

.deck-section {
  min-height: 270px;
}

.deck-rail {
  justify-content: flex-start;
  align-items: center;
}

.deck-rail .saved-preview {
  flex: 0 0 148px;
  transform: scale(0.76);
  transform-origin: left center;
  margin-right: -28px;
}

.deck-rail p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.deck-rail .quiet-button {
  margin-left: auto;
}

.empty-deck {
  padding: 1.4rem;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.deck-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: 86px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--card);
  box-shadow: 5px 5px 0 var(--paper-deep);
}

.deck-item > span {
  display: grid;
  height: 100%;
  place-items: center;
  background: var(--coral);
  color: #fff;
  font-family: "Yu Mincho", serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.deck-item div {
  min-width: 0;
  padding: 0.75rem;
}

.deck-item b,
.deck-item small {
  display: block;
}

.deck-item small {
  overflow: hidden;
  margin-top: 0.25rem;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-item a {
  text-decoration: none;
}

.deck-item button {
  width: 34px;
  height: 34px;
  margin-right: 0.55rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.deck-item button:hover {
  background: var(--paper-deep);
}

.boundary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--card);
}

.boundary-strip > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 0.7rem;
  padding: 1.3rem;
  border-right: 1px solid var(--line);
}

.boundary-strip > div:last-child {
  border-right: 0;
}

.boundary-strip b,
.boundary-strip span {
  grid-column: 2;
}

.boundary-strip b {
  font-size: 0.82rem;
}

.boundary-strip span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.signal {
  grid-row: 1 / span 2;
  position: relative;
  display: block;
  width: 31px;
  height: 31px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.signal::before,
.signal::after {
  content: "";
  position: absolute;
  background: var(--leaf);
}

.signal.fast::before {
  width: 13px;
  height: 2px;
  left: 7px;
  top: 8px;
}
.signal.fast::after {
  width: 8px;
  height: 8px;
  left: 10px;
  top: 12px;
  border-radius: 50%;
}
.signal.private::before {
  width: 13px;
  height: 10px;
  left: 7px;
  top: 12px;
}
.signal.private::after {
  width: 9px;
  height: 9px;
  left: 9px;
  top: 5px;
  border: 2px solid var(--leaf);
  border-bottom: 0;
  background: transparent;
  border-radius: 8px 8px 0 0;
}
.signal.local::before {
  width: 15px;
  height: 12px;
  left: 6px;
  top: 8px;
  border: 2px solid var(--leaf);
  background: transparent;
}
.signal.local::after {
  width: 5px;
  height: 2px;
  left: 12px;
  top: 23px;
}

.entry-page,
.info-page {
  padding: 58px 0 80px;
}

.entry-page {
  max-width: 820px;
}

.entry-page-rail {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.entry-detail {
  grid-template-columns: 58px 1fr;
}

.entry-detail .entry-card-body {
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.entry-detail .entry-card-body h1 {
  font-size: clamp(1.8rem, 5vw, 2.65rem);
}

.entry-detail .sense-list > li {
  padding: 0.85rem 0;
  font-size: 1rem;
}

.entry-detail .card-actions {
  padding: 0 2.5rem 2rem;
}

.entry-source-note {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: rgb(255 253 247 / 65%);
}

.entry-source-note .dictionary-glyph {
  transform: scale(0.72);
  transform-origin: left center;
}

.entry-source-note h2,
.entry-source-note p {
  margin: 0 0 0.45rem;
}

.entry-source-note h2 {
  font-size: 1.05rem;
}

.entry-source-note p,
.entry-source-note a {
  color: var(--muted);
  font-size: 0.76rem;
}

.info-heading,
.source-heading,
.privacy-heading {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 250px;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.info-heading .dictionary-glyph {
  margin: 0 auto;
  transform: scale(1.12) rotate(-4deg);
}

.info-heading h1,
.source-heading h1,
.privacy-heading h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.info-heading p:not(.eyebrow),
.source-heading p:not(.eyebrow),
.privacy-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.guide-grid,
.source-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.guide-grid li,
.source-grid article,
.privacy-grid article,
.limit-card {
  border: 1px solid var(--line);
  background: var(--card);
}

.guide-grid li {
  display: grid;
  grid-template-columns: 45px 1fr;
  min-height: 190px;
}

.guide-grid li > span {
  padding-top: 1.1rem;
  border-right: 1px solid var(--line);
  color: var(--leaf);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.guide-grid li > div,
.source-grid article,
.privacy-grid article,
.limit-card {
  padding: 1.25rem;
}

.guide-grid h2,
.source-grid h2,
.privacy-grid h2,
.limit-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.guide-grid p,
.source-grid p,
.privacy-grid li,
.limit-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

.limit-card {
  border-left: 7px solid var(--coral);
}

.limit-card p {
  margin: 0;
}

.source-stamp {
  position: relative;
  width: 180px;
  height: 150px;
  margin: auto;
  border: 3px double var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 var(--paper-deep);
  transform: rotate(-3deg);
}

.source-stamp span,
.source-stamp b,
.source-stamp i {
  position: absolute;
}

.source-stamp span {
  left: 18px;
  top: 17px;
  color: var(--leaf);
  font-size: 2rem;
  font-weight: 900;
}

.source-stamp b {
  left: 20px;
  bottom: 22px;
  font-family: ui-monospace, monospace;
  font-size: 1.55rem;
  letter-spacing: 0.1em;
}

.source-stamp i {
  right: 15px;
  top: 17px;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 2px solid var(--coral);
  border-radius: 50%;
  color: var(--coral);
  font-style: normal;
  font-weight: 900;
}

.source-grid article {
  border-top: 6px solid var(--leaf);
}

.source-grid a {
  color: var(--leaf-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.privacy-slot {
  position: relative;
  width: 190px;
  height: 140px;
  margin: auto;
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow:
    inset 0 -19px 0 var(--paper-deep),
    8px 8px 0 rgb(30 42 37 / 9%);
}

.privacy-slot i {
  position: absolute;
  left: 22px;
  width: 142px;
  height: 72px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--card);
}

.privacy-slot i:nth-child(1) {
  top: 15px;
  transform: rotate(-5deg);
}
.privacy-slot i:nth-child(2) {
  top: 26px;
  transform: rotate(2deg);
}
.privacy-slot i:nth-child(3) {
  top: 38px;
  transform: rotate(-1deg);
}

.privacy-slot span {
  position: absolute;
  left: 61px;
  bottom: 2px;
  color: var(--muted);
  font:
    700 0.62rem ui-monospace,
    monospace;
  letter-spacing: 0.18em;
}

.privacy-grid article {
  position: relative;
  overflow: hidden;
}

.privacy-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: var(--leaf);
}

.privacy-grid .absent::before {
  background: var(--coral);
}
.privacy-grid .short::before {
  background: var(--yellow);
}

.privacy-grid ul {
  margin: 0;
  padding-left: 1.1rem;
}

.retention-note {
  padding: 1rem;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.not-found {
  display: grid;
  min-height: 520px;
  place-items: center;
  align-content: center;
  gap: 1rem;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: 1.7rem;
}

.not-found .dictionary-glyph {
  transform: rotate(-4deg);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.site-footer a {
  margin-left: auto;
}

@media (max-width: 850px) {
  .workbench {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 48px;
  }

  .dictionary-stage {
    min-height: 365px;
  }

  .results-grid,
  .deck-grid,
  .guide-grid,
  .source-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .boundary-strip {
    grid-template-columns: 1fr;
  }

  .boundary-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .boundary-strip > div:last-child {
    border-bottom: 0;
  }

  .info-heading,
  .source-heading,
  .privacy-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 66px;
  }

  .site-header nav {
    gap: 0.65rem;
    font-size: 0.7rem;
  }

  .site-header nav a:nth-child(2) {
    display: none;
  }

  .workbench {
    min-height: 0;
    padding: 38px 0 45px;
  }

  .search-panel h1 {
    font-size: 1.75rem;
  }

  .search-slot {
    min-height: 56px;
  }

  .search-slot button {
    min-width: 76px;
  }

  .dictionary-stage {
    min-height: 320px;
    overflow: hidden;
  }

  .dictionary-stage > .dictionary-glyph {
    left: 0;
    transform: scale(0.84) rotate(-5deg);
    transform-origin: left top;
  }

  .sample-card {
    left: 8%;
    top: 89px;
    width: 88%;
  }

  .dictionary-stage > .saved-preview {
    right: -10px;
    transform: scale(0.8) rotate(4deg);
    transform-origin: right bottom;
  }

  .section-heading,
  .deck-rail {
    align-items: flex-start;
  }

  .deck-rail .saved-preview {
    display: none;
  }

  .entry-card {
    grid-template-columns: 36px 1fr;
  }

  .entry-card-index {
    font-size: 1rem;
  }

  .entry-card-body {
    padding: 1rem;
  }

  .entry-card-body h1,
  .entry-card-body h2 {
    font-size: 1.45rem;
  }

  .card-actions {
    grid-column: 2;
    padding: 0 1rem 1rem;
  }

  .entry-detail .card-actions {
    padding: 0 1rem 1.3rem;
  }

  .entry-source-note {
    grid-template-columns: 1fr;
  }

  .entry-source-note .dictionary-glyph {
    height: 90px;
  }

  .site-footer {
    flex-wrap: wrap;
    padding: 1rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
