:root {
  color-scheme: light;
  --ink: #282623;
  --ink-soft: #605b53;
  --paper: #f3eee4;
  --paper-up: #fbf8f1;
  --line: #d9d0c1;
  --orange: #e46f45;
  --orange-deep: #bd5132;
  --blue: #3f7c87;
  --blue-soft: #8fb8b6;
  --green: #567a62;
  --yellow: #e6b84f;
  --violet: #76628c;
  --shadow: 0 24px 70px rgb(65 51 36 / 14%);
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    linear-gradient(90deg, transparent 50%, rgb(64 52 39 / 2%) 50%) 0 0 / 2rem 2rem,
    radial-gradient(circle at 8% 4%, rgb(228 111 69 / 10%), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgb(63 124 135 / 11%), transparent 26rem),
    var(--paper);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
footer,
.hero,
.maker,
.simple-page,
.edit-page,
.not-found {
  margin-inline: auto;
  max-width: 1160px;
  width: calc(100% - 2rem);
}

.site-header {
  align-items: center;
  display: flex;
  height: 72px;
  justify-content: space-between;
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  gap: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.logo-mark {
  display: inline-grid;
  gap: 2px;
  grid-template-columns: repeat(3, 7px);
  height: 25px;
  perspective: 60px;
}

.logo-mark i {
  background: var(--orange);
  border-radius: 2px 2px 0 0;
  display: block;
  transform: rotateY(-12deg);
}

.logo-mark i:nth-child(2) {
  background: var(--blue);
  margin-top: 5px;
}

.logo-mark i:nth-child(3) {
  background: var(--yellow);
  margin-top: 2px;
}

.site-header nav,
footer nav {
  display: flex;
  gap: 1.4rem;
}

.site-header nav a,
footer nav a {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-header nav a:hover,
footer nav a:hover {
  color: var(--orange-deep);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 0.84fr) minmax(430px, 1.16fr);
  min-height: 600px;
  padding-block: 3rem 5rem;
}

.hero-copy {
  max-width: 470px;
}

.eyebrow,
.section-kicker {
  color: var(--orange-deep);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.75rem, 3.2vw, 2rem);
  letter-spacing: 0.025em;
  line-height: 1.4;
  margin: 0;
}

.hero-copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 1.25rem 0 1.75rem;
}

.primary-button,
.quiet-button,
.danger-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.15rem;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--orange), #d85d40);
  border: 1px solid #c44f33;
  box-shadow: 0 12px 25px rgb(190 76 45 / 18%);
  color: #fff;
}

.quiet-button {
  background: var(--paper-up);
  border: 1px solid var(--line);
  color: var(--ink);
}

.danger-button {
  background: transparent;
  border: 1px solid #bc6658;
  color: #a64335;
}

.small {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
}

.trust-row {
  color: #797268;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.7rem;
  gap: 0.9rem;
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
}

