/* =============================================
  IOARTS — Content pages  |  pages.css
  Sections: Base, content pages, page cards, About
  ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ── Base / reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0f0f0f;
  --text:      #a2a2a2;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* Regular content pages */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.back-link:hover,
.ioarts-footer__links a:hover {
  color: #74d5ff;
}

.contact-page,
.legal-page {
  flex: 1;
  padding: 72px 0 96px;
}

.contact-wrap,
.legal-wrap {
  max-width: 920px;
}

.contact-header,
.legal-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.contact-header h1,
.legal-header h1 {
  margin-bottom: 14px;
  color: #a2a2a2;
  font-size: clamp(46px, 8vw, 92px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: .95;
  text-transform: uppercase;
}

.contact-header > p:last-child,
.legal-header > p:last-child {
  color: #c8c8c8;
  font-size: 16px;
  line-height: 1.6;
}

.contact-content,
.legal-content {
  display: grid;
  gap: 18px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(162, 162, 162, 0.55);
  border-radius: 999px;
  color: #c8c8c8;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}

.profile-link:hover,
.profile-link:focus-visible {
  background: #a2a2a2;
  color: #000;
}

.contact-panel,
.legal-panel {
  padding: 28px 30px;
  border: 1px solid rgba(162, 162, 162, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.contact-panel h2,
.legal-panel h2 {
  margin-bottom: 14px;
  color: #a2a2a2;
  font-size: 20px;
  font-weight: 700;
}

.legal-panel h3 {
  margin: 24px 0 8px;
  color: #a2a2a2;
  font-size: 16px;
}

.contact-panel p,
.legal-panel p,
.legal-panel li {
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.75;
}

.legal-panel p + p,
.legal-panel p + ul,
.legal-panel ul + p {
  margin-top: 14px;
}

.legal-panel ul {
  padding-left: 22px;
}

/* Back link */
.back-link {
  display: inline-flex;
  margin-top: 34px;
  padding: 13px 22px;
  border: 2px solid #a2a2a2;
  border-radius: 999px;
  color: #a2a2a2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Content pages: white rounded card holding all text */
.has-side-menu .page-shell {
  padding-left: 42px;
}

/* Page card */
.page-card {
  padding: clamp(24px, 5vw, 56px);
  border-radius: 24px;
  background: #fff;
}

.page-card .legal-header h1,
.page-card .contact-header h1,
.page-card .legal-panel h2,
.page-card .legal-panel h3,
.page-card .contact-panel h2 {
  color: #111;
}

.page-card .legal-header > p:last-child,
.page-card .contact-header > p:last-child,
.page-card .legal-panel p,
.page-card .legal-panel li,
.page-card .contact-panel p {
  color: #333;
}

.page-card .legal-panel,
.page-card .contact-panel {
  border-color: rgba(0, 0, 0, 0.12);
  background: transparent;
}

/* ── About page ── */
.about-card {
  padding: clamp(24px, 4vw, 48px);
}

.about-card .legal-header {
  max-width: none;
  margin-bottom: 32px;
}

.about-card .legal-header h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0;
}

.about-card .legal-content {
  gap: 36px;
}

.about-card .legal-panel {
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0;
}

.about-card .legal-panel h2 {
  margin-bottom: 22px;
  font-size: 24px;
}

.about-skills__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.about-card .about-skill-group h3 {
  margin: 0 0 12px;
  color: #555;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-card .profile-link {
  border-color: #111;
  background: #111;
  color: #fff;
}

.about-card .legal-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.about-card .legal-panel li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
  transition: background 0.15s;
}

.about-card .legal-panel li:hover {
  background: #0b6f94;
}

.about-experience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.about-card .about-experience__item {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-card .about-experience__item h3 {
  margin: 0 0 5px;
  color: #111;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.about-card .about-experience__item > p {
  margin-bottom: 12px;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.about-card .profile-link:hover,
.about-card .profile-link:focus-visible {
  border-color: #a2a2a2;
  background: #a2a2a2;
  color: #111;
}

/* ── Footer overrides for content pages ── */
.page-shell > .ioarts-footer {
  width: auto;
  margin: 0 48px 48px;
}

/* ── Responsive: content pages (max 700px) ── */
@media (max-width: 720px) {
  body { min-width: 0; }
  .has-side-menu .page-shell { padding-left: 0; }
  .container { width: min(100% - 48px, 920px); }
  .contact-page, .legal-page { padding: 42px 0 56px; }
  .contact-header, .legal-header { margin-bottom: 28px; }
  .contact-panel, .legal-panel { padding: 22px 20px; }
  .contact-panel p, .legal-panel p, .legal-panel li { font-size: 14px; line-height: 1.65; }
  .page-shell > .ioarts-footer { margin: 0 24px 24px; width: calc(100% - 48px); }
}

@media (max-width: 900px) {
  .about-skills__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .about-skills__grid,
  .about-experience__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-card .legal-panel h2 {
    font-size: 21px;
  }

  .about-card .legal-panel li {
    padding: 7px 12px;
    font-size: 12px;
  }
}
