:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #151515;
  --muted: #555555;
  --line: #dedede;
  --hover: #f5f8f6;
  --accent: #2f7d56;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.page {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 72px 24px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.goat-link {
  position: relative;
  width: min(78vw, 430px);
  display: block;
  line-height: 0;
}

.goat-link:focus-visible {
  outline: 3px solid rgba(47, 125, 86, 0.28);
  outline-offset: 5px;
}

.goat {
  width: min(78vw, 430px);
  height: auto;
  display: block;
}

.twitter-badge {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 20%;
  height: auto;
  display: block;
}

h1 {
  margin: 24px 0 0;
  font-family: "Malgun Gothic", sans-serif;
  font-size: clamp(38px, 8vw, 74px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.services {
  width: min(100%, 720px);
  margin-top: 56px;
  display: grid;
  gap: 12px;
}

.service {
  min-height: 92px;
  display: grid;
  grid-template-columns: 76px minmax(128px, 176px) 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.service:hover,
.service:focus-visible {
  background: var(--hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.service:focus-visible {
  outline: 3px solid rgba(47, 125, 86, 0.22);
  outline-offset: 3px;
}

.icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.service strong {
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

.service span:last-child {
  color: var(--muted);
  font-size: clamp(15px, 2.5vw, 18px);
  line-height: 1.55;
  word-break: keep-all;
}

footer {
  padding: 28px 24px 36px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

footer a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .page {
    padding-top: 44px;
  }

  .services {
    margin-top: 42px;
  }

  .service {
    grid-template-columns: 58px 1fr;
    gap: 8px 14px;
    padding: 14px;
  }

  .icon-wrap {
    width: 52px;
    height: 52px;
    grid-row: span 2;
  }

  .service strong {
    white-space: normal;
  }

  .service span:last-child {
    grid-column: 2;
  }
}
