/* Libre Baskerville is licensed under the SIL Open Font License. */
@font-face {
  font-family: "Libre Baskerville";
  src: url("fonts/libre-baskerville.woff") format("woff");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("fonts/libre-baskerville-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}


/* Handwriting fonts are licensed under the SIL Open Font License. */
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Patrick Hand";
  src: url("fonts/patrick-hand.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Covered By Your Grace";
  src: url("fonts/covered-by-your-grace.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nothing You Could Do";
  src: url("fonts/nothing-you-could-do.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #efe3cc;
  --cream-deep: #e2d2b3;
  --paper: #f7f1e3;
  --paper-edge: #e6d9c2;
  --ink: #1c2438;
  --ink-soft: #3a4258;
  --red: #9b1d2e;
  --red-deep: #711422;
  --red-shadow: #4e0d16;
  --red-bright: #b12336;
  --gold: #c5a35a;
  --gold-light: #e0c57a;
  --gold-deep: #8a7340;
  --navy: #1a2744;
  --baize: #1b4a36;
  --baize-lit: #26614a;
  --baize-dark: #123528;
  --wood: #6d3f26;
  --wood-mid: #8a5634;
  --wood-light: #a56b42;
  --wood-dark: #4a2818;
  --brass: #b08d3e;
  --brass-light: #d4b56a;
  --stamp-ink: #3a1c28;
  --focus: #5a3d0e;
  --font: "Libre Baskerville", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  block-size: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-block-size: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100%;
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  inset: 0.6rem auto auto 0.6rem;
  transform: translateY(-150%);
  background: var(--navy);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 10;
  text-decoration: none;
  border-radius: 2px;
}

.skip:focus {
  transform: none;
}

.live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.room {
  min-block-size: 100dvh;
  max-block-size: 100dvh;
  block-size: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* --- wall & hanging sign --- */

.wall {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem calc(1rem + 12px);
  position: relative;
  background-color: var(--cream);
  background-image:
    radial-gradient(1200px 480px at 50% 0%, rgba(255, 255, 255, 0.38), transparent 70%),
    radial-gradient(900px 500px at 50% 100%, rgba(120, 80, 40, 0.07), transparent 60%),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 3px,
      rgba(90, 60, 30, 0.015) 3px,
      rgba(90, 60, 30, 0.015) 4px
    );
  overflow: hidden;
}

.wall::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(180deg, #cbb892, #b49a6e 55%, #9d855c);
  box-shadow: 0 2px 0 rgba(70, 50, 20, 0.18);
  z-index: 1;
}

.chains {
  width: min(22rem, 82vw);
  height: auto;
  margin-bottom: -6px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 0 rgba(255, 230, 180, 0.35));
}

.sign {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(22rem, 82vw);
  padding: 1rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, var(--red) 0%, #8e1a2a 100%);
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 3px var(--red-deep),
    0 0 0 6px var(--gold-deep),
    0 10px 0 var(--red-shadow),
    0 18px 28px rgba(40, 10, 12, 0.28);
  text-wrap: balance;
}

.sign::before,
.sign::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--brass) 55%, #6e5420);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}

.sign::before { left: 0.55rem; }
.sign::after { right: 0.55rem; }

.sign-ornament {
  color: var(--gold-light);
  margin-bottom: 0.15rem;
  opacity: 0.9;
}

.sign-kicker,
.sign-name,
.sign-role {
  display: block;
}

.sign-kicker {
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--gold-light);
  margin-bottom: 0.1rem;
}

.sign-name {
  font-weight: 700;
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: lowercase;
  color: #f6ead4;
}

.sign-role {
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f0e4ce;
}

/* --- counter --- */

.counter {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
}

.counter-top {
  position: relative;
  padding: 1.1rem 1rem 0.85rem;
  background-color: var(--wood);
  background-image:
    linear-gradient(180deg, rgba(255, 220, 170, 0.16), transparent 28%),
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(
      90deg,
      #6a3c24 0 2px,
      #7d4a2c 3px,
      #8b5534 6px,
      #734428 9px,
      #5e351f 12px,
      #7a492c 16px
    );
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, 0.25);
}

.baize {
  margin: 0 auto;
  width: min(58rem, 100%);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.06), transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.04) 2px,
      rgba(0, 0, 0, 0.04) 3px
    ),
    linear-gradient(180deg, var(--baize-lit), var(--baize) 40%, var(--baize-dark));
  border-radius: 6px;
  padding: 1.1rem 1rem 1.3rem;
  box-shadow:
    inset 0 0 0 2px rgba(10, 40, 28, 0.45),
    inset 0 1px 0 rgba(180, 220, 190, 0.18),
    inset 0 -8px 16px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 210, 150, 0.15);
}

.workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.mail-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(22rem, 100%);
}

.mail {
  position: relative;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  margin-bottom: 1.4rem;
}

.envelope {
  position: absolute;
  inset: 0 6% 10% 6%;
  transform-origin: 50% 55%;
  transform: translate(var(--stack-x, 0px), var(--stack-y, 0px)) rotate(var(--stack-rot, 0deg));
  transition: transform 0.45s ease, opacity 0.35s ease;
  will-change: transform, opacity;
}

.envelope.is-flying {
  transition: none;
  animation: fly-off 0.78s cubic-bezier(0.5, 0, 0.25, 1) forwards;
  z-index: 40 !important;
  pointer-events: none;
}

.envelope.is-fading {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.envelope.is-incoming {
  opacity: 0;
}

.envelope .face {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 30%),
    var(--paper);
  border: 1px solid var(--paper-edge);
  box-shadow:
    0 1px 0 #fff8ea,
    0 10px 18px rgba(20, 10, 0, 0.2);
}

.envelope::before {
  content: "";
  position: absolute;
  inset: 4px -3px -5px 4px;
  background: #e4d5b6;
  border: 1px solid #d3c4a6;
  z-index: -1;
  box-shadow: 0 6px 12px rgba(20, 10, 0, 0.12);
}

.envelope[data-layer="1"] .face { background-color: #f4ecdb; background-image: linear-gradient(180deg, rgba(255,255,255,0.3), transparent 30%); }
.envelope[data-layer="2"] .face { background-color: #f0e6d3; background-image: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 30%); }
.envelope[data-layer="3"] .face { background-color: #eadfc8; background-image: none; }
.envelope[data-layer="4"] .face { background-color: #e5d7bd; background-image: none; }

.postage {
  /* 1st class plum (default) */
  --stamp-ground: #8E1A4A;
  --stamp-face-hi: #E6C8D0;
  --stamp-face-mid: #D09AAC;
  --stamp-face-sh: #B05870;
  --stamp-hair-hi: #D4A0B0;
  --stamp-hair-sh: #9A304C;
  --stamp-shade: #A03850;
  --stamp-glint-hair: #E8D0D6;
  --stamp-glint: #F0DCE0;
  --stamp-ear: #C07088;
  --stamp-ear-in: #A04058;
  --stamp-label: #F3D6DC;
  --stamp-shadow: 0 1px 1px rgba(40, 0, 10, 0.2);
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 3.2rem;
  height: 3.95rem;
  z-index: 1;
  filter: drop-shadow(var(--stamp-shadow));
}

/* 2nd class: same artwork; greens sampled from a Royal Mail 2nd-class reference
   (ground #088748; mint relief anchored on #9FD8AE). */
.postage--second {
  --stamp-ground: #088748;
  --stamp-face-hi: #B8DDCB;
  --stamp-face-mid: #9FD8AE;
  --stamp-face-sh: #49A678;
  --stamp-hair-hi: #8CCFAE;
  --stamp-hair-sh: #219059;
  --stamp-shade: #249B60;
  --stamp-glint-hair: #BFE0D0;
  --stamp-glint: #CCE7DA;
  --stamp-ear: #5ABD8C;
  --stamp-ear-in: #26A164;
  --stamp-label: #CAE6D8;
  --stamp-shadow: 0 1px 1px rgba(0, 40, 16, 0.22);
}

.postage .rate-2nd { display: none; }
.postage--second .rate-1st { display: none; }
.postage--second .rate-2nd { display: unset; }

.postage svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.address {
  position: absolute;
  left: 1.1rem;
  right: 5rem;
  top: 40%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  color: var(--addr-ink, #1c2438);
  transform: rotate(var(--addr-rot, 0deg));
  transform-origin: 0 50%;
  pointer-events: none;
}

.address p {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.address p:nth-child(1) { transform: translateY(var(--addr-j1, 0px)); }
.address p:nth-child(2) { transform: translateY(var(--addr-j2, 0px)); }
.address p:nth-child(3) { transform: translateY(var(--addr-j3, 0px)); }

/* Per-font sizes tuned so the hands look similar and fit the address area. */
.address.hand-caveat { font-family: "Caveat", cursive; font-size: 1.3125rem; }
.address.hand-kalam { font-family: "Kalam", cursive; font-size: 1.125rem; }
.address.hand-patrick { font-family: "Patrick Hand", cursive; font-size: 1.3125rem; }
.address.hand-grace { font-family: "Covered By Your Grace", cursive; font-size: 1.375rem; }
.address.hand-nothing { font-family: "Nothing You Could Do", cursive; font-size: 1.0625rem; }

.marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.postmark {
  position: absolute;
  z-index: 5;
  transform-origin: 64.286% 50%;
  opacity: 0.9;
  color: #1a1f2a;
}

.postmark svg {
  width: 7.85rem;
  height: 5.39rem;
  overflow: visible;
  display: block;
}

.postmark.is-appearing {
  animation: ink-in 0.28s ease both;
}

/* --- stamp --- */

.stamp-station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 8.5rem;
}

.stamp {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.25rem 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  z-index: 2;
  border-radius: 6px;
  min-width: 6.5rem;
  min-height: 8.5rem;
  transition: transform 0.2s ease;
}

.stamp:hover:not(:disabled):not(.is-sorting) .stamp-graphic,
.stamp:focus-visible:not(:disabled):not(.is-sorting) .stamp-graphic {
  transform: translateY(-6px) rotate(-4deg);
}

.stamp.is-sorting .stamp-graphic {
  visibility: hidden;
}

.stamp:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.stamp:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.stamp-traveler {
  position: fixed;
  z-index: 80;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transform-origin: 50% 100%;
}

.stamp-traveler .stamp-graphic {
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.32));
}

.stamp-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.28));
  transition: transform 0.2s ease;
}

