:root {
  color-scheme: light;
  --ink: #27221d;
  --muted: #685f56;
  --line: #e8d9b5;
  --paper: #fff8e6;
  --panel: #ffffff;
  --brand: #ffdf5d;
  --deep: #173533;
  --shadow: 0 16px 34px rgba(49, 36, 18, .1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--deep) 0, var(--deep) 430px, #fbf7ec 430px, #fffdf8 100%);
  color: var(--ink);
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

.type-header,
main,
.type-footer {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
}

.type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  color: #fffaf0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 240, .48);
  border-radius: var(--radius);
  background: #fff8d8;
}

.type-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.type-header nav a,
.type-shortcuts a,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.type-header nav a {
  border: 1px solid rgba(255, 250, 240, .24);
  background: rgba(255, 255, 255, .08);
}

.type-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: end;
  padding: 38px 0 36px;
  color: #fffaf0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 250, 240, .82);
  font-size: 18px;
}

.hero-note {
  padding: 18px;
  border: 1px solid rgba(255, 250, 240, .24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.hero-note strong {
  display: block;
  color: #ffdf5d;
  font-size: 18px;
}

.hero-note p {
  margin-top: 8px;
  color: rgba(255, 250, 240, .8);
  font-size: 14px;
}

.type-shortcuts {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(45, 37, 29, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.type-shortcuts a {
  border: 1px solid var(--line);
  background: #fffaf0;
  color: #453a2f;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 34px;
}

.type-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--soft), #ffffff 54%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.type-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.code {
  color: var(--accent);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.type-card h2 {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.18;
}

.summary {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: #4f463e;
}

.type-card dl {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.type-card dl div {
  padding: 10px;
  border: 1px solid rgba(45, 37, 29, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}

.type-card dt {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.type-card dd {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.sturgle {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 70px;
  border: 2px solid #2d251d;
  border-radius: 42% 48% 46% 44%;
  background: var(--accent);
  box-shadow: 0 5px 0 rgba(45, 37, 29, .16);
}

.sturgle::before,
.sturgle::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 22px;
  height: 24px;
  border: 2px solid #2d251d;
  border-bottom: 0;
  border-radius: 16px 16px 4px 4px;
  background: var(--mark);
}

.sturgle::before {
  left: 10px;
  transform: rotate(-18deg);
}

.sturgle::after {
  right: 10px;
  transform: rotate(18deg);
}

.sturgle span {
  position: absolute;
  left: 17px;
  top: 25px;
  width: 10px;
  height: 12px;
  border-radius: 999px;
  background: #2d251d;
  box-shadow: 31px 0 0 #2d251d;
}

.sturgle span::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 20px;
  height: 9px;
  border-bottom: 3px solid #2d251d;
  border-radius: 0 0 18px 18px;
}

.shape-b,
.shape-f,
.shape-j,
.shape-n {
  border-radius: 50% 42% 48% 42%;
}

.shape-c,
.shape-g,
.shape-k,
.shape-o {
  transform: rotate(-2deg);
}

.shape-d,
.shape-h,
.shape-l,
.shape-p {
  transform: rotate(2deg);
}

.shape-e::before,
.shape-i::before,
.shape-m::before {
  height: 30px;
  border-radius: 999px 999px 4px 4px;
}

.shape-e::after,
.shape-i::after,
.shape-m::after {
  height: 30px;
  border-radius: 999px 999px 4px 4px;
}

.type-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.type-footer strong,
.type-footer span {
  display: block;
}

.type-footer span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  body {
    background:
      linear-gradient(180deg, var(--deep) 0, var(--deep) 560px, #fbf7ec 560px, #fffdf8 100%);
  }

  .type-hero,
  .type-grid {
    grid-template-columns: 1fr;
  }

  .type-shortcuts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    background:
      linear-gradient(180deg, var(--deep) 0, var(--deep) 690px, #fbf7ec 690px, #fffdf8 100%);
  }

  .type-header,
  .type-footer {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .type-header nav {
    justify-content: stretch;
  }

  .type-header nav a {
    flex: 1 1 120px;
  }

  .type-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-top {
    align-items: flex-start;
  }

  .code {
    font-size: 30px;
  }
}
