:root {
  color-scheme: light;
  --ink: #000;
  --velvet: #4d0012;
  --ivory: #fbf8f4;
  --cream: #f3eadf;
  --line: #ded3c6;
  font: 100%/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: white;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.entry {
  --gutter: clamp(2rem, 5.4vw, 6.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "brand art" "access art" "footer art";
  min-height: 100vh;
  min-height: 100svh;
  padding: 1rem;
  background: #fff;
}
.brand, .access, footer {
  justify-self: center;
  width: min(28rem, calc(100% - 2 * var(--gutter)));
}
.brand { grid-area: brand; margin-top: clamp(1.75rem, 5.5vh, 4.5rem); }
.brand img { display: block; width: min(100%, 17.5rem); height: auto; }
.velvet-panel {
  grid-area: art;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--velvet); isolation: isolate;
}
.velvet-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 52%; mix-blend-mode: luminosity; opacity: .88; }
.access {
  grid-area: access;
  align-self: center;
  margin-block: 2rem;
  padding: clamp(1.5rem, 3.1vw, 2.75rem);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: .875rem;
}
h1 {
  margin: 0;
  font: normal clamp(2.45rem, 3.65vw, 3.5rem)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.account-copy p { margin: 1rem 0 0; color: var(--ink); font-size: 1.0625rem; }
.action {
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .8rem 1rem;
  margin-top: 1.75rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--velvet);
  border-radius: .5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.ms-mark { flex: none; }
.action:hover { background: #ede1d2; box-shadow: 0 2px 5px rgb(77 0 18 / 10%); }
.action:active { background: #e7dac8; }
.sign-out {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); margin-top: .5rem; text-underline-offset: .2em;
}
.help { border-top: 1px solid var(--line); margin-top: 1.65rem; }
.help summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3rem; padding: .75rem .12rem .75rem 0;
  cursor: pointer; color: var(--ink); font-size: .9375rem; font-weight: 600;
}
.help summary::-webkit-details-marker { display: none; }
.help summary::after {
  content: ""; width: 8px; height: 8px; margin-right: .2rem; margin-top: -.2rem;
  flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.help[open] summary::after { transform: rotate(225deg); margin-top: .2rem; }
.help p { margin: .15rem 0 .3rem; color: var(--ink); font-size: .9375rem; }
footer { grid-area: footer; padding-bottom: clamp(1rem, 3vh, 2.5rem); }
footer a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: .875rem;
}
footer a:hover, .help summary:hover { text-decoration: underline; text-underline-offset: .2em; }
:where(a, summary):focus-visible { outline: 3px solid var(--velvet); outline-offset: 4px; }

@media (max-width: 48rem) {
  .entry {
    --gutter: clamp(1.25rem, 6vw, 2.5rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "brand" "art" "access" "footer";
    padding: max(.5rem, env(safe-area-inset-top)) max(0px, env(safe-area-inset-right)) max(.4rem, env(safe-area-inset-bottom)) max(0px, env(safe-area-inset-left));
  }
  .brand, .access, footer { width: min(27rem, calc(100% - 2 * var(--gutter))); }
  .brand { margin-block: 1.25rem; }
  .brand img { width: min(13.75rem, 100%); }
  .velvet-panel {
    justify-self: center; width: min(27rem, calc(100% - 2 * var(--gutter)));
    height: clamp(4rem, 13svh, 7rem); border-radius: .6rem;
  }
  .velvet-panel img { object-position: 50% 58%; }
  .access { margin-block: 1.25rem; padding: clamp(1.125rem, 5vw, 2rem); }
  footer { padding-bottom: .45rem; }
}
@media (max-height: 32rem) and (max-width: 48rem) {
  .velvet-panel { display: none; }
  .access { margin-block: .75rem; padding-block: 1.125rem; }
}