.stamp-knob {
  width: 2.15rem;
  height: 1.35rem;
  border-radius: 50% 50% 40% 40%;
  background:
    radial-gradient(circle at 30% 30%, #c48455, #7a3f20 55%, #4a2412);
  box-shadow: inset 0 2px 2px rgba(255, 220, 180, 0.35);
}

.stamp-shaft {
  width: 1.15rem;
  height: 2.6rem;
  margin-top: -0.3rem;
  background:
    linear-gradient(90deg, #4a2412, #a05a32 35%, #6b351c 70%, #3d1c0e);
  border-radius: 2px;
}

.stamp-ferrule {
  width: 2.4rem;
  height: 0.55rem;
  margin-top: -1px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brass-light), var(--brass) 50%, #7a5e22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 220, 0.4);
}

.stamp-rubber {
  width: 3.3rem;
  height: 1.35rem;
  margin-top: 1px;
  border-radius: 2px 2px 3px 3px;
  background: linear-gradient(180deg, #5a2028, #3a1218 60%, #2a0c10);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 2px rgba(255, 180, 180, 0.12);
}

.stamp-rubber-type {
  font-size: 0.42rem;
  letter-spacing: 0.02em;
  color: #f3e6c6;
  user-select: none;
}

.stamp-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #f3e6c6;
  background: var(--red);
  border: 1px solid var(--gold-deep);
  padding: 0.18rem 0.55rem 0.22rem;
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--red-shadow);
}

.stamp:disabled .stamp-label {
  background: var(--wood-dark);
  border-color: #6a5030;
  color: #d9c8a6;
}

.ink-pad {
  width: 4.4rem;
  height: 0.7rem;
  margin-top: -0.55rem;
  border-radius: 40%;
  background:
    radial-gradient(ellipse at 50% 40%, #6b1d28, #2a0c10 70%);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 210, 160, 0.15);
  position: relative;
  z-index: 1;
}

.nosing {
  height: 0.55rem;
  background: linear-gradient(180deg, var(--brass-light), var(--brass) 45%, #6e5420);
  box-shadow: 0 2px 0 rgba(60, 40, 10, 0.35);
}

.counter-front {
  position: relative;
  min-height: 5.2rem;
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #f3e6c6;
  background-color: var(--wood-dark);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 30%),
    repeating-linear-gradient(
      90deg,
      #4a2818 0 3px,
      #5a321e 6px,
      #3e2014 10px,
      #55301c 14px
    );
}

.tally {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #f3e6c6;
}

#tally {
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
}

.fresh {
  position: relative;
  z-index: 1;
  appearance: none;
  display: inline-block;
  background: var(--red);
  color: #f6ead4;
  border: 1px solid var(--gold);
  padding: 0.4rem 0.85rem 0.45rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 var(--red-shadow);
  border-radius: 2px;
}

