@import url("https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap");

:root {
  --sky-top: #78a7d4;
  --sky-mid: #8ec0ee;
  --sky-low: #b9def9;
  --sea: #344fba;
  --foam: #f2f6ff;
  --grass: #7a9431;
  --grass-dark: #566f20;
  --panel: rgba(42, 48, 52, 0.72);
  --panel-strong: rgba(56, 62, 67, 0.82);
  --panel-line: rgba(20, 24, 27, 0.78);
  --text: #f4f4ef;
  --text-dark: #171717;
  --muted: #d8d6cf;
  --shadow: 0 16px 0 rgba(33, 39, 42, 0.28), 0 32px 60px rgba(0, 0, 0, 0.22);
  --radius: 2px;
  --box-width: min(100%, 760px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
}

body {
  font-family: "Silkscreen", "Lucida Console", "Courier New", monospace;
  color: var(--text);
  line-height: 1.45;
  background:
    radial-gradient(circle at 8% 29%, rgba(255, 244, 255, 0.9) 0 0.45rem, transparent 0.5rem),
    radial-gradient(circle at 11% 30%, rgba(255, 244, 255, 0.85) 0 0.7rem, transparent 0.75rem),
    radial-gradient(circle at 14% 29%, rgba(255, 244, 255, 0.88) 0 0.5rem, transparent 0.55rem),
    radial-gradient(circle at 33% 26%, rgba(255, 244, 255, 0.9) 0 0.7rem, transparent 0.75rem),
    radial-gradient(circle at 36% 27%, rgba(255, 244, 255, 0.88) 0 1rem, transparent 1.05rem),
    radial-gradient(circle at 40% 26%, rgba(255, 244, 255, 0.9) 0 0.7rem, transparent 0.75rem),
    radial-gradient(circle at 73% 27%, rgba(255, 244, 255, 0.9) 0 0.7rem, transparent 0.75rem),
    radial-gradient(circle at 77% 28%, rgba(255, 244, 255, 0.88) 0 1rem, transparent 1.05rem),
    radial-gradient(circle at 81% 27%, rgba(255, 244, 255, 0.9) 0 0.7rem, transparent 0.75rem),
    linear-gradient(180deg, var(--sky-top) 0 29%, var(--sky-mid) 29% 39%, var(--sky-low) 39% 42%, var(--foam) 42% 43%, var(--sea) 43% 46%, var(--grass) 46% 47%, var(--grass-dark) 47% 48%, #7d942f 48% 100%);
  image-rendering: pixelated;
  padding: 24px 18px 56px;
}

a,
a:link,
a:visited,
a:active {
  color: var(--text);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

#wrap {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

#shortener-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.brand-wordmark {
  display: block;
  margin: 4px auto 26px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "Silkscreen", "Lucida Console", "Courier New", monospace;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  color: #eef2f6;
  text-shadow: 4px 4px 0 rgba(120, 167, 212, 0.34);
}

.brand-wordmark:hover,
.brand-wordmark:focus-visible {
  text-decoration: none;
  color: #ffffff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Silkscreen", "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.03em;
  text-rendering: geometricPrecision;
}

h1 {
  width: var(--box-width);
  margin: 0 auto 16px;
  text-align: center;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  text-transform: none;
  color: #0f1318;
  line-height: 1.12;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.65rem;
  color: #0f1318;
  line-height: 1.2;
}

.align-value-one,
.align-value-two,
#shareboxes,
.result-message,
#footer {
  justify-self: center;
}

.align-value-one,
.align-value-two,
#shareboxes {
  background: var(--panel);
  border: 2px solid var(--panel-line);
  box-shadow: var(--shadow);
}

.align-value-one {
  width: var(--box-width);
  padding: 20px 24px 0;
  border-bottom: 0;
  text-align: center;
}

.align-value-two {
  width: var(--box-width);
  margin-top: 0;
  padding: 0 24px 28px;
  text-align: center;
}

.align-value-two .js-public-form p + p {
  margin-top: 16px;
}

#rf {
  width: 100%;
  max-width: none;
  height: 52px;
  padding: 0 16px;
  color: var(--text-dark);
  background: #f7f7f3;
  border: 2px solid #afb6b2;
  border-radius: 0;
  font-family: "Silkscreen", "Lucida Console", "Courier New", monospace;
  font-size: 1.05rem;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
}

#rf::placeholder {
  color: #6f746e;
}

#rf:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

#rfb,
input.button,
input.primary,
button {
  min-width: 220px;
  height: 44px;
  margin-top: 16px;
  padding: 0 22px;
  border: 2px solid #656b6f;
  border-radius: 0;
  color: #111;
  background: linear-gradient(180deg, #f4f2ef 0%, #d2ceca 100%);
  font-family: "Silkscreen", "Lucida Console", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 4px 4px 0 rgba(27, 30, 31, 0.45);
  cursor: pointer;
}

#rfb:hover,
input.button:hover,
input.primary:hover,
button:hover {
  filter: brightness(1.03);
  text-decoration: none;
}

#shareboxes {
  margin-top: 18px;
  width: var(--box-width);
  padding: 22px 24px;
  text-align: center;
}

#origlink {
  display: inline-block;
  max-width: 100%;
  padding: 10px 12px;
  margin: 10px 0 0;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  border: 2px solid #bac0bc;
  overflow-wrap: anywhere;
  font-family: "Silkscreen", "Lucida Console", "Courier New", monospace;
}

#origlink,
#origlink:link,
#origlink:visited,
#origlink:hover,
#origlink:focus-visible,
#origlink:active {
  color: #111;
  text-decoration: none;
}

.result-message.is-success,
#feedback.is-success {
  color: #f7fff5;
  background: rgba(114, 162, 70, 0.26);
  border: 2px solid rgba(214, 255, 164, 0.28);
}

.result-message.is-error,
#feedback.is-error {
  color: #fff1f1;
  background: rgba(166, 63, 73, 0.28);
  border: 2px solid rgba(255, 183, 188, 0.28);
}

#feedback {
  margin-top: 12px;
  padding: 10px 12px;
}

#feedback,
.result-message {
  width: var(--box-width);
  text-align: center;
}

#footer {
  display: none;
}

#shareboxes a,
.result-message a,
#feedback a {
  color: #f4f4ef;
}

@media (max-width: 860px) {
  .align-value-one,
  .align-value-two,
  #shareboxes,
  .result-message,
  #footer {
    width: 100%;
  }

  body {
    padding: 18px 12px 32px;
  }
}
