/*
Theme Name: Alikyshkin
Description: Личный сайт Алики Кузнецовой.
Version: 1.2.1
Requires PHP: 8.2
Text Domain: alikyshkin
*/

@font-face {
  font-family: Montserrat;
  src: url("fonts/montserrat.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ak-text: #334155;
  --ak-heading: #0f172a;
  --ak-accent: #b61d68;
  --ak-profile: #f8fafc;
  --ak-line: #e5e7eb;
  font-family: Montserrat, sans-serif;
  color: var(--ak-text);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; background: #fff; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ak-accent); outline-offset: 4px; }
h1, h2, h3 { color: var(--ak-heading); line-height: 1.28; }
h1, h2 { font-size: 1.5rem; margin: 0 0 1.5rem; }
h3 { font-size: 1.125rem; margin: 0; }
p { margin: 0 0 1rem; }


.ak-layout {
  --ak-gutter: clamp(1rem, 3.5vw, 2.5rem);
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: var(--ak-gutter);
}
.ak-profile, .ak-main { min-width: 0; }
.ak-profile {
  background: var(--ak-profile);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--ak-line);
  border-radius: 1rem;
  margin-bottom: 1.75rem;
}
.ak-profile h1 { margin: 0 0 .55rem; font-size: clamp(1.45rem, 2.5vw, 1.8rem); letter-spacing: -.025em; }
.ak-portrait { width: 100%; margin: 0 0 1rem; }
.ak-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: .65rem; }
.ak-bio, .ak-studio { margin-bottom: .85rem; }
.ak-social-title { font-size: .95rem; margin: 1rem 0 .5rem; }
.ak-socials { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .65rem; padding: 0; margin: 0; }
.ak-socials a { text-decoration: none; font-size: .875rem; }
.ak-socials a:hover { text-decoration: underline; }
.ak-studio a { color: var(--ak-accent); text-underline-offset: .18em; }

.ak-section { margin: 0; }
.ak-section + .ak-section { margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.ak-section h2 { margin-bottom: .65rem; letter-spacing: -.02em; }
.ak-project { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: .9rem 0; border-bottom: 1px solid var(--ak-line); }
.ak-project:first-of-type { padding-top: .35rem; }
.ak-project-details p, .ak-button { margin: 0; }
.ak-project-details > * + *, .ak-project-details > .wp-block-group__inner-container > * + * { margin-top: .2rem; }
.ak-project-date { color: #526176; font-size: .8rem; }
.ak-button a, .ak-video-source a { color: var(--ak-accent); font-size: .875rem; font-weight: 600; text-underline-offset: .2em; }
.ak-button a:hover, .ak-video-source a:hover { color: var(--ak-heading); }
.ak-project .ak-button a { display: inline-block; padding: .3rem 0; }
.ak-wishes { display: grid; padding-left: 1.1rem; gap: .5rem 1.6rem; color: var(--ak-heading); font-size: .875rem; margin: 0; }
.ak-videos { display: grid; gap: 1.25rem 1rem; margin-top: 1rem; }
.ak-video { min-width: 0; }
.ak-video h3 { margin-bottom: .45rem; font-size: 1.05rem; }
.ak-player { position: relative; aspect-ratio: 16 / 9; background: var(--ak-heading); border-radius: .65rem; overflow: hidden; }
.ak-player iframe, .ak-video-cover { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ak-player iframe { visibility: hidden; }
.ak-player.is-ready iframe { visibility: visible; }
.ak-player.is-ready .ak-video-cover { visibility: hidden; }
.ak-video-cover { display: grid; place-items: center; }
.ak-video-cover:focus-visible { outline-offset: -4px; }
.ak-video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-video-play { position: relative; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #172033e8; box-shadow: 0 0 0 1px #ffffff70; }
.ak-video-play::after { content: ""; border-block: .44rem solid transparent; border-left: .65rem solid #fff; margin-left: .14rem; }
.ak-video-cover:hover .ak-video-play, .ak-video-cover:focus-visible .ak-video-play { background: #111827; }
.ak-video-source { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem .6rem; margin: .3rem 0 0; }
.ak-video-close { border: 0; padding: 0; background: none; color: #526176; font-size: .8rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.ak-policy { max-width: 720px; margin: 0 auto; padding: 3rem 1.25rem 4rem; line-height: 1.65; }
.ak-policy h2 { font-size: 1.15rem; margin: 2em 0 .65em; }
.ak-policy a { color: #0057b4; }
.ak-policy .muted { color: #555; font-size: .875rem; }
.ak-cookie { max-width: 40rem; width: calc(100% - 1.5rem); position: fixed; bottom: .75rem; left: 50%; transform: translateX(-50%); z-index: 90; padding: .9rem 1.1rem; background: #1f1f22; color: #fff; border-radius: .75rem; box-shadow: 0 6px 24px #0005; font-size: .875rem; }
.ak-cookie p { margin-bottom: .6rem; }
.ak-cookie button { min-height: 2.55rem; border: 1px solid #a8a8a8; border-radius: .4rem; cursor: pointer; padding: .3rem .65rem; margin: .25rem .3rem 0 0; }
.ak-cookie-settings {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: .2em;
  padding: 0;
  cursor: pointer;
  min-height: 2rem;
}
.ak-footer {
  width: min(calc(100% - 2 * clamp(1rem, 3.5vw, 2.5rem)), calc(72rem - 5rem));
  border-top: 1px solid var(--ak-line);
  margin-inline: auto;
  padding: .75rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.15rem;
  font-size: .8rem;
  color: #526176;
}
.ak-footer a { text-underline-offset: .2em; }
.ak-policy + .ak-footer { width: min(calc(100% - 2.5rem), 680px); }

@media (min-width: 620px) {
  .ak-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ak-project { flex-direction: row; align-items: center; justify-content: space-between; gap: .75rem; }
  .ak-project .ak-button { flex: 0 0 auto; }
}

@media (min-width: 820px) {
  .ak-layout { display: grid; grid-template-columns: clamp(15rem, 27vw, 19rem) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 3.5vw, 2.75rem); }
  .ak-profile { margin-bottom: 0; }
  .ak-wishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 950px) and (min-height: 850px) {
  .ak-profile { position: sticky; top: 1.5rem; }
}

/* WordPress inserts an inner container for groups in classic themes. */
.ak-layout > .wp-block-group__inner-container,
.ak-project > .wp-block-group__inner-container,
.ak-videos > .wp-block-group__inner-container {
  display: contents;
}
