/* Hallmark · shape: app screen · genre: editorial · theme: Mellow Photos · paper: light · posture: calm · v2.0.0 */
/* Studio photography leads to three short destinations in a single view. */

:root {
  --color-backdrop: #101822;
  --color-photo-ink: #f8f7f4;
  --color-photo-shade: #091320;
  --color-paper: #f5f4f1;
  --color-ink: #18222d;
  --color-muted: #535d65;
  --color-line: #d6d7d7;
  --color-primary: #1c334b;
  --color-primary-hover: #294866;
  --color-action-hover: #e7eaf0;
  --color-focus: #245a98;
  --font-head: "Iowan Old Style", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-panel: 1.25rem;
  --radius-action: 0.625rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  background: var(--color-backdrop);
  color: var(--color-photo-ink);
  font: 1rem/1.45 var(--font-body);
}

.hub {
  display: grid;
  width: min(100%, 49rem);
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  min-height: 25rem;
  border-radius: var(--radius-panel);
  background: var(--color-paper);
  color: var(--color-ink);
  overflow: clip;
}

.identity {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-photo-shade);
  color: var(--color-photo-ink);
}

.identity::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 32% 0 0;
  background: linear-gradient(to bottom, transparent, var(--color-photo-shade));
}

.portrait {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  min-width: 0;
  font: 400 clamp(2.125rem, 5.2vw, 3.75rem)/1.02 var(--font-head);
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.links {
  display: grid;
  align-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-action);
  color: inherit;
  background: transparent;
  font: 600 0.875rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}

.action[hidden] {
  display: none;
}

.action:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.action:active {
  transform: translateY(1px);
}

.action:disabled,
.action[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.65;
}

.portfolio {
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding-inline: 1rem;
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-photo-ink);
  font-size: 1.25rem;
}

.arrow {
  flex: 0 0 0.65rem;
  height: 0.65rem;
  margin-right: 0.25rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.telegram {
  padding-block: 1.25rem;
}

h2 {
  font-size: 1.125rem;
  font-weight: 620;
}

.username {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--color-muted);
  user-select: text;
}

.telegram-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.copy-status[data-visible] {
  position: static;
  width: auto;
  height: auto;
  margin-top: 0.625rem;
  clip-path: none;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.personal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-line);
}

.personal span:last-child {
  color: var(--color-muted);
  font-size: 0.875rem;
}

@media (hover: hover) {
  .portfolio:hover {
    background: var(--color-primary-hover);
  }

  .secondary:hover {
    background: var(--color-action-hover);
  }
}

@media (max-width: 38rem) and (orientation: portrait), (max-width: 34rem) {
  .hub {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .identity {
    align-items: center;
    gap: 1rem;
    min-height: 8.5rem;
    padding: 1rem;
  }

  .identity::after {
    content: none;
  }

  .portrait {
    position: static;
    flex: 0 0 clamp(4.25rem, 22vw, 6rem);
    width: clamp(4.25rem, 22vw, 6rem);
    height: 6.5rem;
    border-radius: var(--radius-action);
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (orientation: landscape) and (max-height: 34rem) {
  .hub {
    min-height: 0;
  }

  .links {
    padding-block: 1rem;
  }

  .telegram {
    padding-block: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action {
    transition: none;
  }

  .action:active {
    transform: none;
  }
}
