/* Friends: one quiet application desk, not a second page of generic controls. */
.is-inner .friend-apply {
  max-width: 75ch;
  margin-top: clamp(4.5rem, 9vw, 8rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.friend-apply-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.friend-apply h2 {
  margin: 0;
  color: var(--ink);
  font: 900 clamp(2rem, 4vw, 3.45rem)/0.94 var(--display);
  letter-spacing: 0;
}
.friend-apply-head p {
  max-width: 27rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
}
.friend-apply-result {
  margin: 0 0 1.4rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.65;
}
.friend-apply-result.is-error {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 54%, var(--line));
}
.friend-apply form {
  display: grid;
  gap: clamp(1.15rem, 2.3vw, 1.7rem);
  padding: 0;
}
.friend-apply .friend-form-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem clamp(1rem, 2.5vw, 1.7rem);
  margin: 0;
}
.friend-apply .friend-form-identity label:nth-child(3) {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.85rem);
}
.friend-apply label {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}
.friend-apply input,
.friend-apply select {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.05rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--mist) 13%, transparent);
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition:
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease),
    opacity 0.22s var(--ease);
}
.friend-apply select {
  cursor: pointer;
}
.friend-apply input::placeholder {
  color: color-mix(in srgb, var(--ink) 53%, var(--ocean));
}
.friend-apply input:focus,
.friend-apply select:focus {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--mist) 26%, transparent);
}
.friend-form-description {
  padding-top: 0.2rem;
}
.friend-avatar-options {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 2.5vw, 1.7rem);
  padding: clamp(1.15rem, 2.5vw, 1.7rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.friend-avatar-options [hidden] {
  display: none;
}
.friend-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.15rem;
}
.friend-apply button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin: 0;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--signal);
  border-radius: 0;
  background: var(--signal);
  color: var(--ocean);
  font: 700 0.84rem/1 var(--display);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    background-color 0.22s var(--ease),
    color 0.22s var(--ease);
}
.friend-apply button:hover,
.friend-apply button:focus-visible {
  transform: translateY(-2px);
  background: transparent;
  color: var(--signal);
  outline: 0;
}
.friend-apply button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.friend-apply button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}
.friend-network > a:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
@media (max-width: 900px) {
  .friend-apply .friend-form-identity {
    grid-template-columns: 1fr;
  }
  .friend-apply .friend-form-identity label:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
}
@media (max-width: 620px) {
  .friend-apply-head {
    display: grid;
    gap: 0.75rem;
  }
  .friend-avatar-options {
    grid-template-columns: 1fr;
  }
  .friend-apply {
    margin-top: 4.25rem !important;
  }
  .friend-apply h2 {
    font-size: clamp(2rem, 11vw, 3.05rem);
  }
}

/* About ends in a continuous guestbook track, not an inherited article comment card. */
.about-shell > .about-comments {
  grid-column: 2;
  min-width: 0;
  width: min(75ch, 100%);
  margin: clamp(5.5rem, 11vw, 10rem) 0 0;
  padding-top: clamp(2.3rem, 5vw, 4.25rem);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.about-comments > h2,
.about-comments .respond h2 {
  margin: 0;
  color: var(--ink);
  font: 900 clamp(2rem, 4vw, 3.5rem)/0.94 var(--display);
  letter-spacing: 0;
}
.about-comments > h2 {
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}
.about-comments .comment-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.about-comments .comment-body {
  margin: 0;
}
.about-comments .comment-body > article {
  padding: clamp(1.2rem, 2.7vw, 1.8rem) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.about-comments .comment-body header {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.8rem;
  row-gap: 0.18rem;
  color: var(--ink);
  font-size: 0.8rem;
}
.about-comments .comment-body header img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.about-comments .comment-body header strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.about-comments .comment-body header time {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font: 0.68rem/1.2 var(--mono);
  letter-spacing: 0.035em;
}
.about-comments .comment-body header a {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--signal);
  font-size: 0.76rem;
  text-decoration: none;
}
.about-comments .comment-body header a:hover,
.about-comments .comment-body header a:focus-visible {
  color: var(--ink);
  outline: 0;
}
.about-comments .comment-content {
  max-width: 68ch;
  margin: 0.95rem 0 0 3.2rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.82;
  overflow-wrap: anywhere;
}
.about-comments .comment-children {
  margin: 0 0 0 clamp(1.15rem, 4vw, 3.2rem);
  padding-left: clamp(0.9rem, 2.4vw, 1.45rem);
  border-left: 1px solid var(--line);
}
.about-comments .comment-children .comment-body > article {
  padding-top: 1.2rem;
}
.about-comments .respond {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.about-comments .respond h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}
.about-comments .cancel-comment-reply {
  display: inline-flex;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.about-comments #comment-form {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.55rem);
  margin-top: clamp(1.5rem, 3vw, 2.1rem);
  padding-top: clamp(1.35rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.about-comments .comment-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  padding: 0;
  margin: 0;
  border: 0;
}
.about-comments .comment-identity legend {
  width: 100%;
  margin: 0 0 0.1rem;
  color: var(--ink);
  font: 700 0.82rem/1 var(--display);
  letter-spacing: 0.02em;
}
.about-comments .comment-identity label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
}
.about-comments .comment-identity input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  accent-color: var(--ink);
}
.about-comments .comment-identity-note {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.about-comments .respond .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem clamp(1rem, 2.5vw, 1.5rem);
  margin: 0;
}
.about-comments .respond .form-grid label:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.75rem);
}
.about-comments .respond #comment-form > label,
.about-comments .respond .form-grid label {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}
.about-comments .required-mark {
  color: var(--ink);
}
.about-comments .respond input,
.about-comments .respond textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--mist) 13%, transparent);
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition:
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}
.about-comments .respond input {
  min-height: 3.05rem;
  padding: 0.7rem 0.85rem;
}
.about-comments .respond textarea {
  min-height: 10rem;
  padding: 0.85rem;
  resize: vertical;
  line-height: 1.7;
}
.about-comments .respond input::placeholder,
.about-comments .respond textarea::placeholder {
  color: color-mix(in srgb, var(--ink) 53%, var(--ocean));
}
.about-comments .respond input:focus,
.about-comments .respond textarea:focus {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--mist) 26%, transparent);
}
.about-comments .respond button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  justify-self: start;
  min-height: 3rem;
  margin: 0;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--signal);
  border-radius: 0;
  background: var(--signal);
  color: var(--ocean);
  font: 700 0.84rem/1 var(--display);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    background-color 0.22s var(--ease),
    color 0.22s var(--ease);
}
.about-comments .respond button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.about-comments .respond button:hover,
.about-comments .respond button:focus-visible {
  transform: translateY(-2px);
  background: transparent;
  color: var(--signal);
  outline: 0;
}
.about-comments .respond button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .about-shell > .about-comments {
    width: min(75ch, 100%);
    margin-top: clamp(4.5rem, 10vw, 7rem);
  }
  .about-comments .respond .form-grid {
    grid-template-columns: 1fr;
  }
  .about-comments .respond .form-grid label:last-child {
    grid-column: auto;
    max-width: none;
  }
}
@media (max-width: 560px) {
  .about-comments .comment-body header {
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    column-gap: 0.65rem;
  }
  .about-comments .comment-body header img {
    width: 2.2rem;
    height: 2.2rem;
  }
  .about-comments .comment-content {
    margin-left: 2.85rem;
  }
  .about-comments .comment-children {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
  }
  .about-comments .respond textarea {
    min-height: 8.5rem;
  }
}
