/*
Theme Name: WEB ARCHI
Theme URI: https://ars.ft.unram.ac.id/
Author: WEB ARCHI
Author URI: https://ars.ft.unram.ac.id/
Description: Lightweight custom theme for the WEB ARCHI website.
Version: 1.0.0
Requires at least: 7.1
Requires PHP: 8.1
Text Domain: web-archi
*/

/* =========================================================
   WEB ARCHI — METROPOLIS FONT
========================================================= */

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --wa-color-link: #111827;
  --wa-color-link-hover: #009572;

  --wa-content-width: 1200px;
  --wa-reading-width: 760px;

  --wa-space-1: 0.25rem;
  --wa-space-2: 0.5rem;
  --wa-space-3: 0.75rem;
  --wa-space-4: 1rem;
  --wa-space-5: 1.5rem;
  --wa-space-6: 2rem;
  --wa-space-7: 3rem;
  --wa-space-8: 4rem;

  --wa-radius-sm: 0.375rem;
  --wa-radius-md: 0.75rem;
  --wa-radius-lg: 1rem;

  --wa-font-family: "Metropolis", sans-serif;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--wa-color-background);
  color: var(--wa-color-text);
  font-family: var(--wa-font-family);
  font-size: 1rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--wa-color-link);
}

a:hover {
  color: var(--wa-color-link-hover);
}

button,
input,
textarea,
select {
  font: inherit;
}

/*
 * Site shell.
 */

.wa-site {
  min-height: 100vh;
}

/*
 * Main content container.
 */

.wa-site-main {
  width: min(calc(100% - (var(--wa-space-5) * 2)), var(--wa-content-width));
  margin-inline: auto;
  padding-block: var(--wa-space-7);
}

/*
 * Page header.
 */

.wa-page-header {
  margin-bottom: var(--wa-space-6);
}

.wa-page-title {
  margin: 0;
  color: var(--wa-color-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/*
 * Generic entry content.
 */

.wa-entry {
  max-width: var(--wa-reading-width);
}

.wa-entry-header {
  margin-bottom: var(--wa-space-5);
}

.wa-entry-title {
  margin: 0;
  color: var(--wa-color-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

.wa-entry-content {
  font-size: 1rem;
}

/*
 * Entry content headings.
 */

.wa-entry-content h2 {
  margin-block: 0;
  color: var(--wa-color-heading);
  font-family: var(--wa-font-family);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
}

.wa-entry-content h3 {
  margin-block: 0;
  color: var(--wa-color-heading);
  font-family: var(--wa-font-family);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.wa-empty-state {
  margin: 0;
  padding: var(--wa-space-6);
  border: 1px solid var(--wa-color-border);
  border-radius: var(--wa-radius-md);
  background: var(--wa-color-surface);
  color: var(--wa-color-text-muted);
}

/*
 * Lecturer archive.
 */

.wa-lecturer-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wa-space-5);
}

.wa-lecturer-card {
  overflow: hidden;
  border: 1px solid var(--wa-color-border);
  border-radius: var(--wa-radius-lg);
  background: var(--wa-color-background);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.wa-lecturer-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.wa-lecturer-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wa-color-surface);
}

.wa-lecturer-photo a {
  display: block;
  height: 100%;
}

.wa-lecturer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-lecturer-content {
  padding: var(--wa-space-5);
}

.wa-lecturer-name {
  margin: 0 0 var(--wa-space-2);
  color: var(--wa-color-heading);
  font-size: 1.2rem;
  line-height: 1.35;
}

.wa-lecturer-name a {
  color: inherit;
  text-decoration: none;
}

.wa-lecturer-name a:hover {
  color: var(--wa-color-link-hover);
  text-decoration: none;
}

.wa-lecturer-position {
  margin: 0;
  color: var(--wa-color-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.wa-lecturer-education {
  margin: var(--wa-space-1) 0 0;
  color: var(--wa-color-text-muted);
  font-size: 0.95rem;
}

/*
 * Lecturer single page.
 */

.wa-lecturer-single {
  max-width: var(--wa-reading-width);
  margin-inline: auto;
}

.wa-lecturer-single .wa-page-header {
  margin-bottom: var(--wa-space-7);
}

.wa-lecturer-single-photo {
  width: min(100%, 280px);
  margin-bottom: var(--wa-space-5);
  overflow: hidden;
  border-radius: var(--wa-radius-lg);
  background: var(--wa-color-surface);
}

.wa-lecturer-single-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.wa-lecturer-single .wa-page-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

.wa-lecturer-single .wa-lecturer-position {
  margin-top: var(--wa-space-2);
  color: var(--wa-color-text-muted);
  font-size: 1.05rem;
}

.wa-lecturer-single-identity .wa-lecturer-education {
  margin-top: var(--wa-space-1);
}

.wa-lecturer-single-content {
  display: grid;
  gap: var(--wa-space-6);
}

.wa-lecturer-section {
  padding-top: var(--wa-space-5);
  border-top: 1px solid var(--wa-color-border);
}

.wa-lecturer-section h2 {
  margin: 0 0 var(--wa-space-3);
  color: var(--wa-color-heading);
  font-size: 1.25rem;
  line-height: 1.3;
}

.wa-lecturer-section p {
  margin: 0;
}

.wa-lecturer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wa-space-2) var(--wa-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wa-lecturer-links li {
  margin: 0;
}

.wa-lecturer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--wa-color-border);
  border-radius: 999px;
  background: var(--wa-color-background);
  font-size: 0.95rem;
  text-decoration: none;
}

.wa-lecturer-links a:hover {
  border-color: var(--wa-color-link-hover);
  color: var(--wa-color-link-hover);
  text-decoration: none;
}

/*
 * Responsive layout.
 */

@media (min-width: 640px) {
  .wa-site-main {
    width: min(calc(100% - (var(--wa-space-6) * 2)), var(--wa-content-width));
  }

  .wa-lecturer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wa-lecturer-single {
    max-width: 900px;
  }

  .wa-lecturer-single-header.has-photo {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--wa-space-6);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .wa-site-main {
    padding-block: var(--wa-space-8);
  }

  .wa-lecturer-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wa-lecturer-single {
    max-width: 960px;
  }
}
