@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  color-scheme: light;
  --paper: #f5f0e7;
  --paper-strong: #ebe4d8;
  --surface: #fffdf8;
  --surface-soft: #f7f4ee;
  --ink: #151412;
  --ink-soft: #4f4b45;
  --muted: #7c766e;
  --line: #d8d0c4;
  --line-soft: #e7e0d7;
  --red: #c92f2a;
  --red-dark: #9b211e;
  --red-soft: #fae7e4;
  --green: #12945f;
  --orange: #f08a24;
  --danger: #dc3f35;
  --shadow: 0 18px 38px rgba(21, 20, 18, 0.08);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(rgba(21, 20, 18, 0.06) 0.7px, transparent 0.7px) 0 0 / 18px 18px,
    linear-gradient(180deg, #fbf7ee 0%, var(--paper) 56%, #f1ebdf 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 74px;
  padding: 0 max(28px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 38px minmax(0, auto);
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
}

.brand strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand em {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.topnav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 36px);
  padding-right: 24px;
}

.topnav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.topnav a:hover {
  color: var(--red-dark);
}

.dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

main {
  width: 100%;
}

.poster-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  min-height: 575px;
  overflow: hidden;
  padding: 36px max(44px, calc((100vw - 1320px) / 2)) 34px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 32% 55%, rgba(21, 20, 18, 0.08), transparent 0 120px, transparent 180px),
    linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(245, 240, 231, 0.92));
}

.poster-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background:
    repeating-linear-gradient(0deg, rgba(21, 20, 18, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(rgba(21, 20, 18, 0.11) 0.45px, transparent 0.45px) 0 0 / 23px 23px;
}

.hero-left {
  position: relative;
  z-index: 3;
  align-self: center;
  padding-top: 38px;
}

.hero-left h1 {
  max-width: 420px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-left > p {
  max-width: 310px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.68;
  word-break: keep-all;
}

.primary-action {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.primary-action:hover,
.dashboard-link:hover {
  background: var(--red-dark);
}

.quick-links-static {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 56px));
  gap: 16px;
  margin-top: 82px;
}

.quick-links-static p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.quick-links-static a {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.quick-links-static span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.hero-collage {
  position: relative;
  z-index: 2;
  min-height: 520px;
}

.hand-note {
  position: absolute;
  top: 42px;
  left: 72px;
  z-index: 4;
  margin: 0;
  color: var(--ink);
  font-family: "Comic Sans MS", "Pretendard", cursive;
  font-size: 19px;
  font-weight: 600;
  transform: rotate(-7deg);
}

.hand-note::after {
  position: absolute;
  right: 4px;
  bottom: -10px;
  left: -4px;
  height: 2px;
  content: "";
  background: var(--ink);
  transform: rotate(-1deg);
}

.sketch {
  position: absolute;
  z-index: 1;
  fill: none;
  stroke: rgba(21, 20, 18, 0.78);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.sketch-tower {
  top: 18px;
  left: 260px;
  width: 72px;
}

.sketch-rack {
  top: 34px;
  left: 430px;
  width: 170px;
}

.sketch-city {
  bottom: 52px;
  left: 120px;
  width: 260px;
  opacity: 0.84;
}

.red-label {
  position: absolute;
  top: 158px;
  left: 240px;
  z-index: 3;
  display: grid;
  width: min(470px, 56vw);
  padding: 28px 42px 20px;
  background: var(--red);
  color: #050505;
  box-shadow: 0 14px 24px rgba(21, 20, 18, 0.12);
  transform: rotate(-0.3deg);
}

.red-label::before,
.red-label::after {
  position: absolute;
  content: "";
  background: rgba(245, 240, 231, 0.34);
  transform: rotate(2deg);
}

.red-label::before {
  top: -10px;
  left: 44%;
  width: 112px;
  height: 26px;
}

.red-label::after {
  right: 24px;
  bottom: 16px;
  width: 92px;
  height: 20px;
}

.red-label span {
  display: block;
  font-family: "Arial Narrow", "Impact", "Pretendard", sans-serif;
  font-size: clamp(86px, 11vw, 156px);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  transform: scaleX(0.76);
  transform-origin: left center;
}

.code-note {
  position: absolute;
  top: 48px;
  right: 58px;
  z-index: 2;
  width: 260px;
  padding: 22px 24px;
  background: rgba(245, 240, 231, 0.78);
  border: 1px solid rgba(216, 208, 196, 0.8);
  color: var(--ink);
  transform: rotate(2deg);
}

.code-note pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.automation-note {
  position: absolute;
  top: 198px;
  right: 28px;
  z-index: 3;
  display: grid;
  gap: 20px;
  justify-items: center;
}

.automation-note strong {
  display: inline-flex;
  padding: 6px 18px;
  background: var(--ink);
  color: #fff;
  font-family: "Comic Sans MS", "Pretendard", cursive;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(-5deg);
}

.automation-note div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.automation-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 25px;
}

.automation-note i {
  display: block;
  width: 34px;
  height: 1.5px;
  background: var(--ink);
}

.sketch-book {
  right: 76px;
  bottom: 114px;
  z-index: 2;
  width: 270px;
}

.sticky-note {
  position: absolute;
  right: 250px;
  bottom: 104px;
  z-index: 4;
  display: grid;
  justify-items: center;
  width: 118px;
  padding: 18px 10px;
  background: #fff8ed;
  box-shadow: 0 10px 18px rgba(21, 20, 18, 0.16);
  color: var(--ink);
  font-family: "Comic Sans MS", "Pretendard", cursive;
  font-size: 16px;
  transform: rotate(6deg);
}

.mini-health {
  position: absolute;
  right: 0;
  bottom: 20px;
  z-index: 2;
  width: 270px;
  padding: 22px 22px 16px;
  border: 1.5px solid rgba(21, 20, 18, 0.68);
  background: rgba(255, 253, 248, 0.72);
}

.mini-health span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mini-health svg {
  display: block;
  width: 100%;
  margin-top: 12px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
}

.mini-health strong {
  display: block;
  margin-top: 2px;
  color: var(--red);
  font-size: 20px;
  text-align: right;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  width: min(1260px, calc(100% - 48px));
  margin: 18px auto 24px;
}

.service-board,
.summary-card,
.activity-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 6px 20px rgba(21, 20, 18, 0.05);
}

.service-board {
  padding: 12px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 150px auto;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.search {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
}

.search span {
  color: var(--ink);
  text-align: center;
  font-size: 24px;
}

.search input,
.toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.search input {
  border: 0;
  background: transparent;
}

.toolbar select {
  padding: 0 12px;
}

.search:focus-within,
.toolbar select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201, 47, 42, 0.12);
}

