:root {
  --carmine: #8b1e2d;
  --carmine-deep: #451016;
  --accent: #b08a57;
  --moss: #59654f;
  --paper: #f4efe8;
  --paper-strong: #fbf7f1;
  --ink: #21191a;
  --muted: #75676a;
  --line: rgba(69, 16, 22, 0.16);
  --shadow: 0 20px 60px rgba(31, 18, 18, 0.16);
  --radius: 8px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(139, 30, 45, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(69, 16, 22, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  color: var(--paper-strong);
  background: rgba(35, 13, 16, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper-strong);
  background: var(--carmine);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.brand-mark strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}

.brand-mark small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.nav-admin {
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.page {
  min-height: calc(100vh - var(--header-h));
}

.section {
  padding: 96px 28px;
}

.section.alt {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--carmine);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Malgun Gothic", serif;
  font-weight: 600;
  line-height: 1.12;
}

h1 {
  font-size: 54px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 23px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  word-break: keep-all;
}

.lead {
  color: #3d3032;
  font-size: 18px;
  line-height: 1.8;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #21191a;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 8, 11, 0.76), rgba(26, 8, 11, 0.22) 55%, rgba(26, 8, 11, 0.42)),
    linear-gradient(0deg, rgba(26, 8, 11, 0.92), transparent 58%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 90px 28px 46px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 800px;
  color: #fff;
  font-size: 68px;
}

.hero h1 span {
  display: block;
}

.hero p {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-strip {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 56px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 auto 28px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.metric {
  min-height: 112px;
  padding: 22px;
  background: rgba(25, 11, 13, 0.68);
}

.metric strong {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--carmine);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--carmine-deep);
}

.btn.secondary {
  color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn.ghost {
  color: var(--carmine);
  background: transparent;
  border-color: var(--line);
}

.btn.ghost:hover {
  color: #fff;
  background: var(--carmine);
}

.btn.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn.icon-only {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 8px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.panel {
  padding: 26px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 38px rgba(59, 28, 31, 0.08);
}

.panel.dark {
  color: #fff;
  background: var(--carmine-deep);
  border-color: rgba(255, 255, 255, 0.08);
}

.panel.dark p,
.panel.dark .muted {
  color: rgba(255, 255, 255, 0.74);
}

.feature-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.feature-photo {
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stack-item strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--carmine);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
}

.stack-item h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tabs,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab,
.chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--carmine);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.tab.is-active,
.chip.is-active {
  color: #fff;
  background: var(--carmine);
  border-color: var(--carmine);
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: grid;
  align-items: end;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.project-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(20, 9, 11, 0.88), rgba(20, 9, 11, 0.1) 58%);
}

.project-card:hover img {
  transform: scale(1.045);
}

.project-body {
  padding: 22px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
}

.project-card h3 {
  color: #fff;
  font-size: 25px;
}

.project-card p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
}

.project-card .btn {
  margin-top: 16px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.page-dot {
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--carmine);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.page-dot.is-active {
  color: #fff;
  background: var(--carmine);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: stretch;
}

.detail-media {
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 38px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.info-table div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  color: var(--muted);
  font-size: 13px;
}

.info-table dd {
  margin: 0;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: start;
}

.price-box {
  display: grid;
  gap: 18px;
  padding: 30px;
  color: #fff;
  background: var(--carmine-deep);
  border-radius: var(--radius);
}

.price-box strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.price-box ul,
.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-box li,
.clean-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.price-box li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.clean-list li {
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--carmine-deep);
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--carmine);
  box-shadow: 0 0 0 3px rgba(139, 30, 45, 0.12);
}

.map-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.map-visual {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(139, 30, 45, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(89, 101, 79, 0.18) 1px, transparent 1px),
    #ede4da;
  background-size: 54px 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--carmine);
  border: 8px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}

.map-lines {
  position: absolute;
  inset: 14%;
  border: 2px solid rgba(69, 16, 22, 0.18);
  border-radius: var(--radius);
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
}

