:root {
  /* ~ green + cream ~ : almost white, just a warm hint */
  --bg: #fdfcf8;
  --bg-soft: #f5f1e8;
  --fg: #0c0e0d;
  --fg-dim: #717b76;
  --accent: oklch(70% 0.18 152.5);        /* the green — only the name wears it */
  --line: rgba(12, 14, 13, 0.1);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sys: "Yuji Syuku", "Shippori Mincho", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* faint warm light from above */
  background-image: radial-gradient(ellipse 70% 55% at 50% 18%, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 19vh 1rem 1rem;
  text-align: center;
  position: relative;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  width: min(40rem, 100%);
}

.font-header {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 3rem);
  color: var(--accent);
  letter-spacing: 0.01em;
}

.icon-row { display: flex; gap: 0.125rem; justify-content: center; }

.link-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.link-row a {
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.link-row a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--fg);
  transition: right 0.2s ease;
}

.link-row a:hover,
.link-row a:focus-visible { color: var(--fg); outline: none; }

.link-row a:hover::after,
.link-row a:focus-visible::after { right: 0; }

.link-row a:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: color 0.15s ease;
}

.icon-link:hover,
.icon-link:focus-visible { color: var(--fg); outline: none; }
.icon-link:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

.icon {
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-image: var(--mask);
  mask-image: var(--mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer {
  padding: 0.75rem 1rem 1.4rem;
  text-align: center;
  color: var(--fg-dim);
  font-family: var(--sys);
  position: relative;
}

.footer-line {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.footer-flag { display: block; height: 1.05em; width: auto; opacity: 0.75; }
.footer-z { display: block; height: 1.35em; width: auto; opacity: 0.75; }

/* ~ contact wall ~ */
.wall {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.wall-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(245, 241, 232, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.wall-panel {
  position: relative;
  max-width: 34rem;
  width: 100%;
  background: #fdfcf7;
  border: 1px solid var(--line);
  border-top: 2px solid var(--fg);
  box-shadow: 0 24px 60px rgba(12, 18, 14, 0.16);
  color: var(--fg);
  overflow: hidden;
}

.wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem 0.55rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--sys);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.wall-body { padding: 1.3rem 1.3rem 1.1rem; }

.wall-intro {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg);
}

.wall-list { margin: 0; padding: 0 0 0 1.2rem; list-style: none; display: grid; gap: 0.55rem; }

.wall-list li {
  position: relative;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-dim);
}

.wall-list li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--fg);
}

.wall-email-row {
  margin: 1.15rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.wall-email {
  flex: 1;
  font-family: var(--sys);
  font-size: 0.95rem;
  color: var(--fg);
  text-decoration: none;
  word-break: break-all;
  text-align: left;
}

.wall-email:hover,
.wall-email:focus-visible { color: var(--fg-dim); outline: none; }

.wall-copy { flex: 0 0 auto; width: 36px; height: 36px; color: var(--fg-dim); }
.wall-copy:hover { color: var(--fg); }

@media (max-width: 480px) {
  .icon-link { width: 38px; height: 38px; }
  .icon { width: 18px; height: 18px; }
}

[x-cloak] { display: none !important; }
