@font-face {
  font-family: Newsreader;
  src: url('/assets/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f6f0e4;
  --ink: #103d43;
  --muted: #536d68;
  --line: #d5d9c8;
  --accent: #bc522d;
  --wash: #e8eadb;
  --sun: #e9af51;
  --hill: #88a18a;
  --deep: #215851;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  scrollbar-color: #81977c var(--paper);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
/* Short account pages keep the footer at the bottom of the window. Public pages have no footer. */
body:not(.profile-public) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
body:not(.profile-public) > :is(.profile-header, .profile-main) {
  width: 100%;
}
body:not(.profile-public) > .profile-main {
  flex: 1 0 auto;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button,
input,
select,
textarea {
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5.5vw, 5.7rem);
  letter-spacing: -0.045em;
}
h2 {
  font-size: 2rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.8rem;
}
p {
  text-wrap: balance;
  line-height: 1.65;
  color: var(--muted);
}
em {
  font-weight: 400;
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.profile-skip {
  position: absolute;
  top: -80px;
  padding: 15px;
  background: var(--paper);
  z-index: 99;
}
.profile-skip:focus {
  top: 0;
}
.profile-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  padding-block-start: max(14px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 51;
  background: var(--paper);
}
.profile-wordmark {
  font-family: Newsreader, serif;
  font-size: 43px;
  font-weight: 750;
  letter-spacing: -.065em;
  text-decoration: none;
  line-height: 1;
}
.profile-powered span {
  color: var(--accent);
}
.profile-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(.5rem,2vw,1.4rem);
}
.profile-desktop-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.9rem;
}
.profile-menu-toggle {
  display: block;
  border: 0;
  background: transparent;
  width: 48px;
  height: 48px;
  position: relative;
  padding: 0;
  z-index: 51;
  color: inherit;
}
/* Both states rotate around the same optical center and retain the hit target. */
.profile-menu-toggle span {
  position: absolute;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  transform: translateY(-4.5px);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-menu-toggle span + span {
  transform: translateY(4.5px);
}
.profile-menu-toggle[aria-expanded='true'] span {
  transform: rotate(45deg);
}
.profile-menu-toggle[aria-expanded='true'] span + span {
  transform: rotate(-45deg);
}
.profile-menu {
  position: fixed;
  inset: 0;
  width: var(--profile-menu-width, 100vw);
  height: 100dvh;
  background: radial-gradient(ellipse at 95% 18%, #e9af5118, transparent 45%), var(--paper);
  z-index: 50;
  padding: 108px 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.profile-menu-inner {
  width: 100%;
  max-width: 680px;
  min-height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
}
.profile-menu-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 24px;
}
.profile-menu-welcome h2 {
  font-size: clamp(1.9rem, 7.5vw, 2.7rem);
  margin: 0;
  line-height: 1.1;
}
.profile-menu-scene {
  width: 112px;
  flex-shrink: 0;
  overflow: visible;
}
.profile-menu-bird {
  transform-origin: 54px 89px;
  animation: profile-menu-perch 4.5s ease-in-out;
}
.profile-menu-sprig {
  transform-origin: 90px 84px;
  animation: profile-menu-sway 4.5s ease-in-out;
}
.profile-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.profile-menu-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  min-height: 104px;
  gap: 12px;
  padding: 17px 14px;
  border: 1px solid #d5d9c899;
  border-radius: 19px;
  background: #fffdf780;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
  transition:
    background 0.2s,
    transform 0.2s;
}
.profile-menu-card > svg {
  width: 24px;
  height: 24px;
}
.profile-menu-card > span {
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.profile-menu-card[aria-current] { outline: 1px solid var(--deep); outline-offset: -2px; }
.profile-menu-links > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.profile-menu-card-primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.profile-menu-card:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .profile-menu-card:hover {
    background: var(--wash);
    transform: translateY(-2px);
  }
  .profile-menu-card-primary:hover {
    background: var(--deep);
  }
}
.profile-menu-footer {
  margin-top: auto;
  padding-top: 24px;
}
.profile-menu-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.profile-menu-footer form {
  margin: 0;
}
.profile-menu-sign-in,
.profile-menu-footer form button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
}
.profile-menu-sign-in svg,
.profile-menu-footer form svg {
  width: 19px;
  height: 19px;
}
.profile-menu-sign-in {
  text-decoration: none;
}
.profile-menu-socials {
  display: flex;
  gap: 8px;
}
.profile-menu-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wash);
  transition:
    background 0.2s,
    transform 0.2s;
}
.profile-menu-socials a:active {
  transform: scale(0.92);
}
.profile-menu-socials svg {
  width: 21px;
  height: 21px;
}
.profile-menu-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 9px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
}
@keyframes profile-menu-perch {
  0%,
  40%,
  100% {
    transform: rotate(0);
  }
  47%,
  57% {
    transform: rotate(-5deg);
  }
  65% {
    transform: rotate(2deg);
  }
}
@keyframes profile-menu-sway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
@media (max-height: 740px) {
  .profile-menu {
    padding-top: 98px;
  }
  .profile-menu-welcome {
    margin-bottom: 16px;
  }
  .profile-menu-scene {
    width: 86px;
  }
  .profile-menu-welcome h2 {
    font-size: 1.9rem;
  }
  .profile-menu-card {
    min-height: 87px;
    padding: 12px 14px;
    gap: 9px;
  }
  .profile-menu-footer {
    padding-top: 18px;
  }
}
body.profile-menu-open {
  overflow: hidden;
}
.profile-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 28px 72px;
}
.profile-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 8%;
  padding: 30px 0 90px;
}
.profile-hero-copy > p {
  max-width: 440px;
  font-size: 1.12rem;
}
.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 23px;
  min-height: 52px;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.92rem;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.profile-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #103d4312;
}
.profile-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.profile-hint {
  font-size: 0.8rem !important;
  line-height: 1.55 !important;
  margin: 16px 0;
  color: var(--muted);
}
.profile-sample {
  max-width: 390px;
  width: 100%;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  text-align: center;
  padding: 0 24px 26px;
  overflow: hidden;
  background: #faf7ee;
  box-shadow: 0 18px 55px #2649340d;
  transform: rotate(2deg);
}
.profile-sample-art {
  margin: 0 -24px -32px;
  height: 170px;
  background: #d9e7e3;
}
.profile-sample-art svg {
  width: 100%;
  height: 100%;
}
.profile-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  border: 6px solid var(--paper);
  font-family: Newsreader, serif;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 16px;
}
.profile-sample h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.profile-sample p {
  font-size: 0.9rem;
}
.profile-sample-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--wash);
  padding: 16px 13px;
  border-radius: 12px;
  margin-top: 10px;
  font-size: 0.8rem;
  text-align: left;
}
.profile-sample-handle {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 25px;
}
.profile-plans {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.profile-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.profile-plan-grid article {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.profile-plan-grid article:first-child {
  background: var(--wash);
}
.profile-plan-grid h3 {
  margin-bottom: 24px;
}
.profile-price {
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.profile-price span {
  font-size: 0.8rem;
  margin-left: 4px;
}
.profile-plan-grid p:not(.profile-price) {
  font-size: 0.82rem;
}
.profile-plan-grid ul {
  padding-left: 20px;
  line-height: 1.7;
  font-size: 0.85rem;
  flex: 1;
}
.profile-plan-pending {
  margin: 18px 0 0;
}
.profile-auth {
  max-width: 470px;
  margin: 40px auto 100px;
}
.profile-auth h1 {
  font-size: 3.3rem;
}
.profile-auth form {
  margin: 28px 0;
}
.profile-auth form > .profile-button {
  width: 100%;
  margin-top: 20px;
}
.profile-code-feedback:empty { margin: 0; }
.profile-main label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 9px;
  line-height: 1.5;
}
.profile-main input:not([type='hidden']):not([type='checkbox']),
.profile-main select,
.profile-main textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffcf4;
  padding: 14px 15px;
  min-height: 50px;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 20px;
  box-shadow: none;
}
.profile-main textarea {
  resize: vertical;
  min-height: 90px;
}
.profile-main select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23103d43' stroke-width='1.5'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.profile-check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 !important;
}
.profile-check input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: var(--ink);
  margin: 2px 0;
}
.profile-username-panel {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #faf7ee;
}
.profile-username-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}
.profile-username-panel > summary::-webkit-details-marker {
  display: none;
}
.profile-username-panel > summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.profile-username-identity {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.profile-username-mark {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--wash);
  font-size: 1.2rem;
}
.profile-username-address {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.6;
}
.profile-username-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 600;
}
.profile-username-chevron {
  transition: transform 0.18s ease;
}
.profile-username-panel[open] .profile-username-chevron {
  transform: rotate(180deg);
}
.profile-username-content {
  border-top: 1px solid var(--line);
  padding: 22px;
}
.profile-username-content > *,
.profile-username-content form {
  max-width: 560px;
}
.profile-username-content h2 {
  font-size: 1.8rem;
  margin: 0 0 12px;
  text-wrap: balance;
}
.profile-username-content p {
  text-wrap: pretty;
  font-size: 0.9rem;
}
.profile-username-availability {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .profile-username-panel > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
  }
  .profile-username-action {
    align-self: flex-end;
  }
  .profile-username-content {
    padding: 20px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-username-chevron {
    transition: none;
  }
}
.profile-username-field {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid var(--line);
  background: #fffcf4;
  border-radius: 12px;
  padding-left: 15px;
}
.profile-username-field input {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding-left: 0 !important;
  min-width: 0;
}
.profile-username-field span {
  white-space: nowrap;
}
.profile-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 15px 0 35px;
}
.profile-editor-heading h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}
.profile-editor-heading p {
  margin: 0;
}
.profile-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.profile-panel {
  padding: 28px;
  background: #faf7ee;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-bottom: 22px;
}
.profile-panel h2 {
  font-size: 1.8rem;
}
.profile-panel p {
  font-size: 0.88rem;
}
.profile-field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.profile-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.profile-section-heading h2 {
  margin: 0;
}
.profile-icon-button,
.profile-link-tools button,
.profile-contact button {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
}
.profile-icon-button {
  font-size: 1.5rem;
}
.profile-link-editor {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 16px;
  margin: 20px 0 24px;
}
.profile-link-editor legend {
  padding: 0 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.profile-link-editor input {
  margin: 6px 0 18px !important;
}
.profile-link-editor .profile-check input {
  margin: 2px 0 !important;
}
.profile-link-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.profile-link-tools {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.profile-link-tools button:last-child {
  margin-left: auto;
  font-size: 0.8rem;
  padding: 10px;
}
.profile-editor-save {
  display: flex;
  gap: 12px;
  position: sticky;
  bottom: 0;
  padding: 15px 0 max(15px, env(safe-area-inset-bottom));
  background: var(--paper);
  z-index: 2;
}
.profile-editor-save > * {
  flex: 1;
  padding: 15px 12px;
  gap: 12px;
}
.profile-notice {
  padding: 18px;
  background: var(--wash);
  border-radius: 14px;
}
.profile-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.profile-contact button {
  padding: 8px;
  font-size: 0.75rem;
}
.profile-text-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
  text-decoration: underline;
}
.profile-theme-blueberry {
  --paper: #eef0f8;
  --wash: #dfe3f2;
  --ink: #313759;
  --accent: #636eb0;
  --hill: #929ac0;
  --deep: #515981;
}
.profile-theme-harvest {
  --paper: #fcf0df;
  --wash: #f2ddc1;
  --ink: #6e3528;
  --accent: #ba592e;
  --hill: #c9955e;
  --deep: #955636;
}
.profile-theme-pine {
  --paper: #eaf0e6;
  --wash: #d6e0cb;
  --ink: #264a3a;
  --accent: #687e48;
  --hill: #91a77f;
  --deep: #3d6d52;
}
/* A reusable dark theme, drawn from Standard Magic's ink and purple palette. */
:root:has(body.profile-theme-midnight) {
  background: #111118;
  scrollbar-color: #b68cff #111118;
  color-scheme: dark;
}
.profile-theme-midnight {
  --paper: #111118;
  --wash: #211c30;
  --ink: #f4f7ff;
  --muted: #c5bfd6;
  --line: #625973;
  --accent: #b68cff;
  --sun: #b68cff;
  --hill: #5a46ff;
  --deep: #32264e;
  color: var(--ink);
  background-color: #050507;
  background-image:
    radial-gradient(1px 1px at 21px 33px, #f4f7ff99 60%, transparent 100%),
    radial-gradient(1px 1px at 87px 113px, #b68cff88 60%, transparent 100%),
    radial-gradient(1px 1px at 137px 57px, #f4f7ff66 60%, transparent 100%);
  background-size: 197px 211px, 283px 269px, 347px 313px;
  color-scheme: dark;
  min-height: 100svh;
  scrollbar-color: var(--accent) var(--paper);
}
html:has(.profile-theme-midnight) { background: #050507; }
.profile-theme-midnight .profile-featured,
.profile-theme-midnight .profile-subscribe .profile-button {
  background: #5a46ff;
  border-color: var(--accent);
  color: #ffffff;
}
.profile-theme-midnight .profile-link:hover {
  border-color: var(--accent);
}
.profile-theme-midnight .profile-wallpaper:after {
  background: linear-gradient(#11111888, #111118dd);
}
.profile-theme-midnight:has(.profile-wallpaper) .profile-page {
  box-shadow: 0 16px 64px #05050780;
}
.profile-theme-midnight .profile-main input:not([type='hidden']):not([type='checkbox']),
.profile-theme-midnight .profile-main select,
.profile-theme-midnight .profile-main textarea {
  background-color: var(--wash);
  color: var(--ink);
}
.profile-theme-midnight .profile-main select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23f4f7ff' stroke-width='1.5'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
}
.profile-theme-midnight input::placeholder,
.profile-theme-midnight textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.profile-public .profile-main {
  max-width: 540px;
  padding: 28px 20px 45px;
}
.profile-page {
  border-radius: 30px;
  overflow: hidden;
  background: var(--paper);
}
.profile-page-art {
  height: 195px;
  background: var(--wash);
}
.profile-page-art svg {
  width: 100%;
  height: 100%;
}
.profile-sun {
  fill: var(--sun);
}
.profile-hill-back {
  fill: var(--hill);
}
.profile-hill-front {
  fill: var(--deep);
}
.profile-bird {
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
  animation: profile-drift 4.5s ease-in-out;
}
.profile-page-content {
  padding: 0 22px;
  text-align: center;
}
.profile-page .profile-avatar {
  margin-top: -43px;
}
.profile-page h1 {
  font-size: clamp(2rem, 9vw, 3rem);
  margin: 22px 0 12px;
  overflow-wrap: anywhere;
}
.profile-bio {
  white-space: normal;
  overflow-wrap: anywhere;
  margin-bottom: 32px;
}
.profile-link-list {
  display: grid;
  gap: 12px;
}
.profile-link {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 19px 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  background: var(--wash);
  transition: transform 0.18s;
  overflow-wrap: anywhere;
  text-align: left;
}
.profile-link:hover {
  transform: translateY(-3px);
}
.profile-featured {
  background: var(--ink);
  color: var(--paper);
  font-size: 1.1rem;
  padding-block: 25px;
}
.profile-subscribe {
  text-align: left;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 30px;
}
.profile-subscribe h2 {
  font-size: 1.8rem;
}
.profile-subscribe .profile-button {
  width: 100%;
}
.profile-share {
  margin: 26px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px;
  min-height: 44px;
}
.profile-powered {
  display: block;
  text-decoration: none;
  font-size: 0.75rem;
  margin: 22px 0;
}
.profile-powered strong {
  font-family: Newsreader, serif;
  font-size: 1.7rem;
  margin-left: 5px;
}
.profile-public[data-shape='pill'] .profile-link {
  border-radius: 50px;
}
.profile-public[data-shape='square'] .profile-link {
  border-radius: 0;
}
.profile-public[data-font='sans'] h1,
.profile-public[data-font='sans'] h2 {
  font-family: Inter, system-ui, sans-serif;
}
@keyframes profile-drift {
  50% {
    transform: translate(12px, -5px);
  }
}
@media (max-width: 850px) {
  .profile-plan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-hero {
    gap: 5%;
    grid-template-columns: 1.15fr 1fr;
  }
  .profile-editor-grid {
    grid-template-columns: 1fr;
  }
  .profile-editor-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .profile-editor-aside .profile-panel {
    margin-bottom: 0;
  }
}
@media (max-width: 600px) {
  .profile-main {
    padding: 20px 20px 32px;
  }
  .profile-header {
    padding: 20px;
    padding-right: max(0px, calc(20px - var(--profile-menu-gutter, 0px)));
    padding-block-start: max(20px, env(safe-area-inset-top));
    pointer-events: none;
  }
  .profile-header a,
  .profile-header button {
    pointer-events: auto;
  }
  .profile-desktop-link {
    display: none;
  }
  .profile-hero {
    grid-template-columns: 1fr;
    padding: 22px 0 55px;
    gap: 45px;
  }
  .profile-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
  }
  .profile-hero-copy > p {
    font-size: 1rem;
  }
  .profile-sample {
    max-width: 325px;
    transform: rotate(1.5deg);
  }
  .profile-plan-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .profile-plan-grid article {
    padding: 24px;
    border-radius: 18px;
  }
  .profile-plan-grid .profile-button {
    padding: 13px 8px;
    font-size: 0.8rem;
  }
  .profile-plans {
    padding-top: 36px;
  }
  .profile-plans h2 {
    font-size: 2.4rem;
  }
  .profile-auth {
    margin: 28px auto 60px;
  }
  .profile-auth h1 {
    font-size: 2.8rem;
  }
  .profile-editor-heading {
    display: block;
    margin: 22px 0 25px;
  }
  .profile-editor-heading h1 {
    font-size: 2.8rem;
  }
  .profile-editor-heading > a {
    margin-top: 16px;
  }
  .profile-panel {
    padding: 22px 18px;
    border-radius: 19px;
  }
  .profile-panel h2 {
    font-size: 1.8rem;
  }
  .profile-link-editor {
    padding: 15px 12px;
  }
  .profile-editor-aside {
    display: block;
  }
  .profile-editor-aside .profile-panel {
    margin-bottom: 20px;
  }
  .profile-editor-save {
    margin: 0 -20px;
    padding: 14px 20px max(14px, env(safe-area-inset-bottom));
  }
  .profile-public .profile-main {
    padding: 0 0 35px;
  }
  .profile-page {
    border-radius: 0;
  }
  .profile-page-content {
    padding: 0 24px;
  }
  .profile-page-art {
    height: 185px;
  }
  .profile-field-pair {
    gap: 10px;
  }
  .profile-field-pair select {
    padding-left: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  :root {
    scrollbar-color: auto;
  }
  .profile-link,
  .profile-button {
    border: 1px solid ButtonText;
  }
}
img.profile-avatar {
  object-fit: cover;
}
.profile-main input[type='file'] {
  font-size: 0.8rem !important;
  padding: 10px !important;
  overflow: hidden;
}

.profile-current-page {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .25rem 1rem;
  margin-block: 0 1rem;
  border-block-end: 1px solid var(--line);
  font-size: .875rem;
}
.profile-current-page > span { overflow-wrap: anywhere; min-width: 0; color: var(--muted); }

.profile-discovery { display: grid; gap: 12px; margin: 18px 0; text-align: left; }
.profile-discovery section { padding: 14px; border: 1px solid currentColor; border-radius: 12px; }
.profile-discovery h2 { margin: 0 0 7px; font-size: 18px; text-wrap: balance; }
.profile-discovery p { margin: 0; text-wrap: pretty; }
.profile-affiliations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-discovery .profile-button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; text-align: center; text-wrap: balance; }
.profile-discovery .profile-button svg { width: 17px; height: 17px; flex: none; }

.profile-social-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.profile-social-shortcuts .profile-button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding-inline: 4px; text-wrap: balance; }
.profile-social-shortcuts img { flex: none; object-fit: contain; }
@media (max-width: 430px) {
  .profile-social-shortcuts .profile-button { flex-direction: column; gap: 4px; font-size: 12px; }
}

@media (max-width: 430px) {
  .profile-affiliations .profile-button { flex-direction: column; font-size: 13px; padding-inline: 4px; }
  .profile-discovery section > .profile-button { padding-inline: 6px; }
}

.profile-share svg, .profile-home-copy .profile-button svg { width: 17px; height: 17px; vertical-align: middle; }


.profile-portal {
  --paper: var(--maine-ui-canvas);
  --ink: var(--maine-ui-ink);
  --muted: var(--maine-ui-muted);
  --line: var(--maine-ui-line);
  --accent: var(--maine-ui-accent);
  --deep: var(--maine-ui-accent);
  --wash: var(--maine-ui-wash);
  background: var(--paper);
  color: var(--ink);
}
.profile-portal .profile-main { padding-block-start: clamp(1rem, 4vw, 2.25rem); }
.profile-portal :is(h1,h2,h3,p,label) { overflow-wrap: anywhere; }
.profile-portal p { text-wrap: pretty; }
.profile-portal .profile-button { min-height: var(--maine-ui-target); gap: .5rem; padding: .6rem .95rem; border-radius: var(--maine-ui-radius-control); }
.profile-portal .profile-panel { background: var(--maine-ui-paper); }
.profile-footer.maine-compact-footer { width: calc(100% - 40px); }
.profile-home .profile-header { position: relative; background: transparent; }
.profile-header a:hover { text-decoration: underline; text-underline-offset: .18em; }
.profile-header .profile-wordmark:hover { text-decoration: none; }
.profile-current-page .maine-back-link { padding: 0; margin: 0; }
.profile-menu-open > .maine-cookie-notice { display: none; }
.profile-portal .profile-wizard-steps button svg { width: 20px; height: 20px; }
.profile-portal .portal-heading + :is(p, .profile-team-grid, .profile-pages-grid) { margin-block-start: 1rem; }
.profile-button svg { width: 18px; height: 18px; flex: none; }
.profile-portal a:not(.profile-button):has(> svg) > svg { vertical-align: middle; }

.profile-wallet-badge { min-height: 44px; padding: 0; border: 0; background: transparent; }
.profile-wallet-badge img { display: block; width: auto; height: 44px; }

.profile-passkey-sign-in {
  margin-block: .65rem 1rem;
}

.profile-passkey-sign-in > .profile-button {
  width: 100%;
  justify-content: center;
}
