/* simple-thing design language (DESIGN.md). Tokens are copied from meet-at-middle/src/style.css. */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --accent: #ff4f00; /* the simple-thing mark and nothing else */
  --text-2: #6b6b6b; /* secondary text on white, 5.3:1. Never on black (3.7:1) */
  --line: #767676; /* input borders */
  --hair: #e2e2e2; /* dividers, decorative frames */
  --on-map: #a8a8a8; /* small text on black, 8.3:1 */
  --radius: 10px;
  font-family: 'Apple SD Gothic Neo', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  color: var(--white);
  /* Korean breaks between words, not inside them; only a word too long for its line is split */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--black);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a {
  color: inherit;
  touch-action: manipulation;
}
/* the page is black: white ring there, black ring on the white sheet */
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.sheet :focus-visible {
  outline-color: var(--black);
}

/* ---------- layout: one column, black page, white sheet ---------- */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 16px 24px;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-weight: 600;
}
.mark {
  width: 28px;
  height: 28px;
  stroke: none;
}
h1 {
  margin: 24px 0 0;
  font-size: 1.75rem;
  line-height: 1.25;
}
.lead {
  margin: 8px 0 0;
  color: var(--on-map);
}
.sheet {
  display: block;
  margin-top: 32px;
  border-radius: 16px;
  background: var(--white);
  color: var(--black);
}
/* a link standing on its own gets a 44px tap area */
.home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--on-map);
}
@media (min-width: 768px) {
  .page {
    padding-top: max(48px, 12vh);
  }
  h1 {
    font-size: 2.5rem;
  }
}

/* ---------- service rows: the whole row is the link ---------- */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list li + li {
  border-top: 1px solid var(--hair);
}
.item {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.15s ease-out;
}
/* the row touches the sheet's edge, so its ring goes inside */
.item:focus-visible {
  outline-offset: -4px;
}
a.item:active {
  transform: scale(0.98);
}
.ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
.txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.name {
  font-weight: 600;
}
.desc {
  font-size: 0.875rem;
  color: var(--text-2);
}
.host {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-2);
}
.next {
  color: var(--text-2);
}
.soon {
  color: var(--text-2);
}
@media (hover: hover) {
  a.item:hover .name {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
