* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, "Hiragino Sans", Meiryo, sans-serif;
  color: var(--ink, #211b30);
  background: var(--paper, #fff7e7);
}

a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
p, h1, figure { margin: 0; }

.bar {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: .85rem;
  border-bottom: 1px solid currentColor;
}

.bar a { font-size: 1.55rem; font-weight: 950; text-decoration: none; }
.header-logo {
  display: block;
  width: 3rem;
  height: 3rem;
  padding: .35rem;
  background: #231d2b;
  border-radius: .4rem;
}

.stage { width: min(100% - 2rem, 68rem); margin: clamp(1.8rem, 5vw, 5rem) auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  grid-template-areas: "intro photo" "actions photo";
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
}

.intro { grid-area: intro; align-self: end; min-width: 0; }
.wordmark {
  font-size: clamp(2.6rem, 7.9vw, 7rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.045em;
}
h1 { font-size: clamp(1.65rem, 4vw, 3rem); line-height: 1.2; margin-top: .65rem; }

.portrait { grid-area: photo; width: min(100%, 31.25rem); justify-self: center; }
.portrait img { display: block; width: 100%; height: auto; }

.actions { grid-area: actions; align-self: start; }
.actions p { font-size: .875rem; margin-top: .85rem; line-height: 1.6; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.15rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .35rem .75rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  font-size: .875rem;
  font-weight: 750;
  text-decoration: none;
}
.social-links a:hover { text-decoration: underline; text-underline-offset: .2em; }
.yui .social-links, .uruna .social-links { justify-content: center; }

.reroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  padding: .8rem 1.1rem;
  background: var(--button, #282139);
  color: var(--button-ink, white);
  border: 2px solid var(--button-border, transparent);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.reroll:focus-visible { outline-color: var(--ink, #211b30); }
.reroll:hover { text-decoration: underline; text-underline-offset: .22em; }

.papico { --paper: #eb342e; --ink: #231714; --button: #231714; --button-ink: #fff6df; }
.papico .hero { border: 4px solid; background: #fff6df; padding: clamp(1rem, 3vw, 2.5rem); }
.papico .wordmark {
  color: #bd231f;
  font-family: Impact, "DIN Condensed", "Arial Black", sans-serif;
  font-style: italic;
  letter-spacing: -.035em;
  text-shadow: 2px 2px #6f211b;
}
.papico h1 {
  border-block: 4px solid;
  padding-block: .6rem;
  font-family: "Hiragino Kaku Gothic StdN", "Yu Gothic", sans-serif;
  font-weight: 900;
  letter-spacing: .07em;
}
.papico .portrait { border: 5px solid; box-shadow: 7px 7px #231714; }

.uni { --paper: #190d2d; --ink: #f5eaff; --button: #e2c4fc; --button-ink: #26123e; }
.uni .stage {
  background: linear-gradient(135deg, #392057, #1b102e 72%);
  border: 1px solid #a277cb;
  padding: clamp(1rem, 4vw, 3rem);
  box-shadow: inset 0 0 24px #c898fa30;
}
.uni .hero { grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); grid-template-areas: "photo intro" "photo actions"; }
.uni .wordmark {
  color: #f8eaff;
  font-family: "DIN Alternate", "Arial Black", sans-serif;
  font-weight: 800;
  letter-spacing: .12em;
  text-shadow: 2px 2px #7958b9, 0 0 18px #bd72fc;
}
.uni h1 {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 600;
  letter-spacing: .13em;
}
.uni .portrait { padding: .45rem; border: 1px solid #dcb7ff; border-radius: 1rem; background: #36234b; }
.uni .reroll { border-radius: .35rem; }

.yui { --paper: #faf9f7; --ink: #3a3333; --button: #423a39; }
.yui .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "photo" "actions"; grid-template-rows: auto; text-align: center; }
.yui .wordmark {
  font-family: "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  font-weight: 400;
  letter-spacing: .23em;
  padding-inline-start: .23em;
  font-size: clamp(2.65rem, 7vw, 5rem);
}
.yui h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 400;
  letter-spacing: .16em;
}
.yui .portrait { width: min(100%, 25rem); padding: .65rem; background: white; border: 1px solid #d7d1cb; }
.yui .reroll { border-radius: 3rem; }

.wakana { --paper: #cbf0dd; --ink: #1c463a; --button: #19493c; }
.wakana {
  background-image: linear-gradient(#27634c19 1px, transparent 1px), linear-gradient(90deg, #27634c19 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}
.wakana .hero {
  width: min(100%, 60rem);
  margin-inline: auto;
  padding: clamp(1rem, 5vw, 3.5rem);
  background: #fffbee;
  box-shadow: .45rem .45rem #2b604839;
  border-left: .35rem solid #6aa791;
}
.wakana .wordmark {
  font-family: "Marker Felt", "Comic Sans MS", cursive;
  color: #285d4e;
  font-weight: 700;
  letter-spacing: .015em;
  font-size: clamp(2.1rem, 6.7vw, 6rem);
  transform: rotate(-3deg);
}
.wakana h1 {
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 500;
  letter-spacing: .055em;
}
.wakana .portrait { position: relative; padding: .6rem .6rem 1.3rem; background: white; box-shadow: 0 4px 12px #17291f33; }
.wakana .portrait::before { content: ""; position: absolute; inset: -.45rem 34% auto; height: .95rem; background: #80c6a9e6; transform: rotate(-5deg); }
.wakana .reroll { border-radius: .55rem; }

.uruna { --paper: #ffe1ef; --ink: #65233f; --button: #ffe5f0; --button-ink: #65233f; --button-border: #a53c68; }
.uruna { background-image: radial-gradient(#bd658b55 1.3px, transparent 1.3px); background-size: 14px 14px; }
.uruna .stage { width: min(100% - 2rem, 49rem); padding: .5rem; background: #f598bb; border: 4px ridge #fff3f9; }
.uruna .hero {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  grid-template-areas: "intro intro" "photo actions";
  grid-template-rows: auto auto;
  text-align: center;
  padding: clamp(.85rem, 4vw, 2rem);
  background: #fff7fc;
  border: 2px inset #f8bdd6;
}
.uruna .intro { background: linear-gradient(#fff8fc, #ffd3e5); border: 2px solid #f3a9c6; padding: .8rem; }
.uruna .wordmark {
  font-family: "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.35rem, 8vw, 5rem);
  letter-spacing: .07em;
  text-shadow: 1px 2px #fff, 3px 4px #ecabc8;
}
.uruna h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  letter-spacing: .085em;
}
.uruna .portrait { border: 4px double #a53c68; padding: .25rem; }
.uruna .actions { align-self: center; }
.uruna .reroll { box-shadow: 3px 3px #d893ae; border-radius: .25rem; }

.miyuu { --paper: #b8e9f8; --ink: #173745; --button: #173745; --button-ink: #fff8e9; }
.miyuu .hero { grid-template-areas: "intro photo" "actions photo"; background: #fdf4df; border-radius: clamp(1.4rem, 5vw, 4rem); padding: clamp(1.1rem, 5vw, 3rem); border: 2px solid; box-shadow: 6px 6px #3b8197; }
.miyuu .wordmark {
  font-family: "Rockwell", "Bookman Old Style", Georgia, serif;
  color: #155f79;
  font-weight: 900;
  letter-spacing: -.055em;
  text-shadow: 2px 2px #fdf4df, 5px 5px #f7b875;
}
.miyuu h1 {
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: .14em;
}
.miyuu .portrait { border: 2px solid; border-radius: 2rem; padding: .55rem; background: #ffba82; }
.miyuu .reroll { border-radius: 3rem; }

.kotoha { --paper: #ffe36a; --ink: #292346; --button: #ffeb82; --button-ink: #292346; --button-border: #292346; }
.kotoha .hero {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  grid-template-areas: "intro intro" "photo actions";
  grid-template-rows: auto auto;
  border: 5px solid;
  background: #fff9d8;
  padding: clamp(1rem, 4vw, 2.6rem);
  box-shadow: 7px 7px #292346;
}
.kotoha .intro { padding-bottom: .9rem; border-bottom: 4px dashed #292346; }
.kotoha .wordmark {
  font-family: "Monaco", "Lucida Console", "Courier New", monospace;
  font-size: clamp(2rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 2px 0 currentColor, 4px 4px #e7b63e;
}
.kotoha h1 {
  font-family: "Hiragino Kaku Gothic StdN", "Yu Gothic", sans-serif;
  font-weight: 800;
  letter-spacing: .045em;
}
.kotoha .portrait { border: 4px solid; }
.kotoha .actions { align-self: center; }
.kotoha .reroll { box-shadow: 4px 4px #292346; }
.kotoha .reroll:active { box-shadow: none; transform: translate(4px, 4px); }

.entry main { width: min(100% - 2rem, 36rem); margin: 3rem auto; }
.entry p, .entry .reroll { margin-top: 1rem; }
.entry li { margin-block: .65rem; }

@media (max-width: 620px) {
  .member .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "photo" "actions";
    grid-template-rows: auto;
  }
  .portrait { width: min(100%, 25rem); }
}

@supports (font-size: 1cqi) {
  .intro { container-type: inline-size; }
  .wordmark { font-size: min(7rem, 22cqi); }
  .uni .wordmark { font-size: min(7rem, 29cqi); }
  .yui .wordmark { font-size: min(5rem, 22cqi); }
  .wakana .wordmark { font-size: min(6rem, 19cqi); }
  .uruna .wordmark { font-size: min(5rem, 20cqi); }
  .kotoha .wordmark { font-size: min(6rem, 22cqi); }
}
