:root {
  --pink: #d884cf;
  --teal: #83dcc6;
  --accent-red: #f9180e;
  --dot-filled: #1a1a1a;
  --dot-empty: #bfbfbf;
  --text: #1a1a1a;
  --page-width: 950px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px 20px;
  background: #f4f4f4;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.page {
  max-width: var(--page-width);
  margin: 0 auto;
  background: #fff;
  padding: 48px 56px 56px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

h1.name {
  text-align: center;
  color: var(--pink);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0 0 36px;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.col-left,
.col-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

section h2 {
  color: var(--teal);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.about p {
  margin: 0 0 12px;
}

.about p:last-child {
  margin-bottom: 0;
}

.entry {
  margin-bottom: 18px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry .entry-title {
  font-weight: 700;
  margin: 0 0 2px;
}

.entry .entry-detail {
  margin: 0;
}

.col-right .entry .entry-title,
.col-right .entry .entry-detail {
  text-align: right;
}

.accent {
  color: var(--accent-red);
}

.skill-group {
  margin-bottom: 16px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.skill-row .skill-name {
  flex: 1;
}

.dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot-empty);
}

.dot.filled {
  background: var(--dot-filled);
}

.contact h2 {
  margin-bottom: 8px;
}

.contact p {
  margin: 0 0 4px;
  font-weight: 700;
}

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

.contact a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  body {
    padding: 16px 10px;
  }

  .page {
    padding: 28px 22px 32px;
  }

  h1.name {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .columns {
    grid-template-columns: 1fr;
    gap: 32px 0;
  }

  .col-right .entry .entry-title,
  .col-right .entry .entry-detail {
    text-align: left;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff;
    padding: 0;
    font-size: 12.5px;
  }

  .page {
    box-shadow: none;
    padding: 0;
    max-width: none;
  }

  h1.name {
    font-size: 34px;
  }

  section h2 {
    font-size: 19px;
  }
}

/* --- /edit page --- */

.edit-page {
  max-width: 640px;
}

.edit-page h1.name {
  font-size: 32px;
  margin-bottom: 8px;
}

.edit-page .subtitle {
  text-align: center;
  color: #666;
  margin: 0 0 28px;
  font-size: 14px;
}

.banner {
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.banner.success {
  background: #e6f7f0;
  color: #147a52;
  border: 1px solid #b7e7d3;
}

.banner.error {
  background: #fdeceb;
  color: #b3261e;
  border: 1px solid #f5c2be;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field label {
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.field .hint {
  font-size: 12.5px;
  color: #777;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

input[type="text"],
input[type="password"],
textarea {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  resize: vertical;
  line-height: 1.5;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
  border-color: var(--pink);
}

.name-field input {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
}

button {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: var(--pink);
  color: #fff;
}

button:hover {
  opacity: 0.9;
}

button.secondary {
  background: none;
  color: #777;
  text-decoration: underline;
  padding: 0;
  font-weight: 400;
}

.edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}

.top-bar a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}