.admin-side button {
  min-height: 46px;
  padding: 0 14px;
  text-align: left;
  color: var(--carmine-deep);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.admin-side button.is-active {
  color: #fff;
  background: var(--carmine);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--carmine-deep);
  background: rgba(139, 30, 45, 0.07);
  font-size: 13px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dropzone {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  background: rgba(139, 30, 45, 0.05);
  border: 1px dashed rgba(139, 30, 45, 0.44);
  border-radius: var(--radius);
}

.dropzone.is-dragging {
  background: rgba(139, 30, 45, 0.12);
  border-color: var(--carmine);
}

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

.image-preview figure {
  position: relative;
  margin: 0;
}

.image-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.image-preview button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  color: #fff;
  background: rgba(69, 16, 22, 0.82);
  border: 0;
  border-radius: 50%;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.color-row input[type="color"] {
  width: 54px;
  height: 42px;
  padding: 3px;
}

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 340px;
  display: none;
  padding: 15px 17px;
  color: #fff;
  background: var(--carmine-deep);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toast.is-visible {
  display: block;
}

.top-button {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 45;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  color: #fff;
  background: var(--carmine);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.top-button.is-visible {
  display: grid;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 28px;
  color: rgba(255, 255, 255, 0.76);
  background: #1b1112;
}

.site-footer > div {
  width: min(560px, 100%);
}

.site-footer strong {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.site-footer p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.muted {
  color: var(--muted);
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-36 {
  margin-top: 36px;
}

.hide {
  display: none !important;
}

@media (max-width: 1080px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    padding: 14px 18px 24px;
    background: rgba(35, 13, 16, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  body.nav-open .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
  }

  .section-head,
  .feature-band,
  .detail-hero,
  .quote-layout,
  .map-panel,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 52px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
  }

  .brand-mark strong {
    font-size: 17px;
  }

  .brand-mark small {
    display: none;
  }

  body.nav-open .site-nav {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 16px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding: 72px 16px 28px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero p,
  .lead {
    font-size: 16px;
  }

  h2 {
    font-size: 31px;
  }

  h3 {
    font-size: 21px;
  }

  .hero-strip {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 88px;
  }

  .portfolio-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 330px;
  }

  .detail-media {
    min-height: 360px;
  }

  .detail-info {
    padding: 24px;
  }

  .info-table div {
    grid-template-columns: 96px 1fr;
  }

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

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .admin-side {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 34px;
  }

  .btn {
    width: 100%;
  }

  .tabs,
  .chip-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab,
  .chip {
    width: 100%;
  }
}

/* Carmine-style board layout */
body {
  background: #fff;
  color: #3e3e3e;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

#app:focus {
  outline: none;
}

.clone-header {
  position: relative;
  display: block;
  min-height: 184px;
  padding: 0;
  color: #555;
  background: #fff;
  border-bottom: 1px solid #d7d7d7;
  backdrop-filter: none;
}

.header-util {
  width: 1100px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  color: #777;
  font-size: 11px;
}

.sns-links,
.member-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.clone-header .brand-mark {
  width: max-content;
  display: flex;
  justify-content: center;
  margin: 42px auto 32px;
  text-align: center;
}

.clone-header .brand-mark strong {
  color: #3a3938;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.clone-header .brand-mark small {
  display: none;
}

.clone-header .site-nav {
  width: 1100px;
  height: 40px;
  justify-content: center;
  gap: 46px;
  margin: 0 auto;
  border-top: 0;
}

.clone-header .site-nav::after {
  content: "";
  width: 140px;
  height: 1px;
  margin-left: 30px;
  background: #777;
}

.clone-header .site-nav a {
  min-height: 40px;
  padding: 0;
  color: #444;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
}

.clone-header .site-nav a:hover,
.clone-header .site-nav a.is-active {
  color: #8b1e2d;
  background: transparent;
}

.clone-header .nav-admin {
  display: none;
}

.clone-main {
  padding: 22px 0 86px;
  background: #fff;
}

.clone-shell {
  width: 1100px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  margin: 0 auto;
}

.clone-sidebar {
  color: #353535;
  font-size: 14px;
}

.clone-sidebar h3 {
  margin: 0;
  padding: 0 0 10px;
  color: #252525;
  font-family: "Malgun Gothic", sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.clone-sidebar h3:not(:first-child) {
  margin-top: 34px;
}

.clone-sidebar a,
.clone-sidebar span {
  display: block;
  margin: 0 0 8px;
  color: #555;
  font-size: 13px;
  line-height: 1.35;
}

.clone-sidebar strong {
  display: block;
  margin: 0 0 4px;
  color: #333;
  font-size: 20px;
  font-weight: 700;
}

.clone-content {
  min-width: 0;
}

.main-grid {
  display: grid;
  grid-template-columns: 640px 260px;
  gap: 22px;
  align-items: start;
}

.main-slide {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #eee;
}

.main-slide a,
.main-slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.main-slide img {
  object-fit: cover;
}

.main-slide a > span {
  position: absolute;
  left: 50%;
  top: 51%;
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.slide-dots {
  position: absolute;
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 7px;
}

.slide-dots i {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.slide-dots i.on {
  background: #b08a57;
}

.right-boards {
  display: grid;
  gap: 12px;
}

.mini-board h4,
.blog-panel h4,
.best-panel h4,
.all-portfolio h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  padding-bottom: 6px;
  color: #2f7169;
  border-bottom: 1px solid #cfd8d4;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.mini-board h4 a,
.blog-panel h4 a,
.best-panel h4 a,
.all-portfolio h4 a {
  color: #333;
  font-size: 20px;
  line-height: 0.8;
}

.mini-board ul,
.blog-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-board li,
.blog-body li {
  height: 20px;
  overflow: hidden;
  color: #666;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sub-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 22px;
  margin-top: 18px;
}

.blog-body {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 14px;
}

.before-box {
  height: 112px;
  display: grid;
  place-items: center;
  color: #43544c;
  background: #efeee9;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.more-link {
  display: block;
  margin-top: 8px;
  color: #755d51;
  font-size: 12px;
  text-align: right;
}

.best-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.best-row a {
  display: block;
  text-align: center;
}

.best-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.best-row span {
  display: block;
  height: 28px;
  overflow: hidden;
  margin-top: 6px;
  color: #666;
  font-size: 11px;
  line-height: 14px;
}

.all-portfolio {
  margin-top: 34px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 170px);
  justify-content: space-between;
  row-gap: 58px;
  padding-top: 16px;
}

.board-tile {
  display: block;
  text-align: center;
}

.board-image {
  position: relative;
  display: block;
  width: 170px;
  height: 170px;
  overflow: hidden;
  background: #eee;
}

.board-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-image em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: normal;
  text-align: center;
}

.board-tile strong {
  display: block;
  height: 20px;
  overflow: hidden;
  margin-top: 12px;
  color: #555;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.board-tile small {
  display: block;
  color: #b44735;
  font-size: 10px;
  font-weight: 900;
}

.board-pages {
  display: flex;
  justify-content: center;
  gap: 21px;
  margin: 70px 0 58px;
  color: #b6b6b6;
  font-size: 13px;
}

.board-pages strong {
  color: #111;
}

.insta-line {
  height: 90px;
  padding-top: 20px;
  border-top: 1px solid #7c8580;
  color: #555;
  font-size: 13px;
}

.insta-line strong {
  margin-right: 6px;
  color: #333;
}

.project-card {
  min-height: 0;
  display: block;
  overflow: visible;
  color: #555;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.project-card::after {
  display: none;
}

.project-card img {
  position: static;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  transition: none;
}

.project-card:hover img {
  transform: none;
}

.tile-image {
  position: relative;
  display: block;
}

.tile-image span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-align: center;
}

.project-body {
  padding: 10px 0 0;
  text-align: center;
}

.project-card h3 {
  color: #555;
  font-family: "Malgun Gothic", sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.project-card p {
  margin-top: 4px;
  color: #b44735;
  font-size: 10px;
  line-height: 1.3;
}

.portfolio-toolbar {
  margin-bottom: 28px;
}

.grid.two {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 52px;
}

.clone-footer {
  display: block;
  padding: 0;
  color: #555;
  background: #fff;
}

.clone-footer > div {
  width: auto;
}

.footer-logo {
  padding: 104px 0 74px;
  color: #4b4b4b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  text-align: center;
  text-transform: uppercase;
}

.clone-footer .footer-sitemap {
  width: 1100px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 52px;
  margin: 0 auto 72px;
}

.footer-sitemap strong,
.footer-sitemap a {
  display: block;
  color: #777;
  font-size: 12px;
  line-height: 2.2;
}

.footer-sitemap strong {
  color: #555;
  font-weight: 900;
}

.footer-dark {
  width: 100%;
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  gap: 90px;
  padding: 48px calc((100% - 760px) / 2);
  color: #ddd;
  background: #303030;
}

.footer-dark strong {
  color: #e8e8e8;
  font-family: "Malgun Gothic", sans-serif;
  font-size: 15px;
}

.footer-dark p {
  margin-top: 16px;
  color: #c9c9c9;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 1120px) {
  .header-util,
  .clone-header .site-nav,
  .clone-shell,
  .clone-footer .footer-sitemap {
    width: min(100% - 32px, 960px);
  }

  .clone-shell {
    grid-template-columns: 132px 1fr;
    gap: 18px;
  }

  .main-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .board-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 42px 24px;
  }

  .board-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 820px) {
  .clone-header {
    min-height: 112px;
  }

  .header-util {
    width: calc(100% - 28px);
  }

  .sns-links {
    gap: 10px;
  }

  .clone-header .brand-mark {
    margin: 22px 14px 18px;
  }

  .clone-header .brand-mark strong {
    font-size: 25px;
  }

  .clone-header .nav-toggle {
    position: absolute;
    right: 14px;
    top: 50px;
    display: inline-flex;
    color: #444;
    background: #f4f4f4;
    border-color: #ddd;
  }

  .clone-header .site-nav {
    position: fixed;
    inset: 112px 0 auto 0;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #ddd;
  }

  body.nav-open .clone-header .site-nav {
    display: grid;
  }

  .clone-header .site-nav::after {
    display: none;
  }

  .clone-header .site-nav a {
    min-height: 42px;
    border-bottom: 1px solid #eee;
    text-align: left;
    justify-content: flex-start;
  }

  .clone-main {
    padding-top: 18px;
  }

  .clone-shell {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }

  .clone-content {
    order: 1;
  }

  .clone-sidebar {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
  }

  .clone-sidebar h3 {
    grid-column: span 2;
    margin-top: 14px !important;
  }

  .main-grid,
  .sub-grid {
    grid-template-columns: 1fr;
  }

  .main-slide {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .right-boards {
    grid-template-columns: 1fr;
  }

  .board-grid,
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 18px;
  }

  .clone-footer .footer-sitemap {
    width: calc(100% - 32px);
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-dark {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 34px 24px;
  }
}

@media (max-width: 430px) {
  .header-util {
    font-size: 10px;
  }

  .member-links {
    gap: 8px;
  }

  .clone-sidebar {
    grid-template-columns: 1fr;
  }

  .clone-sidebar h3 {
    grid-column: auto;
  }

  .blog-body {
    grid-template-columns: 100px 1fr;
  }

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

  .board-tile strong {
    white-space: normal;
  }

  .footer-logo {
    padding: 70px 0 50px;
    font-size: 26px;
  }
}
