:root {
  --felt: #0b6b58;
  --felt-deep: #085445;
  --cream: #fbf6e8;
  --cream-edge: #e7d7b0;
  --ink: #572c0d;
  --title: #fff0b8;
  --honey: #e6ad38;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, #14977c 0%, transparent 55%),
    linear-gradient(180deg, var(--felt) 0%, var(--felt-deep) 100%);
}

a {
  color: inherit;
}

.wrap {
  width: min(440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.brand {
  margin: 0 0 28px;
  text-align: center;
  color: var(--title);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.button {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  box-shadow:
    inset 0 0 0 1.5px var(--cream-edge),
    0 8px 16px rgba(0, 0, 0, 0.16);
}

.button:hover,
.button:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 2px var(--honey),
    0 8px 16px rgba(0, 0, 0, 0.16);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.back {
  color: var(--title);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

.langs {
  display: flex;
  gap: 6px;
}

.langs button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--title);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--honey);
  color: var(--ink);
}

.card {
  padding: 22px 20px 8px;
  border-radius: 22px;
  background: var(--cream);
  box-shadow:
    inset 0 0 0 1.5px var(--cream-edge),
    0 8px 16px rgba(0, 0, 0, 0.16);
}

.card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
}

.card p,
.card a.mail {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

.card p {
  margin: 0 0 14px;
}

.mail {
  display: inline-block;
  margin: 4px 0 16px;
  color: var(--ink);
  font-weight: 650;
}

[data-lang-block] {
  display: none;
}

[data-lang-block].on {
  display: block;
}