.fresh:hover,
.fresh:focus-visible {
  background: var(--red-bright, #b12336);
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.fresh[hidden] {
  display: none;
}

/* --- 404 --- */

.missing-desk {
  min-height: 12rem;
  justify-content: center;
  position: relative;
}

.missing-outline {
  width: min(22rem, 100%);
  aspect-ratio: 1.55 / 1;
  border: 2px dashed rgba(243, 230, 198, 0.35);
  border-radius: 2px;
  transform: rotate(-1.5deg);
  background: rgba(0, 0, 0, 0.08);
}

.missing-card {
  position: absolute;
  width: min(20rem, 92%);
  background: var(--paper);
  color: var(--ink);
  padding: 1.1rem 1.2rem 1.2rem;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transform: rotate(1deg);
}

.missing-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-wrap: balance;
}

.missing-copy {
  margin: 0 0 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  text-wrap: balance;
}

/* --- motion --- */

@keyframes ink-in {
  from { opacity: 0; transform: scale(1.06) rotate(var(--mark-rot, 0deg)); }
  to { opacity: 0.9; transform: scale(1) rotate(var(--mark-rot, 0deg)); }
}

@keyframes fly-off {
  0% { opacity: 1; }
  60% { opacity: 1; }
  100% {
    transform: translate(var(--fly-x, 80vw), var(--fly-y, -40vh)) rotate(var(--fly-rot, 32deg));
    opacity: 0;
  }
}

@keyframes depart-soft {
  0% { opacity: 1; }
  100% {
    transform: translate(var(--stack-x, 0px), calc(var(--stack-y, 0px) - 2.25rem)) rotate(var(--stack-rot, 0deg));
    opacity: 0;
  }
}

@keyframes ink-in-soft {
  from { opacity: 0; }
  to { opacity: 0.9; }
}

.envelope.is-departing {
  transition: none;
  animation: depart-soft 0.4s ease forwards;
  z-index: 40 !important;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .stamp,
  .stamp-graphic,
  .fresh {
    transition: none;
  }

  .envelope {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .stamp:hover:not(:disabled) .stamp-graphic,
  .stamp:focus-visible:not(:disabled) .stamp-graphic {
    animation: none;
    transform: none;
  }

  .postmark.is-appearing {
    animation: ink-in-soft 0.2s ease both;
  }
}

/* --- breakpoints --- */

@media (min-width: 700px) {
  /* Scale the whole desktop scene to the viewport. The compact column is
     about 38rem with a tightened sign; 2.5dvh ≈ 100dvh / 40rem so a short
     wide window like 1024×480 still fits, while tall screens grow. Leftover
     height goes to the green desk, not the cream wall. */
  html {
    font-size: clamp(10px, min(2.35vh, 2.35dvh, 2.4vw), 30px);
  }

  .wall {
    flex: 0 0 auto;
    justify-content: center;
    padding-top: 1.15rem;
    padding-bottom: calc(1.15rem + 12px);
  }

  .counter {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .counter-top {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    justify-content: center;
  }

  .sign {
    width: min(24rem, 70vw);
    margin-bottom: 0;
    padding: 0.9rem 1.4rem 1.05rem;
  }

  .chains {
    width: min(24rem, 70vw);
    height: auto;
  }

  .baize {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(72rem, 100%);
  }

  .workspace {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    justify-content: center;
    align-items: end;
    column-gap: 2.5rem;
    row-gap: 0;
    min-height: 0;
    padding: 0.3rem 1rem 0.2rem;
  }

  .mail-block {
    display: contents;
  }

  .mail {
    grid-column: 1;
    grid-row: 1;
    width: 22.5rem;
  }

  .stamp-station {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0.4rem;
  }

  .counter-front {
    min-height: 5.8rem;
  }

  .tally {
    background: rgba(40, 18, 12, 0.35);
    border: 1px solid rgba(197, 163, 90, 0.45);
    padding: 0.28rem 0.8rem 0.32rem;
    border-radius: 2px;
  }
}

@media (min-width: 1100px) {
  .sign-name {
    font-size: 2.35rem;
  }

  .mail {
    width: 24rem;
  }
}

@media (min-width: 700px) and (max-height: 560px) {
  html {
    font-size: clamp(10px, min(2.5vh, 2.5dvh, 2.4vw), 30px);
  }

  .wall {
    padding-top: 1rem;
    padding-bottom: calc(1rem + 12px);
  }

  .sign {
    margin-bottom: 0;
    padding: 0.45rem 1.1rem 0.55rem;
  }

  .sign-kicker {
    font-size: 0.8rem;
  }

  .sign-name {
    font-size: 1.7rem;
  }

  .sign-role {
    margin-top: 0.18rem;
    font-size: 0.68rem;
  }

  .chains {
    width: min(18rem, 55vw);
  }

  .counter-front {
    min-height: 4.2rem;
    padding-top: 0.5rem;
    padding-bottom: 0.55rem;
  }
}