.trust-row li {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.trust-row span {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(86 122 98 / 12%);
  height: 6px;
  width: 6px;
}

.studio-scene {
  aspect-ratio: 1.2;
  background:
    linear-gradient(transparent 68%, rgb(79 63 46 / 8%) 68% 69%, transparent 69%),
    linear-gradient(90deg, transparent 68%, rgb(79 63 46 / 6%) 68% 69%, transparent 69%), #e9dfcf;
  border: 1px solid #d1c4b2;
  border-radius: 18px;
  box-shadow:
    var(--shadow),
    inset 0 0 80px rgb(94 75 49 / 8%);
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.studio-lamp {
  background: var(--yellow);
  border-radius: 50%;
  box-shadow:
    0 0 0 9px rgb(230 184 79 / 13%),
    0 0 55px rgb(230 184 79 / 52%);
  height: 18px;
  left: 10%;
  position: absolute;
  top: 12%;
  width: 18px;
}

.studio-lamp::before {
  border-left: 2px solid #86765f;
  content: "";
  height: 75px;
  left: 8px;
  position: absolute;
  top: -75px;
}

.studio-lamp::after {
  border-color: transparent transparent #b49d69;
  border-style: solid;
  border-width: 0 16px 18px;
  content: "";
  left: -7px;
  opacity: 0.45;
  position: absolute;
  top: -8px;
}

.profile-card {
  background: #fffaf0;
  border: 1px solid #d6cbb9;
  border-radius: 9px;
  box-shadow: 0 20px 32px rgb(76 57 38 / 16%);
  display: grid;
  gap: 8px;
  height: 184px;
  left: 12%;
  padding: 1.25rem;
  position: absolute;
  top: 31%;
  transform: rotate(-3deg);
  width: 190px;
  z-index: 3;
}

.avatar-shape {
  background: linear-gradient(135deg, transparent 50%, rgb(255 255 255 / 30%) 51%), var(--orange);
  border-radius: 45% 45% 40% 40%;
  height: 62px;
  width: 62px;
}

.name-line,
.bio-line {
  background: #3b3934;
  border-radius: 5px;
  height: 9px;
  width: 78%;
}

.bio-line {
  background: #b7ada0;
  height: 5px;
  width: 100%;
}

.bio-line.short {
  width: 64%;
}

.route-line {
  border-color: var(--blue);
  border-style: dashed;
  border-width: 2px 2px 0 0;
  display: block;
  height: 70px;
  left: 39%;
  opacity: 0.58;
  position: absolute;
  width: 90px;
}

.route-line::after {
  background: var(--blue);
  border-radius: 50%;
  content: "";
  height: 7px;
  position: absolute;
  right: -4px;
  top: -4px;
  width: 7px;
}

.route-line.r1 {
  top: 20%;
  transform: rotate(-16deg);
}

.route-line.r2 {
  top: 40%;
  transform: rotate(1deg);
}

.route-line.r3 {
  top: 58%;
  transform: rotate(13deg);
}

.route-line.r4 {
  top: 71%;
  transform: rotate(27deg);
}

.door-card {
  background: #fffaf2;
  border: 1px solid #cfc2b0;
  border-radius: 5px 5px 2px 2px;
  box-shadow: 0 13px 25px rgb(71 56 38 / 14%);
  display: grid;
  height: 78px;
  padding: 0.8rem;
  position: absolute;
  right: 10%;
  width: 126px;
  z-index: 2;
}

.door-card b {
  color: #665e55;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.door-card i {
  align-self: end;
  background: #bcb1a2;
  height: 6px;
  width: 62%;
}

.door-card::after {
  background: var(--orange);
  border-radius: 50%;
  bottom: 10px;
  content: "";
  height: 6px;
  position: absolute;
  right: 9px;
  width: 6px;
}

.door-card.work {
  border-top: 7px solid var(--orange);
  top: 12%;
  transform: rotate(2deg);
}

.door-card.shop {
  border-top: 7px solid var(--yellow);
  top: 34%;
  transform: rotate(-2deg);
}

.door-card.live {
  border-top: 7px solid var(--violet);
  top: 56%;
  transform: rotate(1deg);
}

.door-card.note {
  border-top: 7px solid var(--blue);
  top: 77%;
  transform: rotate(-3deg);
}

.studio-floor {
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgb(91 72 51 / 7%) 43px 45px), #ddd0bd;
  bottom: 0;
  height: 12%;
  inset-inline: 0;
  position: absolute;
}

.maker {
  background: var(--paper-up);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 6rem;
  overflow: hidden;
}

.maker-heading {
  align-items: center;
  background: linear-gradient(90deg, rgb(228 111 69 / 8%), transparent 50%), #f7f1e7;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
}

.maker-heading h2,
.result-dialog h2 {
  margin: 0;
}

.maker-heading > div > p:last-child {
  color: var(--ink-soft);
  font-size: 0.8rem;
  margin-bottom: 0;
}

.section-kicker {
  font-size: 0.56rem;
  margin-bottom: 0.35rem;
}

.key-illustration,
.result-key,
.edit-key,
.shield-key {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.key-illustration i,
.result-key i,
.edit-key i,
.shield-key i {
  border: 3px solid var(--blue);
  border-radius: 50%;
  display: inline-block;
  height: 26px;
  position: relative;
  width: 26px;
}

.key-illustration i::after,
.result-key i::after,
.edit-key i::after,
.shield-key i::after {
  background: var(--blue);
  content: "";
  height: 4px;
  left: 20px;
  position: absolute;
  top: 8px;
  width: 32px;
}

.key-illustration i::before,
.result-key i::before,
.edit-key i::before,
.shield-key i::before {
  border-bottom: 4px solid var(--blue);
  border-left: 4px solid var(--blue);
  content: "";
  height: 8px;
  left: 43px;
  position: absolute;
  top: 8px;
  width: 8px;
}

.key-illustration span {
  color: #857d72;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-left: 1.5rem;
}

.maker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.profile-form {
  padding: 1.8rem;
}

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

.form-grid label {
  display: grid;
  gap: 0.42rem;
}

.form-grid label > span,
.field-label,
.result-dialog label > span,
.report-dialog label > span {
  color: #6e675e;
  font-size: 0.7rem;
  font-weight: 750;
}

.span-two {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  background: #fffdf8;
  border: 1px solid #cfc5b8;
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

textarea {
  line-height: 1.65;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(63 124 135 / 38%);
  outline-offset: 2px;
}

.link-editor {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.42rem;
}

.link-rows {
  display: grid;
  gap: 0.55rem;
}

.link-row {
  align-items: center;
  background: #f5efe5;
  border: 1px solid #d8cdbf;
  border-radius: 9px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 20px 110px minmax(110px, 0.8fr) minmax(180px, 1.2fr) 32px 32px 32px;
  padding: 0.55rem;
}

.drag-handle {
  color: #9f968b;
  font-size: 1.15rem;
  text-align: center;
}

.link-row input,
.link-row select {
  background: #fff;
  min-height: 38px;
  padding: 0.5rem 0.58rem;
}

.row-move,
.row-remove {
  background: #fffaf2;
  border: 1px solid #d4c9bb;
  border-radius: 7px;
  color: #716a61;
  height: 32px;
  padding: 0;
}

.row-remove {
  color: #ad4d3b;
}

.link-editor > .quiet-button {
  justify-self: start;
}

.link-editor > small {
  color: #8a8176;
  font-size: 0.65rem;
}

.form-state {
  color: #ad4d35;
  font-size: 0.76rem;
  min-height: 1.2rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-preview {
  align-content: center;
  align-self: stretch;
  background:
    radial-gradient(circle at 78% 12%, rgb(255 255 255 / 18%), transparent 11rem), #32302d;
  color: #fff;
  display: grid;
  justify-items: center;
  min-height: 600px;
  padding: 3rem 2rem;
  text-align: center;
  transition: background 180ms ease;
}

.preview-avatar,
.public-avatar {
  align-items: center;
  background: var(--orange);
  border: 3px solid rgb(255 255 255 / 46%);
  border-radius: 46% 46% 39% 39%;
  box-shadow: 0 14px 28px rgb(0 0 0 / 16%);
  display: flex;
  font-size: 1.45rem;
  font-weight: 900;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.preview-kicker,
.public-kicker {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 1.1rem 0 0.5rem;
  opacity: 0.65;
}

.profile-preview h2 {
  font-size: 1.25rem;
  margin: 0;
}

.preview-bio {
  font-size: 0.75rem;
  line-height: 1.75;
  max-width: 300px;
  min-height: 2.7em;
  opacity: 0.76;
}

.preview-links {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  max-width: 300px;
  width: 100%;
}

.preview-links span {
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-left: 5px solid var(--orange);
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 750;
  padding: 0.8rem;
}

.preview-links .kind-shop {
  border-left-color: var(--yellow);
}

.preview-links .kind-social {
  border-left-color: var(--blue-soft);
}

.preview-links .kind-video {
  border-left-color: var(--violet);
}

.preview-links .kind-contact {
  border-left-color: #8daf8f;
}

.theme-paper.profile-preview {
  background: #eee4d3;
  color: #302b26;
}

.theme-paper .preview-links span {
  background: #fffaf0;
  border-color: #cfc1ac;
}

.theme-forest.profile-preview {
  background: #2f4a3c;
}

.theme-night.profile-preview {
  background: radial-gradient(circle at 30% 20%, rgb(105 68 141 / 34%), transparent 16rem), #171827;
}

dialog {
  background: var(--paper-up);
  border: 1px solid #cbbfae;
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
  max-height: calc(100vh - 2rem);
  max-width: 640px;
  padding: 2rem;
  width: calc(100% - 2rem);
}

dialog::backdrop {
  backdrop-filter: blur(7px);
  background: rgb(44 37 30 / 56%);
}

.result-key {
  height: 45px;
  margin-bottom: 1rem;
}

.result-dialog > p:not(.section-kicker, .key-warning) {
  color: var(--ink-soft);
  line-height: 1.7;
}

.result-dialog label {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.copy-row input {
  border-radius: 8px 0 0 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}

.copy-row button {
  background: var(--blue);
  border: 0;
  border-radius: 0 8px 8px 0;
  color: #fff;
  font-weight: 750;
  min-width: 78px;
}

.secret-url {
  background: #f2e8d9;
  border: 1px solid #dbc8ad;
  border-radius: 9px;
  padding: 0.9rem;
}

.key-warning {
  color: #a34232;
  font-size: 0.72rem;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.edit-page,
.simple-page {
  min-height: 72vh;
  padding: 4rem 0 6rem;
}

.page-intro {
  align-items: center;
  display: flex;
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.page-intro > div:last-child > p:last-child {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 0;
}

.edit-key,
.shield-key {
  flex: 0 0 auto;
  margin-right: 1.6rem;
}

.editor-status {
  background: #e7f0eb;
  border: 1px solid #b9cec0;
  border-radius: 9px;
  color: #3d634a;
  margin-bottom: 1rem;
  padding: 1rem;
}

.editor-status.error {
  background: #f4e4e0;
  border-color: #dfb3a8;
  color: #934131;
}

.editor-status.warning {
  background: #f5ead6;
  border-color: #ddc598;
  color: #84601d;
}

.editor-grid {
  background: var(--paper-up);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.danger-zone {
  align-items: center;
  border-top: 1px solid #e0bcb3;
  display: flex;
  justify-content: space-between;
  margin: 0 1.8rem 1.8rem;
  padding-top: 1.2rem;
}

.danger-zone strong,
.danger-zone span {
  display: block;
}

.danger-zone span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  margin-top: 0.25rem;
}

.public-shortcut {
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
  bottom: 1.2rem;
  color: inherit;
  font-size: 0.72rem;
  justify-self: center;
  padding: 0.7rem 1rem;
  position: sticky;
  text-decoration: none;
}

.public-profile {
  align-items: center;
  background: radial-gradient(circle at 16% 8%, rgb(228 111 69 / 19%), transparent 24rem), #302d2b;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
  padding: 4rem 1rem 2rem;
}

.public-card {
  display: flex;
  flex-direction: column;
  max-width: 590px;
  width: 100%;
}

.public-avatar {
  align-self: center;
  height: 88px;
  width: 88px;
}

.public-kicker {
  text-align: center;
}

.public-card h1 {
  text-align: center;
}

.public-bio {
  align-self: center;
  line-height: 1.8;
  max-width: 470px;
  opacity: 0.78;
  text-align: center;
  white-space: pre-wrap;
}

.public-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.public-links a {
  align-items: center;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 21%);
  border-radius: 11px;
  color: inherit;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 46px 1fr auto;
  min-height: 74px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.public-links a:hover {
  background: rgb(255 255 255 / 13%);
  transform: translateY(-2px);
}

.public-links a > span:nth-child(2) {
  min-width: 0;
}

.public-links small,
.public-links strong,
.public-links em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-links small {
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  opacity: 0.6;
}

.public-links strong {
  font-size: 0.9rem;
  margin-block: 0.15rem;
}

.public-links em {
  font-size: 0.58rem;
  font-style: normal;
  opacity: 0.5;
}

.public-links b {
  font-size: 1.1rem;
  opacity: 0.62;
}

.link-symbol {
  align-items: center;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.link-symbol i {
  border: 2px solid #fff;
  border-radius: 3px;
  height: 17px;
  position: relative;
  width: 19px;
}

.link-symbol i::after {
  background: #fff;
  content: "";
  height: 2px;
  left: 3px;
  position: absolute;
  top: 6px;
  width: 9px;
}

.link-symbol.shop {
  background: var(--yellow);
}

.link-symbol.social {
  background: var(--blue);
}

.link-symbol.video {
  background: var(--violet);
}

.link-symbol.contact {
  background: var(--green);
}

.link-symbol.other {
  background: #81786c;
}

.public-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  max-width: 590px;
  padding-top: 4rem;
  width: 100%;
}

.public-footer > a {
  align-items: center;
  display: flex;
  font-size: 0.68rem;
  gap: 0.65rem;
  opacity: 0.68;
  text-decoration: none;
}

.public-footer button {
  background: none;
  border: 0;
  color: inherit;
  font-size: 0.62rem;
  opacity: 0.48;
}

.public-profile.theme-paper {
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgb(80 65 46 / 5%) 32px), #eee4d3;
  color: #302b26;
}

.theme-paper .public-links a {
  background: #fffaf0;
  border-color: #cfc1ac;
}

.public-profile.theme-forest {
  background: radial-gradient(circle at 20% 8%, rgb(134 173 138 / 19%), transparent 24rem), #294237;
}

.public-profile.theme-night {
  background:
    radial-gradient(circle at 20% 10%, rgb(120 69 164 / 38%), transparent 25rem),
    radial-gradient(circle at 90% 48%, rgb(32 143 170 / 22%), transparent 20rem), #151522;
}

.report-dialog {
  max-width: 480px;
}

.report-dialog > p:not(.section-kicker, .form-state) {
  color: var(--ink-soft);
  line-height: 1.7;
}

.report-dialog label {
  display: grid;
  gap: 0.4rem;
  margin-block: 1rem;
}

.mini-route {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  height: 64px;
}

.mini-route i {
  background: var(--orange);
  border-radius: 5px 5px 0 0;
  display: block;
  height: 56px;
  width: 26px;
}

.mini-route i:nth-child(2) {
  background: var(--blue);
  margin-top: 8px;
}

.mini-route i:nth-child(3) {
  background: var(--yellow);
  margin-top: 3px;
}

.guide-route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.guide-route article {
  border-top: 1px solid var(--line);
  padding: 2rem 1.4rem 2rem 0;
}

.guide-route article > span {
  color: var(--orange-deep);
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
}

.guide-route h2,
.guide-boundary h2,
.privacy-grid h2,
.privacy-details h2 {
  font-size: 1rem;
}

.guide-route p,
.guide-boundary p,
.privacy-grid p,
.privacy-details {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.8;
}

.guide-boundary {
  align-items: center;
  background: var(--paper-up);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.1fr 0.9fr;
  margin-top: 3rem;
  overflow: hidden;
  padding: 1.5rem;
}

.guide-boundary .studio-scene {
  min-height: 320px;
}

.shield-key {
  height: 62px;
  width: 82px;
}

.shield-key::before {
  border: 3px solid var(--green);
  border-radius: 45% 45% 55% 55%;
  content: "";
  height: 58px;
  position: absolute;
  width: 50px;
}

.shield-key i {
  border-color: var(--orange);
  margin-left: 30px;
  transform: scale(0.7);
  z-index: 1;
}

.shield-key i::after,
.shield-key i::before {
  background: var(--orange);
  border-color: var(--orange);
}

.privacy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.privacy-grid article {
  background: var(--paper-up);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 230px;
  padding: 1.5rem;
}

.privacy-icon {
  border: 2px solid var(--orange);
  display: block;
  height: 34px;
  margin-bottom: 1.5rem;
  width: 44px;
}

.privacy-icon.public {
  border-radius: 3px;
  box-shadow: inset 12px 0 var(--yellow);
}

.privacy-icon.key {
  border-color: var(--blue);
  border-radius: 50%;
  width: 34px;
}

.privacy-icon.report {
  border-color: #b65f4d;
  border-radius: 50% 50% 7px 7px;
}

.privacy-details {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 2rem;
}

.privacy-details li {
  margin-block: 0.5rem;
}

.not-found {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(380px, 1fr) 0.75fr;
  min-height: 75vh;
}

.not-found .studio-scene {
  min-height: 340px;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto 1fr;
  padding-block: 2rem 3rem;
}

footer p {
  font-size: 0.72rem;
  margin: 0;
}

footer nav {
  justify-content: flex-end;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .hero-copy {
    max-width: 620px;
  }

  .studio-scene {
    margin-inline: auto;
    max-width: 680px;
    width: 100%;
  }

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

  .profile-preview {
    min-height: 480px;
  }

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

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .link-row {
    grid-template-columns: 24px 1fr 32px 32px 32px;
  }

  .link-kind,
  .link-label,
  .link-url {
    grid-column: 2 / -1;
  }

  .drag-handle {
    grid-row: 1 / 4;
  }

  .row-move,
  .row-remove {
    grid-row: 4;
  }

  .row-move {
    grid-column: 3;
  }

  .row-move + .row-move {
    grid-column: 4;
  }

  .row-remove {
    grid-column: 5;
  }

  .privacy-grid,
  .guide-boundary,
  .not-found {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header nav {
    gap: 0.8rem;
  }

  .site-header nav a {
    font-size: 0.7rem;
  }

  .hero {
    min-height: auto;
    padding-block: 2rem 3rem;
  }

  .studio-scene {
    min-height: 330px;
  }

  .profile-card {
    height: 145px;
    padding: 0.9rem;
    width: 145px;
  }

  .avatar-shape {
    height: 44px;
    width: 44px;
  }

  .door-card {
    height: 62px;
    right: 6%;
    width: 100px;
  }

  .route-line {
    left: 38%;
    width: 65px;
  }

  .maker {
    border-radius: 12px;
    width: calc(100% - 1rem);
  }

  .maker-heading {
    padding: 1.2rem;
  }

  .key-illustration {
    display: none;
  }

  .profile-form {
    padding: 1.2rem;
  }

  .form-grid,
  .guide-route {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: 1;
  }

  .page-intro {
    align-items: flex-start;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }

  .copy-row input,
  .copy-row button {
    border-radius: 8px;
  }

  .copy-row button {
    min-height: 40px;
  }

  .result-actions,
  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .danger-zone {
    gap: 1rem;
  }

  .public-profile {
    padding-top: 2.5rem;
  }

  .public-footer {
    gap: 1rem;
  }

  footer nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  footer,
  .public-footer,
  .public-shortcut,
  .form-actions,
  .danger-zone {
    display: none;
  }

  body,
  .public-profile {
    background: #fff !important;
    color: #111 !important;
  }

  .public-profile {
    min-height: 0;
    padding: 1rem;
  }

  .public-links a {
    border: 1px solid #bbb;
    color: #111;
  }
}