.view-buttons {
  display: grid;
  grid-template-columns: repeat(2, 40px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
}

.view-buttons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: 17px;
}

.view-buttons span + span {
  border-left: 1px solid var(--line-soft);
}

.board-title {
  padding: 18px 2px 14px;
}

.board-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.board-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 13px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.service-card a {
  display: grid;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #fff;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.service-card a:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: 0 10px 20px rgba(21, 20, 18, 0.07);
}

.service-card__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--ink);
}

.service-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.service-card__title strong,
.service-card__title em {
  display: block;
}

.service-card__title strong {
  font-size: 15px;
  font-weight: 800;
}

.service-card__title em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.service-card__desc {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.service-card__status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  align-self: end;
  width: fit-content;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.service-card__status::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.service-card__status.ok {
  color: var(--green);
}

.service-card__status.degraded {
  color: var(--orange);
}

.service-card__status.down {
  color: var(--danger);
}

.view-all {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.system-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.summary-card,
.activity-card {
  padding: 18px;
}

.summary-card h2,
.activity-card h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
}

.summary-card dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.summary-card dt,
.summary-card dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.summary-card dt {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink-soft);
}

.summary-card dd {
  color: var(--ink);
}

.summary-dot {
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.summary-dot.ok {
  color: var(--green);
}

.summary-dot.warn {
  color: var(--orange);
}

.summary-dot.down {
  color: var(--danger);
}

.activity-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-card li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.activity-card li span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.activity-card li strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card li em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.activity-card a {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .poster-hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    max-width: 460px;
    padding-top: 10px;
  }

  .hero-collage {
    min-height: 460px;
  }

  .red-label {
    left: 180px;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .topnav {
    display: none;
  }

  .brand {
    grid-template-columns: 32px minmax(0, auto);
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }

  .brand em {
    display: none;
  }

  .dashboard-link {
    min-height: 36px;
    padding: 0 14px;
  }

  .poster-hero {
    min-height: 0;
    padding: 28px 18px;
  }

  .hero-left h1 {
    font-size: 32px;
  }

  .quick-links-static {
    margin-top: 34px;
  }

  .hero-collage {
    min-height: 470px;
  }

  .hand-note,
  .sketch-tower,
  .sketch-city,
  .code-note,
  .automation-note,
  .mini-health {
    display: none;
  }

  .red-label {
    top: 42px;
    left: 0;
    width: min(430px, 100%);
    padding: 22px 28px 18px;
  }

  .red-label span {
    font-size: clamp(74px, 22vw, 106px);
  }

  .sketch-rack {
    top: 24px;
    right: 10px;
    left: auto;
    width: 108px;
    opacity: 0.55;
  }

  .sketch-book {
    right: 12px;
    bottom: 112px;
    width: 150px;
    opacity: 0.7;
  }

  .sticky-note {
    right: 38px;
    bottom: 80px;
  }

  .dashboard {
    width: calc(100% - 24px);
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .view-buttons {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}
